MCPcopy
hub / github.com/uber/aresdb / ApplyHTTPWrappers

Function ApplyHTTPWrappers

utils/http.go:139–145  ·  view source on GitHub ↗

ApplyHTTPWrappers apply wrappers according to the order

(handler http.HandlerFunc, wrappers []HTTPHandlerWrapper)

Source from the content-addressed store, hash-verified

137
138// ApplyHTTPWrappers apply wrappers according to the order
139func ApplyHTTPWrappers(handler http.HandlerFunc, wrappers []HTTPHandlerWrapper) http.HandlerFunc {
140 h := handler
141 for _, wrapper := range wrappers {
142 h = wrapper(h)
143 }
144 return h
145}
146
147// LimitServe will start a http server on the port with the handler and at most maxConnection concurrent connections.
148func LimitServe(port int, handler http.Handler, httpCfg common.HTTPConfig) {

Callers 6

RegisterMethod · 0.92
RegisterMethod · 0.92
RegisterMethod · 0.92
RegisterMethod · 0.92
RegisterForDebugMethod · 0.92
RegisterMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected