MCPcopy
hub / github.com/gorilla/mux / requestWithVars

Function requestWithVars

mux.go:448–451  ·  view source on GitHub ↗
(r *http.Request, vars map[string]string)

Source from the content-addressed store, hash-verified

446}
447
448func requestWithVars(r *http.Request, vars map[string]string) *http.Request {
449 ctx := context.WithValue(r.Context(), varsKey, vars)
450 return r.WithContext(ctx)
451}
452
453func requestWithRoute(r *http.Request, route *Route) *http.Request {
454 ctx := context.WithValue(r.Context(), routeKey, route)

Callers 2

ServeHTTPMethod · 0.85
SetURLVarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…