class documentation
class BrowserLikeRedirectAgent(RedirectAgent): (source)
Constructor: BrowserLikeRedirectAgent(agent, redirectLimit, sensitiveHeaderNames)
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 Also | |
RedirectAgent | |
| Present Since | |
| 13.1 |
| Class Variable | _redirect |
Undocumented |
| Class Variable | _see |
Undocumented |
Inherited from RedirectAgent:
| Method | __init__ |
Undocumented |
| Method | request |
Send a client request following HTTP redirects. |
| Method | _handle |
Handle a redirect response, checking the number of redirects already followed, and extracting the location header fields. |
| Method | _handle |
Handle the response, making another request if it indicates a redirect. |
| Method | _resolve |
Resolve the redirect location against the request URI. |
| Instance Variable | _agent |
Undocumented |
| Instance Variable | _redirect |
Undocumented |
| Instance Variable | _sensitive |
Undocumented |