quart.wrappers.base module
- class quart.wrappers.base.BaseRequestWebsocket(method: str, scheme: str, path: str, query_string: bytes, headers: werkzeug.datastructures.Headers, root_path: str, http_version: str, scope: Union[hypercorn.typing.HTTPScope, hypercorn.typing.WebsocketScope])
Bases:
werkzeug.sansio.request.Request
This class is the basis for Requests and websockets..
- json_module
A custom json decoding/encoding module, it should have dump, dumps, load, and loads methods
- routing_exception
If an exception is raised during the route matching it will be stored here.
- Type
Optional[Exception]
- url_rule
The rule that this request has been matched too.
- Type
Optional[‘QuartRule’]
- view_args
The keyword arguments for the view from the route matching.
- Type
Optional[Dict[str, Any]]
- property blueprint: Optional[str]
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: Optional[str]
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 '/build/quart-HrGHdM/quart-0.18.3/.pybuild/cpython3_3.11_quart/build/quart/json/__init__.py'>
- property max_content_length: Optional[int]
Read-only view of the
MAX_CONTENT_LENGTH
config key.
- routing_exception: Optional[Exception] = None
- property script_root: str
- property url_root: str
- url_rule: Optional['QuartRule'] = None
- view_args: Optional[Dict[str, Any]] = None