MCPcopy Create free account
hub / github.com/devfeel/dotweb / RegisterHandlerFunc

Method RegisterHandlerFunc

server.go:357–359  ·  view source on GitHub ↗

RegisterHandlerFunc a shortcut for router.RegisterHandlerFunc(routeMethod string, path string, handler http.HandlerFunc)

(routeMethod string, path string, handler http.HandlerFunc)

Source from the content-addressed store, hash-verified

355
356// RegisterHandlerFunc a shortcut for router.RegisterHandlerFunc(routeMethod string, path string, handler http.HandlerFunc)
357func (server *HttpServer) RegisterHandlerFunc(routeMethod string, path string, handler http.HandlerFunc) RouterNode {
358 return server.Router().RegisterHandlerFunc(routeMethod, path, handler)
359}
360
361// RegisterRoute a shortcut for router.RegisterRoute(routeMethod string, path string,handle HttpHandle)
362func (server *HttpServer) RegisterRoute(routeMethod string, path string, handle HttpHandle) RouterNode {

Callers

nothing calls this directly

Calls 2

RouterMethod · 0.95
RegisterHandlerFuncMethod · 0.65

Tested by

no test coverage detected