There are no base classes.
There are no implemented interfaces.
close()
Close the connection to the HTTP server.
connect()
Connect to the host and port specified in __init__.
endheaders()
Indicate that the last header line has been sent to the server.
getresponse()
Get the response from the server.
putheader(header, value)
Send a request header line to the server.
For example: h.putheader(Accept
, text/html
)
putrequest(method, url, skip_host=0, skip_accept_encoding=0)
Send a request to the server.
`method' specifies an HTTP request method, e.g. GET
.
`url' specifies the object being requested, e.g. /index.html
.
`skip_host' if True does not add automatically a Host:
header
`skip_accept_encoding' if True does not add automatically an
Accept-Encoding:
header
request(method, url, body=None, headers={})
Send a complete request to the server.
send(str)
Send `str' to the server.
set_debuglevel(level)