1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 12:31:58 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-15 12:17:48 +03:00
parent d0d7679a98
commit 8340285e7d
11 changed files with 105 additions and 11 deletions

View File

@@ -395,7 +395,9 @@ func main() {
}
```
- `Application.UseRouter(...Handler)` - per party to register handlers before the main router, useful on handlers that should control whether the router itself should ran or not. Independently of the incoming request's method and path values. These handlers will be executed ALWAYS against ALL incoming matched requests. Example of use-case: CORS.
- `Party.UseError(...Handler)` - to register handlers to run before the `OnErrorCode/OnAnyErrorCode` ones.
- `Party.UseRouter(...Handler)` - to register handlers before the main router, useful on handlers that should control whether the router itself should ran or not. Independently of the incoming request's method and path values. These handlers will be executed ALWAYS against ALL incoming matched requests. Example of use-case: CORS.
- `*versioning.Group` type is a full `Party` now.