Coverage for docs_src/behind_a_proxy/tutorial001.py: 100%

5 statements  

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

1from fastapi import FastAPI, Request 1abcdef

2 

3app = FastAPI() 1abcdef

4 

5 

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

7def read_main(request: Request): 1abcdef

8 return {"message": "Hello World", "root_path": request.scope.get("root_path")} 1ghijkl