minos.networks.requests.memory

Classes

InMemoryRequest

In Memory Request class.

class InMemoryRequest[source]

Bases: Request

In Memory Request class.

__init__(content=sentinel, params=sentinel, user=None, *args, **kwargs)[source]
Parameters
property user: Optional[uuid.UUID]

For testing purposes

property has_content: bool

Check if the request has content.

Returns

True if it has content or False otherwise.

property has_params: bool

Check if the request has params.

Returns

True if it has params or False otherwise.

async content(**kwargs)

Get the request content.

Parameters

kwargs – Additional named arguments.

Returns

The request content.

Return type

Any

async params(**kwargs)

Get the request params.

Parameters

kwargs – Additional named arguments.

Returns

The request params.

Return type

dict[str, Any]