MCPcopy
hub / github.com/nytimes/gizmo / stdlibRouter

Struct stdlibRouter

server/router.go:64–66  ·  view source on GitHub ↗

stdlibRouter is a Router implementation for the stdlib's `http.ServeMux`.

Source from the content-addressed store, hash-verified

62
63// stdlibRouter is a Router implementation for the stdlib's `http.ServeMux`.
64type stdlibRouter struct {
65 mux *http.ServeMux
66}
67
68// Handle will call the Stdlib's HandleFunc() methods with a check for the incoming
69// HTTP method. To allow for multiple methods on a single route, use 'ANY'.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected