MCPcopy Create free account
hub / github.com/kataras/iris / Options

Method Options

core/router/api_container.go:233–235  ·  view source on GitHub ↗

Options registers a route for the Options HTTP Method. Returns a *Route and an error which will be filled if route wasn't registered successfully.

(relativePath string, handlersFn ...interface{})

Source from the content-addressed store, hash-verified

231//
232// Returns a *Route and an error which will be filled if route wasn't registered successfully.
233func (api *APIContainer) Options(relativePath string, handlersFn ...interface{}) *Route {
234 return api.Handle(http.MethodOptions, relativePath, handlersFn...)
235}
236
237// Patch registers a route for the Patch HTTP Method.
238//

Callers

nothing calls this directly

Calls 1

HandleMethod · 0.95

Tested by

no test coverage detected