(path)
| 396 | if filters: |
| 397 | |
| 398 | def getargs(path): |
| 399 | url_args = re_match(path).groupdict() |
| 400 | for name, wildcard_filter in filters: |
| 401 | try: |
| 402 | url_args[name] = wildcard_filter(url_args[name]) |
| 403 | except ValueError: |
| 404 | raise HTTPError(400, 'Path has wrong format.') |
| 405 | return url_args |
| 406 | elif re_pattern.groupindex: |
| 407 | |
| 408 | def getargs(path): |