Package cherrypy :: Package wsgiserver :: Class HTTPConnection
[hide private]
[frames] | no frames]

Class HTTPConnection

source code

object --+
         |
        HTTPConnection
Known Subclasses:

An HTTP connection (active socket).

socket: the raw socket object (usually TCP) for this connection. wsgi_app: the WSGI application for this server/connection. environ: a WSGI environ template. This will be copied for each request.

rfile: a fileobject for reading from the socket. send: a function for writing (+ flush) to the socket.

Nested Classes [hide private]
  RequestHandlerClass
An HTTP Request (and response).
Instance Methods [hide private]
 
__init__(self, sock, wsgi_app, environ)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
communicate(self)
Read each request and respond appropriately.
source code
 
close(self)
Close the socket underlying this connection.
source code

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

Class Variables [hide private]
  rbufsize = -1
  environ = {"wsgi.version":(1, 0), "wsgi.url_scheme": "http", "...
  linger = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sock, wsgi_app, environ)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

environ

Value:
{'wsgi.errors': <epydoc.docintrospecter._DevNull instance at 0x1ac8200\
>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}