minos.plugins.aiohttp.requests
Classes
Aiohttp Request class. |
|
Aiohttp Response class. |
Exceptions
Aiohttp Response Exception class. |
- class AioHttpRequest[source]
Bases:
HttpRequest
Aiohttp Request class.
- raw
- property raw_request: aiohttp.web_request.Request
Get the raw request within the instance.
- Returns
An
aiohttp.web.Request
instance.
- headers
Get the headers of the request.
- Returns
A dictionary in which keys are
str
instances and values arestr
instances.
- property has_content: bool
Check if the request has content.
- Returns
True
if it has content orFalse
otherwise.
- property has_params: bool
Check if the request has params.
- Returns
True
if it has params orFalse
otherwise.
- property has_url_params: bool
Check if the request has url params.
- Returns
True
if it has url params orFalse
otherwise.
- property has_query_params: bool
Check if the request has query params.
- Returns
True
if it has query params orFalse
otherwise.
- async content(**kwargs)
Get the request content.
- Parameters
kwargs – Additional named arguments.
- Returns
The request content.
- Return type
- class AioHttpResponse[source]
Bases:
HttpResponse
Aiohttp Response class.
- classmethod from_response(response)
Build a new
RestRequest
from another response.- Parameters
- Returns
A
RestResponse
instance.- Return type