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

Method POST

router.go:217–219  ·  router.go::Router.POST

POST is a shortcut for router.Handle(http.MethodPost, path, handle)

(path string, handle Handle)

Source from the content-addressed store, hash-verified

215
216// POST is a shortcut for router.Handle(http.MethodPost, path, handle)
217func (r *Router) POST(path string, handle Handle) {
218 r.Handle(http.MethodPost, path, handle)
219}
220
221// PUT is a shortcut for router.Handle(http.MethodPut, path, handle)
222func (r *Router) PUT(path string, handle Handle) {

Callers 5

TestRouterAPIFunction · 0.80
TestRouterChainingFunction · 0.80
BenchmarkAllowedFunction · 0.80
TestRouterOPTIONSFunction · 0.80
TestRouterNotAllowedFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 5

TestRouterAPIFunction · 0.64
TestRouterChainingFunction · 0.64
BenchmarkAllowedFunction · 0.64
TestRouterOPTIONSFunction · 0.64
TestRouterNotAllowedFunction · 0.64