| 33 | |
| 34 | |
| 35 | class FileApp: |
| 36 | def __init__(self, path: Path) -> None: |
| 37 | self.path = path |
| 38 | |
| 39 | async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 40 | await FileResponse(self.path, media_type="application/octet-stream")(scope, receive, send) |
| 41 | |
| 42 | |
| 43 | def http_scope(case: BenchmarkCase) -> Scope: |
no outgoing calls