(h func(*Context))
| 87 | } |
| 88 | |
| 89 | func WrapRestRouteFunc(h func(*Context)) restful.RouteFunction { |
| 90 | return func(request *restful.Request, response *restful.Response) { |
| 91 | c := BuildContext(request, response) |
| 92 | h(c) |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | func WrapRestFilterFunction(h func(c *Context, chain *restful.FilterChain)) restful.FilterFunction { |
| 97 | return func(request *restful.Request, response *restful.Response, chain *restful.FilterChain) { |
no test coverage detected