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

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-05-05 00:03 +0000

1from fastapi import FastAPI 1abcdef

2from fastapi.responses import FileResponse 1abcdef

3 

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

5app = FastAPI() 1abcdef

6 

7 

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

9async def main(): 1abcdef

10 return FileResponse(some_file_path) 1ghijkl