class documentation

class ASGIRequest(HttpRequest):

View In Hierarchy

Custom request subclass that decodes from an ASGI-standard request dict and wraps request body handling.
Constant FILES Undocumented
Constant POST Undocumented
Method __init__ Undocumented
Method ​_get​_files Undocumented
Method ​_get​_post Undocumented
Method ​_get​_scheme Hook for subclasses like WSGIRequest to implement. Return 'http' by default.
Method ​_set​_post Undocumented
Class Variable body​_receive​_timeout Undocumented
Instance Variable ​_post Undocumented
Instance Variable ​_post​_parse​_error Undocumented
Instance Variable ​_read​_started Undocumented
Instance Variable ​_stream Undocumented
Instance Variable META Undocumented
Instance Variable method Undocumented
Instance Variable path Undocumented
Instance Variable path​_info Undocumented
Instance Variable resolver​_match Undocumented
Instance Variable scope Undocumented
Instance Variable script​_name Undocumented
Property COOKIES Undocumented
Property GET Undocumented

Inherited from HttpRequest:

Method __iter__ Undocumented
Method accepts Undocumented
Method build​_absolute​_uri No summary
Method get​_full​_path Undocumented
Method get​_full​_path​_info Undocumented
Method get​_host Return the HTTP host using the environment or request headers.
Method get​_port Return the port number for the request as a string.
Method get​_signed​_cookie Attempt to return a signed cookie. If the signature fails or the cookie has expired, raise an exception, unless the default argument is provided, in which case return that value.
Method is​_secure Undocumented
Method read Undocumented
Method readline Undocumented
Method readlines Undocumented
Instance Variable content​_params Undocumented
Instance Variable content​_type Undocumented
Method __repr__ Undocumented
Method ​_get​_full​_path Undocumented
Method ​_get​_raw​_host Return the HTTP host using the environment or request headers. Skip allowed hosts protection, so may return an insecure host.
Method ​_initialize​_handlers Undocumented
Method ​_load​_post​_and​_files Populate self._post and self._files if the content-type is a form type
Method ​_mark​_post​_parse​_error Undocumented
Method ​_set​_content​_type​_params Set content_type, content_params, and encoding.
Method close Undocumented
Method encoding.setter Set the encoding used for GET/POST accesses. If the GET or POST dictionary has already been created, remove and recreate it on the next access (so that it is decoded correctly).
Method parse​_file​_upload Return a tuple of (POST QueryDict, FILES MultiValueDict).
Method upload​_handlers.setter Undocumented
Instance Variable ​_encoding Undocumented
Instance Variable ​_files Undocumented
Instance Variable ​_upload​_handlers Undocumented
Instance Variable upload​_handlers Undocumented
Property ​_current​_scheme​_host Undocumented
Property accepted​_types Return a list of MediaType instances.
Property body Undocumented
Property encoding Undocumented
Property headers Undocumented
Property scheme Undocumented
FILES =

Undocumented

Value
property(_get_files)
POST =

Undocumented

Value
property(_get_post, _set_post)
def __init__(self, scope, body_file):

Undocumented

def _get_files(self):

Undocumented

def _get_post(self):

Undocumented

def _get_scheme(self):
Hook for subclasses like WSGIRequest to implement. Return 'http' by default.
def _set_post(self, post):

Undocumented

body_receive_timeout: int =

Undocumented

_post =

Undocumented

_post_parse_error: bool =

Undocumented

_read_started: bool =

Undocumented

_stream =

Undocumented

META =

Undocumented

method =

Undocumented

path =

Undocumented

path_info =

Undocumented

resolver_match =
scope =

Undocumented

script_name =

Undocumented

@cached_property
COOKIES =

Undocumented

Undocumented