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

Method SkipClean

mux.go:258–261  ·  view source on GitHub ↗

SkipClean defines the path cleaning behaviour for new routes. The initial value is false. Users should be careful about which routes are not cleaned When true, if the route path is "/path//to", it will remain with the double slash. This is helpful if you have a route like: /fetch/http://xkcd.com/53

(value bool)

Source from the content-addressed store, hash-verified

256// When false, the path will be cleaned, so /fetch/http://xkcd.com/534/ will
257// become /fetch/http/xkcd.com/534
258func (r *Router) SkipClean(value bool) *Router {
259 r.skipClean = value
260 return r
261}
262
263// UseEncodedPath tells the router to match the encoded original path
264// to the routes.

Callers 1

TestSkipCleanFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestSkipCleanFunction · 0.76