diff options
author | ianb <devnull@localhost> | 2006-03-13 18:52:53 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-03-13 18:52:53 +0000 |
commit | f477b64ad223e829e7150b390ca3961f23f62d3c (patch) | |
tree | 7b0407075cf1e7b4fc84e9146e8bf60bc1d17ddf /paste/proxy.py | |
parent | 2f73592d856d62d69ac1787db29f01ca94ccdfdb (diff) | |
download | paste-f477b64ad223e829e7150b390ca3961f23f62d3c.tar.gz |
Added entry point for paste.proxy
Diffstat (limited to 'paste/proxy.py')
-rw-r--r-- | paste/proxy.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/paste/proxy.py b/paste/proxy.py index 8f43718..b7c5167 100644 --- a/paste/proxy.py +++ b/paste/proxy.py @@ -73,3 +73,10 @@ class Proxy(object): body = res.read(int(length)) conn.close() return [body] + +def make_proxy(global_conf, address): + """ + Make a WSGI application that proxies to another address -- + 'address' should be the full URL. + """ + return Proxy(address) |