MCPcopy
hub / github.com/aio-libs/aiohttp / match

Method match

aiohttp/web_urldispatcher.py:417–422  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

415 self._formatter = formatter
416
417 def match(self, path):
418 match = self._pattern.match(path)
419 if match is None:
420 return None
421 else:
422 return match.groupdict()
423
424 def url(self, *, parts, query=None):
425 url = self._formatter.format_map(parts)

Calls 1

matchMethod · 0.45