summaryrefslogtreecommitdiff
path: root/docs/request_response.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/request_response.txt')
-rw-r--r--docs/request_response.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt
index 5b01fc3482..150a5bc92c 100644
--- a/docs/request_response.txt
+++ b/docs/request_response.txt
@@ -110,6 +110,18 @@ All attributes except ``session`` should be considered read-only.
Methods
-------
+``__getitem__(key)``
+ Returns the GET/POST value for the given key, checking POST first, then
+ GET. Raises ``KeyError`` if the key doesn't exist.
+
+ This lets you use dictionary-accessing syntax on an ``HttpRequest``
+ instance. Example: ``request["foo"]`` would return ``True`` if either
+ ``request.POST`` or ``request.GET`` had a ``"foo"`` key.
+
+``has_key()``
+ Returns ``True`` or ``False``, designating whether ``request.GET`` or
+ ``request.POST`` has the given key.
+
``get_full_path()``
Returns the ``path``, plus an appended query string, if applicable.