|
@@ -631,6 +631,12 @@ Attributes
|
|
|
|
|
|
The `HTTP status code`_ for the response.
|
|
|
|
|
|
+ .. versionchanged:: 1.9
|
|
|
+
|
|
|
+ Unless :attr:`reason_phrase` is explicitly set, modifying the value of
|
|
|
+ ``status_code`` outside the constructor will also modify the value of
|
|
|
+ ``reason_phrase``.
|
|
|
+
|
|
|
.. attribute:: HttpResponse.reason_phrase
|
|
|
|
|
|
The HTTP reason phrase for the response.
|
|
@@ -642,6 +648,9 @@ Attributes
|
|
|
|
|
|
.. _`HTTP standard's`: https://www.ietf.org/rfc/rfc2616.txt
|
|
|
|
|
|
+ Unless explicitly set, ``reason_phrase`` is determined by the current
|
|
|
+ value of :attr:`status_code`.
|
|
|
+
|
|
|
.. attribute:: HttpResponse.streaming
|
|
|
|
|
|
This is always ``False``.
|
|
@@ -987,6 +996,12 @@ Attributes
|
|
|
|
|
|
The `HTTP status code`_ for the response.
|
|
|
|
|
|
+ .. versionchanged:: 1.9
|
|
|
+
|
|
|
+ Unless :attr:`reason_phrase` is explicitly set, modifying the value of
|
|
|
+ ``status_code`` outside the constructor will also modify the value of
|
|
|
+ ``reason_phrase``.
|
|
|
+
|
|
|
.. attribute:: StreamingHttpResponse.reason_phrase
|
|
|
|
|
|
The HTTP reason phrase for the response.
|
|
@@ -998,6 +1013,9 @@ Attributes
|
|
|
|
|
|
.. _`HTTP standard's`: https://www.ietf.org/rfc/rfc2616.txt
|
|
|
|
|
|
+ Unless explicitly set, ``reason_phrase`` is determined by the current
|
|
|
+ value of :attr:`status_code`.
|
|
|
+
|
|
|
.. attribute:: StreamingHttpResponse.streaming
|
|
|
|
|
|
This is always ``True``.
|