Home | History | Annotate | Download | only in webapp2

Lines Matching defs:match

148             match = _charset_re.search(environ.get('CONTENT_TYPE', ''))
149 if match:
150 charset = match.group(1).lower().strip().strip('"').strip()
770 def match(self, request):
807 Match routes must implement :meth:`match`.
845 def match(self, request):
848 .. seealso:: :meth:`BaseRoute.match`.
850 match = self.regex.match(urllib.unquote(request.path))
851 if match:
852 return self, match.groups(), {}
884 A route template to match against the request path. A template
903 If only the name is set, it will match anything except a slash.
939 A sequence of HTTP methods. If set, the route will only match if
943 If set, the route will only match requests with these schemes.
968 def match(self, request):
975 .. seealso:: :meth:`BaseRoute.match`.
977 match = self.regex.match(urllib.unquote(request.path))
978 if not match or self.schemes and request.scheme not in self.schemes:
986 args, kwargs = _get_route_variables(match, self.defaults.copy())
1032 if not regex.match(value):
1106 """A URI router used to match, dispatch and build URIs."""
1149 """Sets the function called to match URIs.
1159 self.match = func.__get__(self, self.__class__)
1205 match = route.match(request)
1206 if match:
1207 return match
1265 route, args, kwargs = rv = self.match(request)
1315 match = default_matcher
1932 for match in _route_re.finditer(template):
1933 part = template[last:match.start()]
1934 name = match.group(1)
1935 expr = match.group(2) or default_sufix
1936 last = match.end()
1953 def _get_route_variables(match, default_kwargs=None):
1954 """Returns (args, kwargs) for a route match."""
1956 kwargs.update(match.groupdict())