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

Method UseOnce

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

UseOnce either inserts a middleware, or on the basis of the middleware already existing, replace that existing middleware instead. To register a middleware for error handlers, look `UseError` method instead.

(handlers ...context.Handler)

Source from the content-addressed store, hash-verified

231 // replace that existing middleware instead.
232 // To register a middleware for error handlers, look `UseError` method instead.
233 UseOnce(handlers ...context.Handler)
234 // Done appends to the very end, Handler(s) to the current Party's routes and child routes.
235 // The difference from .Use is that this/or these Handler(s) are being always running last.
236 Done(handlers ...context.Handler)

Callers 2

NewGroupFunction · 0.65
DeprecatedMethod · 0.65

Implementers 1

APIBuildercore/router/api_builder.go

Calls

no outgoing calls

Tested by

no test coverage detected