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

Method SetMaxRedirects

client/request.go:608–611  ·  view source on GitHub ↗

SetMaxRedirects sets the maximum number of redirects, overriding any previously set value.

(count int)

Source from the content-addressed store, hash-verified

606
607// SetMaxRedirects sets the maximum number of redirects, overriding any previously set value.
608func (r *Request) SetMaxRedirects(count int) *Request {
609 r.maxRedirects = count
610 return r
611}
612
613// DisablePathNormalizing reports whether path normalizing is disabled for the Request.
614func (r *Request) DisablePathNormalizing() bool {

Callers 4

Test_Exec_FuncFunction · 0.80
setConfigToRequestFunction · 0.80

Calls

no outgoing calls

Tested by 3

Test_Exec_FuncFunction · 0.64