MCPcopy
hub / github.com/gin-gonic/gin / OPTIONS

Method OPTIONS

routergroup.go:136–138  ·  view source on GitHub ↗

OPTIONS is a shortcut for router.Handle("OPTIONS", path, handlers).

(relativePath string, handlers ...HandlerFunc)

Source from the content-addressed store, hash-verified

134
135// OPTIONS is a shortcut for router.Handle("OPTIONS", path, handlers).
136func (group *RouterGroup) OPTIONS(relativePath string, handlers ...HandlerFunc) IRoutes {
137 return group.handle(http.MethodOptions, relativePath, handlers)
138}
139
140// HEAD is a shortcut for router.Handle("HEAD", path, handlers).
141func (group *RouterGroup) HEAD(relativePath string, handlers ...HandlerFunc) IRoutes {

Callers

nothing calls this directly

Calls 1

handleMethod · 0.95

Tested by

no test coverage detected