mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 10:47:20 +00:00
add godocs for https://github.com/kataras/iris/issues/1589
This commit is contained in:
@@ -102,10 +102,12 @@ type Party interface {
|
||||
UseError(handlers ...context.Handler)
|
||||
// Use appends Handler(s) to the current Party's routes and child routes.
|
||||
// If the current Party is the root, then it registers the middleware to all child Parties' routes too.
|
||||
// To register a middleware for error handlers, look `UseError` method instead.
|
||||
Use(middleware ...context.Handler)
|
||||
// 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.
|
||||
UseOnce(handlers ...context.Handler)
|
||||
// Done appends to the very end, Handler(s) to the current Party's routes and child routes.
|
||||
// The difference from .Use is that this/or these Handler(s) are being always running last.
|
||||
|
||||
Reference in New Issue
Block a user