web.web.wsgiserver.HTTPConnection

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

# Class HTTPConnection

source code

    object --+
             |
            HTTPConnection

An HTTP connection (active socket).

server: the Server object which received this connection. socket: the raw socket object (usually TCP) for this connection. makefile: a fileobject class for reading from the socket.

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

Instance Methods | [hide private]
__init__(self, server, sock, makefile=<class 'web.web.wsgiserver.CP_fileobject'>) x.__init__(...) initializes x; see x.__class__.__doc__ 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]
| remote_addr = `None` hash(x)
| remote_port = `None` hash(x)
| ssl_env = `None` hash(x)
| rbufsize = `-1`
| linger = `False`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, server, sock, makefile=<class 'web.web.wsgiserver.CP_fileobject'>) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)