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

Method DoRedirects

client/transport.go:173–175  ·  view source on GitHub ↗

DoRedirects proxies redirect handling through doRedirectsWithClient so the load-balanced transport mirrors fasthttp.Client semantics despite fasthttp.LBClient not exposing DoRedirects directly.

(req *fasthttp.Request, resp *fasthttp.Response, maxRedirects int)

Source from the content-addressed store, hash-verified

171// load-balanced transport mirrors fasthttp.Client semantics despite
172// fasthttp.LBClient not exposing DoRedirects directly.
173func (l *lbClientTransport) DoRedirects(req *fasthttp.Request, resp *fasthttp.Response, maxRedirects int) error {
174 return doRedirectsWithClient(req, resp, maxRedirects, l.client)
175}
176
177func (l *lbClientTransport) CloseIdleConnections() {
178 forEachHostClient(l.client, func(hc *fasthttp.HostClient) {

Callers

nothing calls this directly

Calls 1

doRedirectsWithClientFunction · 0.85

Tested by

no test coverage detected