Trees | Index | Help |
---|
Package shttp :: Module sHTTP :: Class HTTPBase |
|
HTTP
,
HTTPClient
Method Summary | |
---|---|
Initialize the HTTPBase instance. | |
__del__(self)
| |
Get the |v| HTTP header | |
close the Object | |
close_socket(self)
| |
Return the content of the document (a POST in the server, a response int the client) | |
The version of the HTTP used | |
What method is used to communicate (i.e. | |
The URI or requested location | |
Called when a bad header is present | |
Send the headers, including the response|request | |
Read the headers and the (response status|request) | |
Called when an HTTP Request error ocurrs, in the server is called when a response error is present. | |
Change the socket that connecs peers |
Method Details |
---|
__init__(self,
commsocket,
usingssl=False)
|
__getitem__(self,
v)
Get the |v| HTTP header
|
close(self)close the Object |
get_content(self, just_file_pointer=False, get_raw_data=False)Return the content of the document (a POST in the server, a response int the client) |
get_httpversion(self)The version of the HTTP used |
get_method(self)What method is used to communicate (i.e. GET, POST, etc) |
get_uri(self)The URI or requested location |
header_error(self, string)Called when a bad header is present |
put_headers(self, headers=None)Send the headers, including the response|request |
read_headers(self)Read the headers and the (response status|request) |
request_error(self, string)Called when an HTTP Request error ocurrs, in the server is called when a response error is present. Raises the respective exception in both modes |
set_socket(self, commsocket, usingssl=False)Change the socket that connecs peers |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 | http://epydoc.sf.net |