| Home | Trees | Indices | Help |
|
|---|
|
|
wsgi_intercept.WSGI_HTTPConnection is a replacement for httplib.HTTPConnection that intercepts certain HTTP connections into a WSGI application.
Use 'add_wsgi_intercept' and 'remove_wsgi_intercept' to control this behavior.
|
|||
|
wsgi_fake_socket Handle HTTP traffic and stuff into a WSGI application object instead. |
||
|
WSGI_HTTPConnection Intercept all traffic to certain hosts & redirect into a WSGI application object. |
||
|
|||
|
add_wsgi_intercept(host,
port,
app_create_fn,
script_name='') Add a WSGI intercept call for host:port, using the app returned by app_create_fn with a SCRIPT_NAME of 'script_name' (default ''). |
||
|
remove_wsgi_intercept(host,
port) Remove the WSGI intercept call for (host, port). |
||
|
make_environ(inp,
host,
port,
script_name) Take 'inp' as if it were HTTP-speak being received on host:port, and parse it into a WSGI-ok environment dictionary. |
||
|
|||
|
debuglevel = 0
|
||
|
_wsgi_intercept = {}
|
||
Imports: sys, httplib.HTTPConnection, cStringIO.StringIO, traceback
|
|||
|
|
Take 'inp' as if it were HTTP-speak being received on host:port, and parse it into a WSGI-ok environment dictionary. Return the dictionary. Set 'SCRIPT_NAME' from the 'script_name' input, and, if present, remove it from the beginning of the PATH_INFO variable. |
|
|||
debuglevelNone
|
_wsgi_interceptNone
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Mon Nov 13 21:49:07 2006 | http://epydoc.sourceforge.net |