Home | Trees | Index | Help |
---|
Package Halberd :: Module clientlib :: Class HTTPClient |
|
HTTPSClient
Method Summary | |
---|---|
Initializes the object. | |
__del__(self)
| |
tuple
|
Talk to the target webserver and fetch MIME headers. |
Connect to the target address. | |
str
|
Fills the request template with relevant information. |
tuple
|
Determine the hostname and port to connect to from an URL |
tuple
|
Read a reply from the server. |
Sends an HTTP request to the target webserver. | |
Sends a string to the socket. |
Instance Variable Summary | |
---|---|
int |
bufsize : Buffer size for network I/O. |
str |
template : Template of the HTTP request to be sent to the target. |
float |
timeout : Timeout for socket operations (expressed in seconds). |
callable |
_recv : Reference to a callable responsible from reading data from the
network. |
Method Details |
---|
__init__(self)
Initializes the object.
|
getHeaders(self, address, urlstr)Talk to the target webserver and fetch MIME headers.
|
_connect(self, addr)Connect to the target address.
|
_fillTemplate(self, hostname, port, url, params='', query='', fragment='')Fills the request template with relevant information.
|
_getHostAndPort(self, netloc)Determine the hostname and port to connect to from an URL
|
_getReply(self)Read a reply from the server.
|
_putRequest(self, address, urlstr)Sends an HTTP request to the target webserver. This method connects to the target server, sends the HTTP request and records a timestamp.
|
_sendAll(self, data)Sends a string to the socket. |
Instance Variable Details |
---|
bufsizeBuffer size for network I/O.
|
timeoutTimeout for socket operations (expressed in seconds). WARNING: changing this value is strongly discouraged.
|
_recvReference to a callable responsible from reading data from the network.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jul 18 22:25:57 2007 | http://epydoc.sf.net |