summaryrefslogtreecommitdiff
path: root/paste/proxy.py
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-09-05 15:01:55 +0000
committerianb <devnull@localhost>2006-09-05 15:01:55 +0000
commit828bfff4cdb051a35e47b256af0ac5a18ad8ddc8 (patch)
treee19289d577fee46e3cbd870e788517e381f421a1 /paste/proxy.py
parente7f8995a01e127e593aa0f08a29f4a0f1ac45d11 (diff)
downloadpaste-828bfff4cdb051a35e47b256af0ac5a18ad8ddc8.tar.gz
Some docstring fixes, and a link fix; exception fix in paste.lint0.9.8.1
Diffstat (limited to 'paste/proxy.py')
-rw-r--r--paste/proxy.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/paste/proxy.py b/paste/proxy.py
index 40b886e..97a6d04 100644
--- a/paste/proxy.py
+++ b/paste/proxy.py
@@ -118,11 +118,18 @@ class Proxy(object):
def make_proxy(global_conf, address, allowed_request_methods="",
suppress_http_headers=""):
"""
- Make a WSGI application that proxies to another address --
- 'address' should be the full URL ending with a trailing /
- 'allowed_request_methods' is a space seperated list of request methods
- 'suppress_http_headers' is a space seperated list of http headers (lower case, without the leading http_)
- that should not be passed on to target host
+ Make a WSGI application that proxies to another address:
+
+ ``address``
+ the full URL ending with a trailing ``/``
+
+ ``allowed_request_methods``:
+ a space seperated list of request methods (e.g., ``GET POST``)
+
+ ``suppress_http_headers``
+ a space seperated list of http headers (lower case, without
+ the leading ``http_``) that should not be passed on to target
+ host
"""
from paste.deploy.converters import aslist
allowed_request_methods = aslist(allowed_request_methods)