Http Connection object.
|
|
__init__(self,
timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
filters=None,
follow_redirect=False,
force_follow_redirect=False,
max_follow_redirect=5,
key_file=None,
cert_file=None,
pool_instance=None,
response_class=None)
HttpConnection constructor |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
make_connection(self)
initate a connection if needed or reuse a socket |
source code
|
|
|
|
|
|
|
|
|
|
parse_url(self,
url)
parse url and get host/port |
source code
|
|
|
|
request(self,
url,
method='GET',
body=None,
headers=None)
make effective request |
source code
|
|
|
|
|
|
|
|
|
|
do_redirect(self)
follow redirections if needed |
source code
|
|
|
|
start_response(self)
Get headers, set Body object and return HttpResponse |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|