MCPcopy Create free account
hub / github.com/gavv/httpexpect / createRetryFastHandler

Function createRetryFastHandler

e2e/retry_test.go:87–95  ·  view source on GitHub ↗
(rc *retryController)

Source from the content-addressed store, hash-verified

85}
86
87func createRetryFastHandler(rc *retryController) fasthttp.RequestHandler {
88 return func(ctx *fasthttp.RequestCtx) {
89 switch string(ctx.Path()) {
90 case "/test":
91 ctx.SetStatusCode(rc.getStatus())
92 ctx.SetBody(ctx.Request.Body())
93 }
94 }
95}
96
97func testRetries(
98 t *testing.T,

Callers 1

TestE2ERetry_BinderFastFunction · 0.85

Calls 3

getStatusMethod · 0.80
PathMethod · 0.45
BodyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…