summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2014-03-05 18:47:46 -0500
committerTres Seaver <tseaver@palladion.com>2014-03-05 18:47:46 -0500
commitb4e59b7168273b774acd975457906dffa176caba (patch)
tree178a4955b46749bb86d619e10271f1f62d7c367e
parent82ec99eebc6a6dfe2903bc0383f31a9b146b3d80 (diff)
downloadpyramid-b4e59b7168273b774acd975457906dffa176caba.tar.gz
pyramid-b4e59b7168273b774acd975457906dffa176caba.tar.bz2
pyramid-b4e59b7168273b774acd975457906dffa176caba.zip
'request_method' is *not* limited to the named set.
-rw-r--r--pyramid/config/views.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pyramid/config/views.py b/pyramid/config/views.py
index 1ef4efdb3..2f6c758ab 100644
--- a/pyramid/config/views.py
+++ b/pyramid/config/views.py
@@ -879,13 +879,13 @@ class ViewsConfiguratorMixin(object):
request_method
- This value can be one of the strings ``GET``, ``POST``, ``PUT``,
- ``DELETE``, or ``HEAD`` representing an HTTP ``REQUEST_METHOD``, or
- a tuple containing one or more of these strings. A view
- declaration with this argument ensures that the view will only be
- called when the request's ``method`` attribute (aka the
- ``REQUEST_METHOD`` of the WSGI environment) string matches a
- supplied value. Note that use of ``GET`` also implies that the
+ This value can be either a strings (such as ``GET``, ``POST``,
+ ``PUT``, ``DELETE``, or ``HEAD``) representing an HTTP
+ ``REQUEST_METHOD``, or a tuple containing one or more of these
+ strings. A view declaration with this argument ensures that the
+ view will only be called when the ``method`` attribute of the
+ request (aka the ``REQUEST_METHOD`` of the WSGI environment) matches
+ a supplied value. Note that use of ``GET`` also implies that the
view will respond to ``HEAD`` as of Pyramid 1.4.
.. versionchanged:: 1.2