| Conditions | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | from typing import Type |
||
| 25 | def _get_wsgi_app(self): |
||
| 26 | @WSGIRequest.application |
||
| 27 | def application(wsgi_request: WSGIRequest) -> WSGIResponse: |
||
| 28 | request_data = RequestData(wsgi_request) |
||
| 29 | request_func = self._router.dispatch( |
||
| 30 | request_data.path, request_data.method |
||
| 31 | ) |
||
| 32 | request = Request(request_data, request_func) |
||
| 33 | response = Response(request) |
||
| 34 | return response.wsgi() |
||
| 35 | |||
| 36 | return application |
||
| 37 |