MCPcopy Create free account
hub / github.com/donutloop/mux / RegisterRoute

Method RegisterRoute

router.go:152–169  ·  view source on GitHub ↗

RegisterRoute registers and validates a new route

(method string, route RouteInterface)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

HandleMethod · 0.95
HandleFuncMethod · 0.95
GetMethod · 0.95
PutMethod · 0.95
PostMethod · 0.95
DeleteMethod · 0.95
OptionsMethod · 0.95
HeadMethod · 0.95
TestRouteWithoutHandlerFunction · 0.80

Calls 5

NewBadRouteErrorFunction · 0.85
SetMethodNameMethod · 0.65
ValidateMethod · 0.65
SetErrorMethod · 0.65
ErrorMethod · 0.45

Tested by 2

TestRouteWithoutHandlerFunction · 0.64