HTTPConnection

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.

System Message: ERROR/3 (paste.script.wsgiserver.HTTPConnection, line 3)

Unexpected indentation.
For IP sockets, this is a tuple of (REMOTE_ADDR, REMOTE_PORT). For UNIX domain sockets, this will be a string.

System Message: WARNING/2 (paste.script.wsgiserver.HTTPConnection, line 5)

Block quote ends without a blank line; unexpected unindent.
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.


Attributes

a environ

{'wsgi.errors': <open file '<stderr>', mode 'w' at 0xb7de50b0>,
 'wsgi.multiprocess': False,
 'wsgi.multithread': True,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}

a rbufsize

-1

Methods

f __init__(self, sock, addr, server) ...

f communicate(self) ...

Read each request and respond appropriately.

f close(self) ...

Close the socket underlying this connection.

See the source for more information.