We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85fa24e commit 0da212fCopy full SHA for 0da212f
docs/ref/request-response.txt
@@ -843,11 +843,20 @@ Methods
843
844
Returns the value for the given header name. Case-insensitive.
845
846
+.. method:: HttpResponse.get(header, alternate=None)
847
+
848
+ Returns the value for the given header, or an ``alternate`` if the header
849
+ doesn't exist.
850
851
.. method:: HttpResponse.has_header(header)
852
853
Returns ``True`` or ``False`` based on a case-insensitive check for a
854
header with the given name.
855
856
+.. method:: HttpResponse.items()
857
858
+ Acts like :meth:`dict.items` for HTTP headers on the response.
859
860
.. method:: HttpResponse.setdefault(header, value)
861
862
Sets a header unless it has already been set.
0 commit comments