class documentation

class Request: (source)

View In Hierarchy

Undocumented

Method __getstate__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __setstate__ Undocumented
Async Method aread Read and return the request content.
Method read Read and return the request content.
Instance Variable extensions Undocumented
Instance Variable headers Undocumented
Instance Variable method Undocumented
Instance Variable stream Undocumented
Instance Variable url Undocumented
Property content Undocumented
Method _prepare Undocumented
Instance Variable _content Undocumented
def __getstate__(self): (source)

Undocumented

Returns
typing.Dict[str, typing.Any]Undocumented
def __init__(self, method, url, *, params=None, headers=None, cookies=None, content=None, data=None, files=None, json=None, stream=None, extensions=None): (source)

Undocumented

Parameters
method:typing.Union[str, bytes]Undocumented
url:typing.Union[URL, str]Undocumented
params:typing.Optional[QueryParamTypes]Undocumented
headers:typing.Optional[HeaderTypes]Undocumented
cookies:typing.Optional[CookieTypes]Undocumented
content:typing.Optional[RequestContent]Undocumented
data:typing.Optional[RequestData]Undocumented
files:typing.Optional[RequestFiles]Undocumented
json:typing.Optional[typing.Any]Undocumented
stream:typing.Union[SyncByteStream, AsyncByteStream, None]Undocumented
extensions:typing.Optional[RequestExtensions]Undocumented
def __repr__(self): (source)

Undocumented

Returns
strUndocumented
def __setstate__(self, state): (source)

Undocumented

Parameters
state:typing.Dict[str, typing.Any]Undocumented
async def aread(self): (source)

Read and return the request content.

Returns
bytesUndocumented
def read(self): (source)

Read and return the request content.

Returns
bytesUndocumented
extensions: dict = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

def _prepare(self, default_headers): (source)

Undocumented

Parameters
default_headers:typing.Dict[str, str]Undocumented
_content = (source)

Undocumented