minos.networks.brokers.dispatchers.requests
Classes
Handler Request class. |
|
Handler Response class. |
Exceptions
Handler Response Exception class. |
- class BrokerRequest[source]
Bases:
Request
Handler Request class.
- __init__(raw, *args, **kwargs)[source]
- Parameters
raw (BrokerMessage) –
- raw
- user
Returns the UUID of the user making the Request.
- property headers: dict[str, str]
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.
- async content(**kwargs)
Get the request content.
- Parameters
kwargs – Additional named arguments.
- Returns
The request content.
- Return type
- class BrokerResponse[source]
Bases:
Response
Handler Response class.
- async content(**kwargs)
Response content.
- Parameters
kwargs – Additional named arguments.
- Returns
A list of items.
- Return type