MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / WrapRestFilterFunction

Function WrapRestFilterFunction

pkg/server/context.go:96–101  ·  view source on GitHub ↗
(h func(c *Context, chain *restful.FilterChain))

Source from the content-addressed store, hash-verified

94}
95
96func WrapRestFilterFunction(h func(c *Context, chain *restful.FilterChain)) restful.FilterFunction {
97 return func(request *restful.Request, response *restful.Response, chain *restful.FilterChain) {
98 c := BuildContext(request, response)
99 h(c, chain)
100 }
101}

Callers

nothing calls this directly

Calls 1

BuildContextFunction · 0.70

Tested by

no test coverage detected