MCPcopy
hub / github.com/pallets/werkzeug / match

Method match

src/werkzeug/routing/map.py:473–480  ·  src/werkzeug/routing/map.py::MapAdapter.match
(
        self,
        path_info: str | None = None,
        method: str | None = None,
        return_rule: t.Literal[False] = False,
        query_args: t.Mapping[str, t.Any] | str | None = None,
        websocket: bool | None = None,
    )

Source from the content-addressed store, hash-verified

471
472 @t.overload
473 def match(
474 self,
475 path_info: str | None = None,
476 method: str | None = None,
477 return_rule: t.Literal[False] = False,
478 query_args: t.Mapping[str, t.Any] | str | None = None,
479 websocket: bool | None = None,
480 ) -> tuple[t.Any, t.Mapping[str, t.Any]]: ...
481
482 @t.overload
483 def match(

Callers 15

dispatchMethod · 0.95
testMethod · 0.95
allowed_methodsMethod · 0.95
parse_dict_headerFunction · 0.45
parse_options_headerFunction · 0.45
parse_etagsFunction · 0.45
_parse_dataMethod · 0.45
_parse_ruleMethod · 0.45
test_basic_routingFunction · 0.45
test_merge_slashes_matchFunction · 0.45

Calls 9

make_redirect_urlMethod · 0.95
get_default_redirectMethod · 0.95
RequestRedirectClass · 0.85
MethodNotAllowedClass · 0.85
WebsocketMismatchClass · 0.85
NotFoundClass · 0.85
listFunction · 0.50
updateMethod · 0.45

Tested by 15

test_basic_routingFunction · 0.36
test_merge_slashes_matchFunction · 0.36
test_environ_defaultsFunction · 0.36
test_defaultsFunction · 0.36
test_negativeFunction · 0.36
test_greedyFunction · 0.36
test_pathFunction · 0.36