minos.networks.requests.wrapped

Classes

WrappedRequest

Wrapped Request class.

class WrappedRequest[source]

Bases: Request

Wrapped Request class.

__init__(base, content_action=None, params_action=None, *args, **kwargs)[source]
Parameters
property user: Optional[uuid.UUID]

Returns the UUID of the user making the Request.

property has_content: bool

Check if the request has params.

Returns

True if it has params 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]