Django Objects: HttpRequest
HttpRequest object is an instance of the
HttpRequest Python class. When a webpage is requested from your web server, Django creates an
HttpRequest object that contains metadata about the HTTP request. Then Django calls the appropriate view, passing the
HttpRequest as the first argument to the view function. Each view is responsible for returning an
HttpResponse object. These
HttpRequest objects and
HttpResponse objects pass state through the system.