quart.routing module#

class quart.routing.QuartMap(rules: Optional[Iterable[RuleFactory]] = None, default_subdomain: str = '', charset: str = 'utf-8', strict_slashes: bool = True, merge_slashes: bool = True, redirect_defaults: bool = True, converters: Optional[Mapping[str, Type[BaseConverter]]] = None, sort_parameters: bool = False, sort_key: Optional[Callable[[Any], Any]] = None, encoding_errors: str = 'replace', host_matching: bool = False)#

Bases: Map

bind_to_request(request: BaseRequestWebsocket, subdomain: Optional[str], server_name: Optional[str]) MapAdapter#
class quart.routing.QuartRule(string: str, defaults: Optional[dict] = None, subdomain: Optional[str] = None, methods: Optional[Iterable[str]] = None, endpoint: Optional[str] = None, strict_slashes: Optional[bool] = None, merge_slashes: Optional[bool] = None, host: Optional[str] = None, websocket: bool = False, provide_automatic_options: bool = False)#

Bases: Rule