summaryrefslogtreecommitdiff
path: root/docs/ref/request-response.txt
diff options
context:
space:
mode:
authorVasiliy Faronov <vfaronov@gmail.com>2016-05-02 15:35:05 +0300
committerTim Graham <timograham@gmail.com>2016-05-03 11:14:40 -0400
commitac77c55bc5fc54cd763a7ae426784650a8cc97c9 (patch)
treeaaf79c0eebbbad7d15c26f308de7ec47d1a81405 /docs/ref/request-response.txt
parentfb68674ea4b05280e3deb2ed23602038755092bc (diff)
Fixed #26567 -- Updated references to obsolete RFC2616.
Didn't touch comments where it wasn't obvious that the code adhered to the newer standard.
Diffstat (limited to 'docs/ref/request-response.txt')
-rw-r--r--docs/ref/request-response.txt18
1 files changed, 7 insertions, 11 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index a1be4d64b9..8ff1d14a4a 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -685,7 +685,7 @@ Attributes
.. attribute:: HttpResponse.status_code
- The `HTTP status code`_ for the response.
+ The :rfc:`HTTP status code <7231#section-6>` for the response.
.. versionchanged:: 1.9
@@ -700,9 +700,8 @@ Attributes
.. versionchanged:: 1.9
``reason_phrase`` no longer defaults to all capital letters. It now
- uses the `HTTP standard's`_ default reason phrases.
-
- .. _`HTTP standard's`: https://www.ietf.org/rfc/rfc2616.txt
+ uses the :rfc:`HTTP standard's <7231#section-6.1>` default reason
+ phrases.
Unless explicitly set, ``reason_phrase`` is determined by the current
value of :attr:`status_code`.
@@ -737,7 +736,7 @@ Methods
specified, it is formed by the :setting:`DEFAULT_CONTENT_TYPE` and
:setting:`DEFAULT_CHARSET` settings, by default: "`text/html; charset=utf-8`".
- ``status`` is the `HTTP status code`_ for the response.
+ ``status`` is the :rfc:`HTTP status code <7231#section-6>` for the response.
``reason`` is the HTTP response phrase. If not provided, a default phrase
will be used.
@@ -865,8 +864,6 @@ Methods
Writes a list of lines to the response. Line separators are not added. This
method makes an :class:`HttpResponse` instance a stream-like object.
-.. _HTTP status code: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10
-
.. _ref-httpresponse-subclasses:
``HttpResponse`` subclasses
@@ -1057,7 +1054,7 @@ Attributes
.. attribute:: StreamingHttpResponse.status_code
- The `HTTP status code`_ for the response.
+ The :rfc:`HTTP status code <7231#section-6>` for the response.
.. versionchanged:: 1.9
@@ -1072,9 +1069,8 @@ Attributes
.. versionchanged:: 1.9
``reason_phrase`` no longer defaults to all capital letters. It now
- uses the `HTTP standard's`_ default reason phrases.
-
- .. _`HTTP standard's`: https://www.ietf.org/rfc/rfc2616.txt
+ uses the :rfc:`HTTP standard's <7231#section-6.1>` default reason
+ phrases.
Unless explicitly set, ``reason_phrase`` is determined by the current
value of :attr:`status_code`.