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

Function OPTIONS

ginS/gins.go:86–88  ·  view source on GitHub ↗

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

(relativePath string, handlers ...gin.HandlerFunc)

Source from the content-addressed store, hash-verified

84
85// OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle)
86func OPTIONS(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes {
87 return engine().OPTIONS(relativePath, handlers...)
88}
89
90// HEAD is a shortcut for router.Handle("HEAD", path, handle)
91func HEAD(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes {

Callers 1

TestOPTIONSFunction · 0.85

Calls 1

OPTIONSMethod · 0.65

Tested by 1

TestOPTIONSFunction · 0.68