Home | Trees | Indices | Help |
|
---|
|
object --+ | HTTPRequest
An HTTP Request (and response).
A single HTTP connection may consist of multiple request/response pairs.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
server = None The HTTPServer object which is receiving this request. |
|||
conn = None The HTTPConnection object on which this request connected. |
|||
inheaders =
A dict of request headers. |
|||
outheaders =
A list of header tuples to write in the response. |
|||
ready = False When True, the request has been parsed and is ready to begin generating the response. |
|||
close_connection = False Signals the calling Connection that the request should close. |
|||
chunked_write = False If True, output will be encoded with the "chunked" transfer-coding. |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Read self.rfile into self.inheaders. Return success. |
Parse a Request-URI into (scheme, authority, path). Note that Request-URI's must be one of: Request-URI = "*" | absoluteURI | abs_path | authority Therefore, a Request-URI which starts with a double forward-slash cannot be a "net_path": net_path = "//" authority [ abs_path ] Instead, it must be interpreted as an "abs_path" with an empty first path segment: abs_path = "/" path_segments path_segments = segment *( "/" segment ) segment = *pchar *( ";" param ) param = *pchar |
Assert, process, and send the HTTP response message-headers. You must set self.status, and self.outheaders before calling this. |
|
readyWhen True, the request has been parsed and is ready to begin generating the response. When False, signals the calling Connection that the response should not be generated and the connection should close.
|
close_connectionSignals the calling Connection that the request should close. This does not imply an error! The client and/or server may each request that the connection be closed.
|
chunked_writeIf True, output will be encoded with the "chunked" transfer-coding. This value is set automatically inside send_headers.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 22 03:35:33 2015 | http://epydoc.sourceforge.net |