diff options
author | MAHANTH-wq <vallulrimahanthkumar@gmail.com> | 2020-10-01 11:05:59 +0530 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-01 09:44:40 +0200 |
commit | 0da212ffbf5f22cfb1ad1f11bc30a45cee2fce82 (patch) | |
tree | ed574b676bba1603fc5b2972bf73fc8c3e17b55b | |
parent | 85fa24e3eb8d0f942ef05c48ea8b0a84659e7ce4 (diff) | |
download | django-0da212ffbf5f22cfb1ad1f11bc30a45cee2fce82.tar.gz |
Fixed #32057 -- Doc'd HttpResponse.get()/items().
-rw-r--r-- | docs/ref/request-response.txt | 9 |
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. |