1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

HTTP error handlers per Party (docs and details in progress)

Former-commit-id: 7092ebed556b56d9f1769b9b23f2340c2a3a18f7
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-11 00:44:54 +03:00
parent 3657aaf240
commit c039730521
18 changed files with 434 additions and 306 deletions

View File

@@ -130,7 +130,8 @@ type Application struct {
// routing embedded | exposing APIBuilder's and Router's public API.
*router.APIBuilder
*router.Router
ContextPool *context.Pool
router.HTTPErrorHandler // if Router is Downgraded this is nil.
ContextPool *context.Pool
// config contains the configuration fields
// all fields defaults to something that is working, developers don't have to set it.
@@ -834,6 +835,7 @@ func (app *Application) Build() error {
if err != nil {
rp.Err(err)
}
app.HTTPErrorHandler = routerHandler
// re-build of the router from outside can be done with
// app.RefreshRouter()
}