An Agent wrapper which handles HTTP redirects in the same fashion as web browsers.

Unlike RedirectAgent, the implementation is more relaxed: 301 and 302 behave like 303, redirecting automatically on any method and altering the redirect request to a GET.

See AlsoRedirectAgent
Present Since13.1

Inherited from RedirectAgent:

Method __init__ Undocumented
Method request Send a client request following HTTP redirects.
Class Variable _redirectResponses A list of HTTP status codes to be redirected for GET and HEAD methods.
Class Variable _seeOtherResponses A list of HTTP status codes to be redirected for any method and the method altered to GET.
Method _resolveLocation Resolve the redirect location against the request URI.
Method _handleRedirect Handle a redirect response, checking the number of redirects already followed, and extracting the location header fields.
Method _handleResponse Handle the response, making another request if it indicates a redirect.
API Documentation for Twisted, generated by pydoctor at 2016-10-29 16:19:29.