1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

new Application.SetContextErrorHandler method

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-04-13 01:00:53 +03:00
parent 73dfabf412
commit ae828d8db9
7 changed files with 314 additions and 243 deletions

View File

@@ -52,6 +52,10 @@ type Application interface {
// is hijacked by a third-party middleware and the http handler return too fast.
GetContextPool() *Pool
// GetContextErrorHandler returns the handler which handles errors
// on JSON write failures.
GetContextErrorHandler() ErrorHandler
// ServeHTTPC is the internal router, it's visible because it can be used for advanced use cases,
// i.e: routing within a foreign context.
//