MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / match

Method match

21-async/mojifinder/bottle.py:763–767  ·  view source on GitHub ↗

Search for a matching route and return a (:class:`Route` , urlargs) tuple. The second value is a dictionary with parameters extracted from the URL. Raise :exc:`HTTPError` (404/405) on a non-match.

(self, environ)

Source from the content-addressed store, hash-verified

761 run(self, **kwargs)
762
763 def match(self, environ):
764 """ Search for a matching route and return a (:class:`Route` , urlargs)
765 tuple. The second value is a dictionary with parameters extracted
766 from the URL. Raise :exc:`HTTPError` (404/405) on a non-match."""
767 return self.router.match(environ)
768
769 def get_url(self, routename, **kargs):
770 """ Return a string that matches a named route """

Callers

nothing calls this directly

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected