b.t.h._.HTTPRedirectHandler(urllib2.HTTPRedirectHandler) : class documentation

Part of bzrlib.transport.http._urllib2_wrappers View In Hierarchy

Handles redirect requests.

We have to implement our own scheme because we use a specific Request object and because we want to implement a specific policy.

Method redirect_request See urllib2.HTTPRedirectHandler.redirect_request
Method http_error_302 Requests the redirected to URI.
def redirect_request(self, req, fp, code, msg, headers, newurl):
See urllib2.HTTPRedirectHandler.redirect_request
def http_error_302(self, req, fp, code, msg, headers):
Requests the redirected to URI.

Copied from urllib2 to be able to clean the pipe of the associated connection, before issuing the redirected request but after having eventually raised an error.

API Documentation for Bazaar, generated by pydoctor at 2019-07-23 00:29:00.