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

init of v11.2.0: add context#FullRequestURI and NewConditionalHandler

As requested at: https://github.com/kataras/iris/issues/1167 and https://github.com/kataras/iris/issues/1170


Former-commit-id: 781c92f444b3e362011be886b32cf88f89998589
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-01-19 23:33:33 +02:00
parent 571ef59adf
commit 3fcc70b891
6 changed files with 152 additions and 6 deletions

View File

@@ -42,6 +42,12 @@ type (
// If Handler panics, the server (the caller of Handler) assumes that the effect of the panic was isolated to the active request.
// It recovers the panic, logs a stack trace to the server error log, and hangs up the connection.
Handler = context.Handler
// Filter is just a type of func(Handler) bool which reports whether an action must be performed
// based on the incoming request.
//
// See `NewConditionalHandler` for more.
// An alias for the `context/Filter`.
Filter = context.Filter
// A Map is a shortcut of the map[string]interface{}.
Map = context.Map