minos.networks.requests.memory module

class minos.networks.requests.memory.InMemoryRequest(content=<object object>, params=<object object>, user=None, *args, **kwargs)[source]

Bases: minos.networks.requests.abc.Request

In Memory Request class.

__init__(content=<object object>, params=<object object>, user=None, *args, **kwargs)[source]
async content(**kwargs)

Get the request content.

Parameters

kwargs – Additional named arguments.

Return type

typing.Any

Returns

The request content.

property has_content: bool

Check if the request has content.

Return type

bool

Returns

True if it has content or False otherwise.

property has_params: bool

Check if the request has params.

Return type

bool

Returns

True if it has params or False otherwise.

async params(**kwargs)

Get the request params.

Parameters

kwargs – Additional named arguments.

Return type

dict[str, typing.Any]

Returns

The request params.

property user: Optional[uuid.UUID]

For testing purposes

Return type

typing.Optional[uuid.UUID]