summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/request-response.txt7
-rw-r--r--docs/releases/1.7.txt6
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index a4ed6a2645..57222c8ca7 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -32,6 +32,13 @@ Attributes
All attributes should be considered read-only, unless stated otherwise below.
``session`` is a notable exception.
+.. attribute:: HttpRequest.scheme
+
+ .. versionadded:: 1.7
+
+ A string representing the scheme of the request (``http`` or ``https``
+ usually).
+
.. attribute:: HttpRequest.body
The raw HTTP request body as a byte string. This is useful for processing
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index 5c208e22ac..a3fdc0e9f3 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -386,6 +386,12 @@ Templates
<naive_vs_aware_datetimes>` ``datetime`` instances performing the expected
rendering.
+Requests
+^^^^^^^^
+
+* The new :attr:`HttpRequest.scheme <django.http.HttpRequest.scheme>` attribute
+ specifies the scheme of the request (``http`` or ``https`` normally).
+
Tests
^^^^^