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

Method PUT

router.go:222–224  ·  view source on GitHub ↗

PUT is a shortcut for router.Handle(http.MethodPut, path, handle)

(path string, handle Handle)

Source from the content-addressed store, hash-verified

220
221// PUT is a shortcut for router.Handle(http.MethodPut, path, handle)
222func (r *Router) PUT(path string, handle Handle) {
223 r.Handle(http.MethodPut, path, handle)
224}
225
226// PATCH is a shortcut for router.Handle(http.MethodPatch, path, handle)
227func (r *Router) PATCH(path string, handle Handle) {

Callers 1

TestRouterAPIFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 1

TestRouterAPIFunction · 0.64