MCPcopy
hub / github.com/gofiber/fiber / runGetHandlerRequest

Function runGetHandlerRequest

app_test.go:2169–2175  ·  view source on GitHub ↗
(handler fasthttp.RequestHandler, path string)

Source from the content-addressed store, hash-verified

2167}
2168
2169func runGetHandlerRequest(handler fasthttp.RequestHandler, path string) int {
2170 request := &fasthttp.RequestCtx{}
2171 request.Request.Header.SetMethod(MethodGet)
2172 request.Request.SetRequestURI(path)
2173 handler(request)
2174 return request.Response.StatusCode()
2175}
2176
2177type panicLoadView struct {
2178 loads int

Calls 2

SetMethodMethod · 0.80
StatusCodeMethod · 0.45

Tested by

no test coverage detected