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

Method PATCH

router.go:227–229  ·  view source on GitHub ↗

PATCH is a shortcut for router.Handle(http.MethodPatch, path, handle)

(path string, handle Handle)

Source from the content-addressed store, hash-verified

225
226// PATCH is a shortcut for router.Handle(http.MethodPatch, path, handle)
227func (r *Router) PATCH(path string, handle Handle) {
228 r.Handle(http.MethodPatch, path, handle)
229}
230
231// DELETE is a shortcut for router.Handle(http.MethodDelete, path, handle)
232func (r *Router) DELETE(path string, handle Handle) {

Callers 2

TestRouterAPIFunction · 0.80
TestRouterNotFoundFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 2

TestRouterAPIFunction · 0.64
TestRouterNotFoundFunction · 0.64