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

add human-friendly middleware names on route debugging (see HISTORY.md#Next)

Former-commit-id: f7291c4a077c4d1573344c93ba8a153fede18795
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-28 05:42:23 +03:00
parent b657c5e6af
commit c366c34644
10 changed files with 43 additions and 17 deletions

View File

@@ -10,6 +10,10 @@ import (
"github.com/kataras/iris/v12/context"
)
func init() {
context.SetHandlerName("iris/middleware/hcaptcha.*", "hCaptcha")
}
var (
// ResponseContextKey is the default request's context key that response of a hcaptcha request is kept.
ResponseContextKey string = "iris.hcaptcha"