Package cherrypy :: Module _cpwsgi :: Class CPHTTPRequest
[hide private]
[frames] | no frames]

Class CPHTTPRequest

source code

            object --+    
                     |    
wsgiserver.HTTPRequest --+
                         |
                        CPHTTPRequest

An HTTP Request (and response).

A single HTTP connection may consist of multiple request/response pairs.

connection: the HTTP Connection object which spawned this request.
rfile: the 'read' fileobject from the connection's socket
ready: when 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_connection: signals 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_write: if True, output will be encoded with the "chunked"
    transfer-coding. This value is set automatically inside
    send_headers.

Instance Methods [hide private]
 
parse_request(self)
Parse the next HTTP request start-line and message-headers.
source code
 
decode_chunked(self)
Decode the 'chunked' transfer coding.
source code

Inherited from wsgiserver.HTTPRequest: __init__, read_headers, respond, send_headers, simple_response, start_response, write

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

parse_request(self)

source code 

Parse the next HTTP request start-line and message-headers.

Overrides: wsgiserver.HTTPRequest.parse_request
(inherited documentation)

decode_chunked(self)

source code 

Decode the 'chunked' transfer coding.

Overrides: wsgiserver.HTTPRequest.decode_chunked