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

Method HEAD

router.go:207–209  ·  view source on GitHub ↗

HEAD is a shortcut for router.Handle(http.MethodHead, path, handle)

(path string, handle Handle)

Source from the content-addressed store, hash-verified

205
206// HEAD is a shortcut for router.Handle(http.MethodHead, path, handle)
207func (r *Router) HEAD(path string, handle Handle) {
208 r.Handle(http.MethodHead, path, handle)
209}
210
211// OPTIONS is a shortcut for router.Handle(http.MethodOptions, path, handle)
212func (r *Router) OPTIONS(path string, handle Handle) {

Callers 1

TestRouterAPIFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 1

TestRouterAPIFunction · 0.64