PyDocs

Nav

Internet Protocols and Support

HTTPRedirectHandler.redirect_request

  • HTTPRedirectHandler.redirect_request(req, fp, code, msg, hdrs, newurl)
Return a Request or None in response to a redirect.

This is called by the http_error_30x methods when a
redirection response is received.  If a redirection should
take place, return a new Request to allow http_error_30x to
perform the redirect.  Otherwise, raise HTTPError if no-one
else should try to handle this url.  Return None if you can't
but another Handler might.
0 Examples
No examples for urllib.request/HTTPRedirectHandler.redirect_request.
See Also
No see-alsos for urllib.request/HTTPRedirectHandler.redirect_request
0 Notes
No notes for HTTPRedirectHandler.redirect_request