summaryrefslogtreecommitdiff
path: root/docs/ref/request-response.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/request-response.txt')
-rw-r--r--docs/ref/request-response.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 40063becc9..8dae4455a2 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -843,11 +843,20 @@ Methods
Returns the value for the given header name. Case-insensitive.
+.. method:: HttpResponse.get(header, alternate=None)
+
+ Returns the value for the given header, or an ``alternate`` if the header
+ doesn't exist.
+
.. method:: HttpResponse.has_header(header)
Returns ``True`` or ``False`` based on a case-insensitive check for a
header with the given name.
+.. method:: HttpResponse.items()
+
+ Acts like :meth:`dict.items` for HTTP headers on the response.
+
.. method:: HttpResponse.setdefault(header, value)
Sets a header unless it has already been set.