MCPcopy Create free account
hub / github.com/EasyIME/PIME / match

Method match

python/python3/tornado/routing.py:493–503  ·  view source on GitHub ↗

Matches current instance against the request. :arg httputil.HTTPServerRequest request: current HTTP request :returns: a dict of parameters to be passed to the target handler (for example, ``handler_kwargs``, ``path_args``, ``path_kwargs`` can be passed for pr

(self, request: httputil.HTTPServerRequest)

Source from the content-addressed store, hash-verified

491 """Represents a matcher for request features."""
492
493 def match(self, request: httputil.HTTPServerRequest) -> Optional[Dict[str, Any]]:
494 """Matches current instance against the request.
495
496 :arg httputil.HTTPServerRequest request: current HTTP request
497 :returns: a dict of parameters to be passed to the target handler
498 (for example, ``handler_kwargs``, ``path_args``, ``path_kwargs``
499 can be passed for proper `~.web.RequestHandler` instantiation).
500 An empty dict is a valid (and common) return value to indicate a match
501 when the argument-passing features are not used.
502 ``None`` must be returned to indicate that there is no match."""
503 raise NotImplementedError()
504
505 def reverse(self, *args: Any) -> Optional[str]:
506 """Reconstructs full url from matcher instance and additional arguments."""

Callers 15

getWildcardCharDefsMethod · 0.45
parse_archFunction · 0.45
vFunction · 0.45
config.jsFile · 0.45
HFunction · 0.45
TbFunction · 0.45
load_translationsFunction · 0.45
filterMethod · 0.45
_parse_timedeltaMethod · 0.45
_decode_xsrf_tokenMethod · 0.45
_get_versionFunction · 0.45

Calls

no outgoing calls

Tested by 8

filterMethod · 0.36
get_outputMethod · 0.36
process_responseMethod · 0.36
test_xsrf_httponlyMethod · 0.36
test_host_headerMethod · 0.36