MCPcopy
hub / github.com/julienschmidt/httprouter / GET

Method GET

router.go:202–204  ·  router.go::Router.GET

GET is a shortcut for router.Handle(http.MethodGet, path, handle)

(path string, handle Handle)

Source from the content-addressed store, hash-verified

200
201// GET is a shortcut for router.Handle(http.MethodGet, path, handle)
202func (r *Router) GET(path string, handle Handle) {
203 r.Handle(http.MethodGet, path, handle)
204}
205
206// HEAD is a shortcut for router.Handle(http.MethodHead, path, handle)
207func (r *Router) HEAD(path string, handle Handle) {

Callers 7

ServeFilesMethod · 0.95
TestRouterAPIFunction · 0.80
TestRouterRootFunction · 0.80
BenchmarkAllowedFunction · 0.80
TestRouterOPTIONSFunction · 0.80
TestRouterNotFoundFunction · 0.80
TestRouterLookupFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 6

TestRouterAPIFunction · 0.64
TestRouterRootFunction · 0.64
BenchmarkAllowedFunction · 0.64
TestRouterOPTIONSFunction · 0.64
TestRouterNotFoundFunction · 0.64
TestRouterLookupFunction · 0.64