Ticket #9712: meta_headers.patch

File meta_headers.patch, 735 bytes (added by Masklinn, 15 years ago)
  • docs/ref/request-response.txt

     
    142142        * ``SERVER_NAME`` -- The hostname of the server.
    143143        * ``SERVER_PORT`` -- The port of the server.
    144144
     145    The transformation rule for HTTP headers (other than ``CONTENT_LENGTH`` and
     146    ``CONTENT_TYPE``) is simple: uppercase the header name, prepend ``HTTP_``
     147    and replace all ``-`` characters by ``_``.
     148
     149    Example: ``X-Forwarded-For`` becomes ``HTTP_X_FORWARDED_FOR``
     150
    145151.. attribute:: HttpRequest.user
    146152
    147153    A ``django.contrib.auth.models.User`` object representing the currently
Back to Top