MCPcopy
hub / github.com/labstack/echo / applyMiddleware

Function applyMiddleware

echo.go:854–859  ·  view source on GitHub ↗
(h HandlerFunc, middleware ...MiddlewareFunc)

Source from the content-addressed store, hash-verified

852}
853
854func applyMiddleware(h HandlerFunc, middleware ...MiddlewareFunc) HandlerFunc {
855 for i := len(middleware) - 1; i >= 0; i-- {
856 h = middleware[i](h)
857 }
858 return h
859}
860
861// defaultFS emulates os.Open behavior with filesystem opened by `os.DirFs`. Difference between `os.Open` and `fs.Open`
862// is that FS does not allow to open path that start with `..` or `/` etc. For example previously you could have `../images`

Callers 2

AddMethod · 0.85
buildRouterChainsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…