__init__(host[, port, strict, timeout, ...]) |
|
_get_hostport(host, port) |
|
_output(s) |
Add a line of output to the current request buffer. |
_send_output([message_body]) |
Send the currently buffered request and clear the buffer. |
_send_request(method, url, body, headers) |
|
_set_content_length(body, method) |
|
_tunnel() |
|
close() |
Close the connection to the HTTP server. |
connect() |
Connect to the host and port specified in __init__. |
endheaders([message_body]) |
Indicate that the last header line has been sent to the server. |
getresponse([buffering]) |
Get the response from the server. |
putheader(header, *values) |
Send a request header line to the server. |
putrequest(method, url[, skip_host, ...]) |
Send a request to the server. |
request(method, url[, body, headers]) |
Send a complete request to the server. |
send(data) |
Send `data’ to the server. |
set_debuglevel(level) |
|
set_tunnel(host[, port, headers]) |
Set up host and port for HTTP CONNECT tunnelling. |