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

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

Known subclasses: bzrlib.tests.test_http.RedirectedRequest, bzrlib.transport.http._urllib2_wrappers._ConnectRequest

A custom Request object.

urllib2 determines the request method heuristically (based on
the presence or absence of data). We set the method
statically.

The Request object tracks:
- the connection the request will be made on.
- the authentication parameters needed to preventively set
  the authentication header once a first authentication have
   been made.
Method __init__ Undocumented
Method get_method Undocumented
Method set_proxy Set the proxy and remember the proxied host.
def __init__(self, method, url, data=None, headers={}, origin_req_host=None, unverifiable=False, connection=None, parent=None, accepted_errors=None):
Undocumented
def get_method(self):
Undocumented
def set_proxy(self, proxy, type):
Set the proxy and remember the proxied host.
API Documentation for Bazaar, generated by pydoctor at 2019-08-22 00:28:44.