|
__init__(self,
host,
port=None,
strict=None) |
|
|
|
_set_hostport(self,
host,
port) |
|
|
|
set_debuglevel(self,
level) |
|
|
|
connect(self)
Connect to the host and port specified in __init__. |
|
|
|
close(self)
Close the connection to the HTTP server. |
|
|
|
send(self,
str)
Send `str' to the server. |
|
|
|
_output(self,
s)
Add a line of output to the current request buffer. |
|
|
|
_send_output(self)
Send the currently buffered request and clear the buffer. |
|
|
|
putrequest(self,
method,
url,
skip_host=0,
skip_accept_encoding=0)
Send a request to the server. |
|
|
|
putheader(self,
header,
value)
Send a request header line to the server. |
|
|
|
endheaders(self)
Indicate that the last header line has been sent to the server. |
|
|
|
request(self,
method,
url,
body=None,
headers={ } )
Send a complete request to the server. |
|
|
|
_send_request(self,
method,
url,
body,
headers) |
|
|
|
getresponse(self)
Get the response from the server. |
|
|