MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / chainMiddlewares

Function chainMiddlewares

runtime/mux.go:573–580  ·  view source on GitHub ↗
(mws []Middleware)

Source from the content-addressed store, hash-verified

571}
572
573func chainMiddlewares(mws []Middleware) Middleware {
574 return func(next HandlerFunc) HandlerFunc {
575 for i := len(mws); i > 0; i-- {
576 next = mws[i-1](next)
577 }
578 return next
579 }
580}

Callers 1

HandleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected