From bd6922d41d23a48aa18fc50522155d99dd90f763 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 19 Jun 2013 15:48:57 -0400 Subject: Update docstring to show PUT / PATCH usage. --- pyramid/scripts/prequest.py | 13 ++++++++++--- 1 file 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. -- cgit v1.2.3