The HTTPConnection class is accessible via the paste.script.wsgiserver module.
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.
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.
{'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)}
See the source for more information.