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

Method OPTIONS

router.go:212–214  ·  view source on GitHub ↗

OPTIONS is a shortcut for router.Handle(http.MethodOptions, path, handle)

(path string, handle Handle)

Source from the content-addressed store, hash-verified

210
211// OPTIONS is a shortcut for router.Handle(http.MethodOptions, path, handle)
212func (r *Router) OPTIONS(path string, handle Handle) {
213 r.Handle(http.MethodOptions, path, handle)
214}
215
216// POST is a shortcut for router.Handle(http.MethodPost, path, handle)
217func (r *Router) POST(path string, handle Handle) {

Callers 3

TestRouterAPIFunction · 0.80
TestRouterOPTIONSFunction · 0.80
TestRouterNotAllowedFunction · 0.80

Calls 1

HandleMethod · 0.95

Tested by 3

TestRouterAPIFunction · 0.64
TestRouterOPTIONSFunction · 0.64
TestRouterNotAllowedFunction · 0.64