Improved documentation around HTTP server meta variables.
Fixed #16581, with thanks to Bernhard Essl. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
11cc26681b
commit
549faf19bf
|
@ -125,10 +125,10 @@ All attributes except ``session`` should be considered read-only.
|
||||||
Available headers depend on the client and server, but here are some
|
Available headers depend on the client and server, but here are some
|
||||||
examples:
|
examples:
|
||||||
|
|
||||||
* ``CONTENT_LENGTH``
|
* ``CONTENT_LENGTH`` -- the length of the request body (as a string).
|
||||||
* ``CONTENT_TYPE``
|
* ``CONTENT_TYPE`` -- the MIME type of the request body.
|
||||||
* ``HTTP_ACCEPT_ENCODING``
|
* ``HTTP_ACCEPT_ENCODING`` -- Acceptable encodings for the response.
|
||||||
* ``HTTP_ACCEPT_LANGUAGE``
|
* ``HTTP_ACCEPT_LANGUAGE`` -- Acceptable languages for the response.
|
||||||
* ``HTTP_HOST`` -- The HTTP Host header sent by the client.
|
* ``HTTP_HOST`` -- The HTTP Host header sent by the client.
|
||||||
* ``HTTP_REFERER`` -- The referring page, if any.
|
* ``HTTP_REFERER`` -- The referring page, if any.
|
||||||
* ``HTTP_USER_AGENT`` -- The client's user-agent string.
|
* ``HTTP_USER_AGENT`` -- The client's user-agent string.
|
||||||
|
@ -138,7 +138,7 @@ All attributes except ``session`` should be considered read-only.
|
||||||
* ``REMOTE_USER`` -- The user authenticated by the Web server, if any.
|
* ``REMOTE_USER`` -- The user authenticated by the Web server, if any.
|
||||||
* ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``.
|
* ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``.
|
||||||
* ``SERVER_NAME`` -- The hostname of the server.
|
* ``SERVER_NAME`` -- The hostname of the server.
|
||||||
* ``SERVER_PORT`` -- The port of the server.
|
* ``SERVER_PORT`` -- The port of the server (as a string).
|
||||||
|
|
||||||
With the exception of ``CONTENT_LENGTH`` and ``CONTENT_TYPE``, as given
|
With the exception of ``CONTENT_LENGTH`` and ``CONTENT_TYPE``, as given
|
||||||
above, any HTTP headers in the request are converted to ``META`` keys by
|
above, any HTTP headers in the request are converted to ``META`` keys by
|
||||||
|
|
Loading…
Reference in New Issue