quart.wrappers.base module#

class quart.wrappers.base.BaseRequestWebsocket(method: str, scheme: str, path: str, query_string: bytes, headers: Headers, root_path: str, http_version: str, scope: HTTPScope | WebsocketScope)#

Bases: Request

This class is the basis for Requests and websockets..


A custom json decoding/encoding module, it should have dump, dumps, load, and loads methods




If an exception is raised during the route matching it will be stored here.


Exception | None


The rule that this request has been matched too.


QuartRule | None


The keyword arguments for the view from the route matching.


dict[str, Any] | None

property blueprint: str | None#

Returns the blueprint the matched endpoint belongs to.

This can be None if the request has not been matched or the endpoint is not in a blueprint.

property blueprints: list[str]#

Return the names of the current blueprints. The returned list is ordered from the current blueprint, upwards through parent blueprints.

property endpoint: str | None#

Returns the corresponding endpoint matched for this request.

This can be None if the request has not been matched with a rule.

json_module: json.provider.JSONProvider = <module 'quart.json' from '/home/docs/checkouts/readthedocs.org/user_builds/quart/envs/latest/lib/python3.11/site-packages/quart/json/__init__.py'>#
property max_content_length: int | None#

Read-only view of the MAX_CONTENT_LENGTH config key.

routing_exception: Exception | None = None#
property script_root: str#
property url_root: str#
url_rule: QuartRule | None = None#
view_args: dict[str, Any] | None = None#