diff options
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) |