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

Class CPHTTPConnection

source code

               object --+    
                        |    
wsgiserver.HTTPConnection --+
                            |
                           CPHTTPConnection

An HTTP connection (active socket).

socket: the raw socket object (usually TCP) for this connection.
addr: the "bind address" for the remote end of the socket.
    For IP sockets, this is a tuple of (REMOTE_ADDR, REMOTE_PORT).
    For UNIX domain sockets, this will be a string.
server: the HTTP Server for this Connection. Usually, the server
    object possesses a passive (server) socket which spawns multiple,
    active (client) sockets, one for each connection.

environ: a WSGI environ template. This will be copied for each request.
rfile: a fileobject for reading from the socket.
sendall: a function for writing (+ flush) to the socket.



Nested Classes [hide private]
  RequestHandlerClass
An HTTP Request (and response).
Instance Methods [hide private]

Inherited from wsgiserver.HTTPConnection: __init__, close, communicate

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

Class Variables [hide private]

Inherited from wsgiserver.HTTPConnection: environ, rbufsize

Properties [hide private]

Inherited from object: __class__