(h HandlerFunc, middleware ...MiddlewareFunc)
| 852 | } |
| 853 | |
| 854 | func 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` |
no outgoing calls
no test coverage detected
searching dependent graphs…