Method: flask.ctx.RequestContext.match_request
Calls: 533, Exceptions: 83, Paths: 2Back
Path 1: 450 calls (0.84)
1def match_request(self) -> None:
2 """Can be overridden by a subclass to hook into the matching
3 of the request.
4 """
5 try:
6 result = self.url_adapter.match(return_rule=True) # type: ignore
7 self.request.url_rule, self.request.view_args = result # type: ignore
8 except HTTPException as e:
9 self.request.routing_exception = e
Path 2: 83 calls (0.16)
NotFound (65) MethodNotAllowed (15) RequestRedirect (3)
1def match_request(self) -> None:
2 """Can be overridden by a subclass to hook into the matching
3 of the request.
4 """
5 try:
6 result = self.url_adapter.match(return_rule=True) # type: ignore
7 self.request.url_rule, self.request.view_args = result # type: ignore
8 except HTTPException as e:
9 self.request.routing_exception = e