quart.routing module#
- class quart.routing.QuartMap(rules: t.Iterable[RuleFactory] | None = None, default_subdomain: str = '', strict_slashes: bool = True, merge_slashes: bool = True, redirect_defaults: bool = True, converters: t.Mapping[str, type[BaseConverter]] | None = None, sort_parameters: bool = False, sort_key: t.Callable[[t.Any], t.Any] | None = None, host_matching: bool = False)#
Bases:
Map
- bind_to_request(request: BaseRequestWebsocket, subdomain: str | None, server_name: str | None) MapAdapter #
- class quart.routing.QuartRule(string: str, defaults: dict | None = None, subdomain: str | None = None, methods: Iterable[str] | None = None, endpoint: str | None = None, strict_slashes: bool | None = None, merge_slashes: bool | None = None, host: str | None = None, websocket: bool = False, provide_automatic_options: bool = False)#
Bases:
Rule