summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2013-06-19 15:48:57 -0400
committerTres Seaver <tseaver@palladion.com>2013-06-19 15:48:57 -0400
commitbd6922d41d23a48aa18fc50522155d99dd90f763 (patch)
tree68f07d41db8fd3c25f2cadd0204449ea815bea4b
parentdc7c72a2d1354d7adead65f29bbdd8e0d9d07055 (diff)
downloadpyramid-bd6922d41d23a48aa18fc50522155d99dd90f763.tar.gz
pyramid-bd6922d41d23a48aa18fc50522155d99dd90f763.tar.bz2
pyramid-bd6922d41d23a48aa18fc50522155d99dd90f763.zip
Update docstring to show PUT / PATCH usage.
-rw-r--r--pyramid/scripts/prequest.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/pyramid/scripts/prequest.py b/pyramid/scripts/prequest.py
index d1ef9fa83..3d8921b15 100644
--- a/pyramid/scripts/prequest.py
+++ b/pyramid/scripts/prequest.py
@@ -18,9 +18,16 @@ class PRequestCommand(object):
This command makes an artifical request to a web application that uses a
PasteDeploy (.ini) configuration file for the server and application.
- Use "prequest config.ini /path" to request "/path". Use "prequest
- --method=POST config.ini /path < data" to do a POST with the given
- request body.
+ Use "prequest config.ini /path" to request "/path".
+
+ Use "prequest --method=POST config.ini /path < data" to do a POST with
+ the given request body.
+
+ Use "prequest --method=PUT config.ini /path < data" to do a
+ PUT with the given request body.
+
+ Use "prequest --method=PATCH config.ini /path < data" to do a
+ PATCH with the given request body.
If the path is relative (doesn't begin with "/") it is interpreted as
relative to "/". The path passed to this script should be URL-quoted.