(self, request: Request)
| 16 | |
| 17 | class FileDownloadHandler(BaseDownloadHandler): |
| 18 | async def download_request(self, request: Request) -> Response: |
| 19 | filepath = file_uri_to_path(request.url) |
| 20 | body = await run_in_thread(Path(filepath).read_bytes) |
| 21 | respcls = responsetypes.from_args(filename=filepath, body=body) |
| 22 | return respcls(url=request.url, body=body) |
nothing calls this directly
no test coverage detected