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

Method MaxRedirects

client/request.go:603–605  ·  view source on GitHub ↗

MaxRedirects returns the maximum number of redirects configured for the Request.

()

Source from the content-addressed store, hash-verified

601
602// MaxRedirects returns the maximum number of redirects configured for the Request.
603func (r *Request) MaxRedirects() int {
604 return r.maxRedirects
605}
606
607// SetMaxRedirects sets the maximum number of redirects, overriding any previously set value.
608func (r *Request) SetMaxRedirects(count int) *Request {

Callers 2

Calls

no outgoing calls

Tested by 2