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

Method AllowMethods

core/router/party.go:266–266  ·  view source on GitHub ↗

AllowMethods will re-register the future routes that will be registered via `Handle`, `Get`, `Post`, ... to the given "methods" on that Party and its children "Parties", duplicates are not registered. Call of `AllowMethod` will override any previous allow methods.

(methods ...string)

Source from the content-addressed store, hash-verified

264 //
265 // Call of `AllowMethod` will override any previous allow methods.
266 AllowMethods(methods ...string) Party
267
268 // SetExecutionRules alters the execution flow of the route handlers outside of the handlers themselves.
269 //

Callers 1

Implementers 1

APIBuildercore/router/api_builder.go

Calls

no outgoing calls

Tested by 1