OPTIONS is a shortcut for router.Handle("OPTIONS", path, handlers).
(relativePath string, handlers ...HandlerFunc)
| 134 | |
| 135 | // OPTIONS is a shortcut for router.Handle("OPTIONS", path, handlers). |
| 136 | func (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). |
| 141 | func (group *RouterGroup) HEAD(relativePath string, handlers ...HandlerFunc) IRoutes { |