Part of twisted.web.client View Source View In Hierarchy
Agent
wrapper which handles HTTP redirects.
The implementation is rather strict: 301 and 302 behaves like 307, not
redirecting automatically on methods different from GET and
HEAD.
| Parameters | redirectLimit | The maximum number of times the agent is allowed to follow redirects before
failing with a error.InfiniteRedirection.
|
| Present Since | 11.1 | |
| Method | __init__ | Undocumented |
| Method | request | Send a client request following HTTP redirects. |
| 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. |
| See Also | Agent.request.
| |