classafButter::FollowRedirectsMiddleware

sys::Obj
  afButter::FollowRedirectsMiddleware : afButter::ButterMiddleware

(Middleware) - Automatically resubmits requests on redirect responses.

enabled

Source

Bool enabled := true

Set to true to follow redirects.

Defaults to true.

tooManyRedirects

Source

Int tooManyRedirects := 20

How many redirects are too many? This number answers the question. An Err is raised should the number of redirects reach this number for a single request.

Defaults to 20, as does Firefox and Chrome.