Directories ¶
Path | Synopsis |
---|---|
Package main shows how you can add middleware to an mvc Application, simply by using its `Router` which is a sub router(an iris.Party) of the main iris app.
|
Package main shows how you can add middleware to an mvc Application, simply by using its `Router` which is a sub router(an iris.Party) of the main iris app. |
per-method
If you want to use it as middleware for the entire controller you can use its router which is just a sub router to add it as you normally do with standard API:
|
If you want to use it as middleware for the entire controller you can use its router which is just a sub router to add it as you normally do with standard API: |
without-ctx-next
Package main is a simple example of the behavior change of the execution flow of the handlers, normally we need the `ctx.Next()` to call the next handler in a route's handler chain, but with the new `ExecutionRules` we can change this default behavior.
|
Package main is a simple example of the behavior change of the execution flow of the handlers, normally we need the `ctx.Next()` to call the next handler in a route's handler chain, but with the new `ExecutionRules` we can change this default behavior. |
Click to show internal directories.
Click to hide internal directories.