# quart.wrappers.base module

class quart.wrappers.base.BaseRequestWebsocket(method, scheme, path, query_string, headers, root_path, http_version, scope)

  Bases: `Request`

  This class is the basis for Requests and websockets..

  Parameters:

    - method (str)

    - scheme (str)

    - path (str)

    - query_string (bytes)

    - headers (Headers)

    - root_path (str)

    - http_version (str)

    - scope (WWWScope)

  json_module

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

    Type:

      json.provider.JSONProvider

  routing_exception

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

    Type:

      Exception | None

  url_rule

    The rule that this request has been matched too.

    Type:

      QuartRule | None

  view_args

    The keyword arguments for the view from the route matching.

    Type:

      dict[str, Any] | None

  json_module: json.provider.JSONProvider = <module 'quart.json' from '/build/quart-TuyuY7/quart-0.20.0/.pybuild/cpython3_3.14_quart/build/quart/json/__init__.py'>
  routing_exception: Exception | None = None
  url_rule: QuartRule | None = None
  view_args: dict[str, Any] | None = None
  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.

  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 script_root: str
  property url_root: str