OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle)
(relativePath string, handlers ...gin.HandlerFunc)
| 84 | |
| 85 | // OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle) |
| 86 | func 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) |
| 91 | func HEAD(relativePath string, handlers ...gin.HandlerFunc) gin.IRoutes { |