|
__init__(self,
host,
port=None,
strict=None,
timeout=<object object at 0xf75594e0>,
source_address=None) |
|
|
|
_get_hostport(self,
host,
port) |
|
|
|
_output(self,
s)
Add a line of output to the current request buffer. |
|
|
|
_send_output(self,
message_body=None)
Send the currently buffered request and clear the buffer. |
|
|
|
_send_request(self,
method,
url,
body,
headers) |
|
|
|
_set_content_length(self,
body) |
|
|
|
|
|
close(self)
Close the connection to the HTTP server. |
|
|
|
connect(self)
Connect to the host and port specified in __init__. |
|
|
|
endheaders(self,
message_body=None)
Indicate that the last header line has been sent to the server. |
|
|
|
getresponse(self,
buffering=False)
Get the response from the server. |
|
|
|
putheader(self,
header,
*values)
Send a request header line to the server. |
|
|
|
putrequest(self,
method,
url,
skip_host=0,
skip_accept_encoding=0)
Send a request to the server. |
|
|
|
request(self,
method,
url,
body=None,
headers={ } )
Send a complete request to the server. |
|
|
|
send(self,
data)
Send `data' to the server. |
|
|
|
set_debuglevel(self,
level) |
|
|
|
set_tunnel(self,
host,
port=None,
headers=None)
Set up host and port for HTTP CONNECT tunnelling. |
|
|