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)
| 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.""" |
no outgoing calls