Coverage for docs_src / custom_response / tutorial009_py310.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.3, created at 2026-02-12 18:15 +0000

1from fastapi import FastAPI 1abcd

2from fastapi.responses import FileResponse 1abcd

3 

4some_file_path = "large-video-file.mp4" 1abcd

5app = FastAPI() 1abcd

6 

7 

8@app.get("/") 1abcd

9async def main(): 1abcd

10 return FileResponse(some_file_path) 1efg