We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4464c7 commit 10162fdCopy full SHA for 10162fd
1 file changed
context.go
@@ -446,6 +446,9 @@ func WrapH(h http.Handler) HandlerFunc {
446
447
// WrapM is an adapter for wrapping http.Handler middleware and returns a [MiddlewareFunc] function.
448
// The route parameters are being accessed by the wrapped handler through the context.
449
+//
450
+// Note that m is invoked on every request, so any setup it does before returning
451
+// its handler runs per request.
452
func WrapM(m func(http.Handler) http.Handler) MiddlewareFunc {
453
return func(next HandlerFunc) HandlerFunc {
454
return wrapM{next: next, m: m}.handle
0 commit comments