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

5 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-08-08 03:53 +0000

1from fastapi import FastAPI, Request 1abcde

2 

3app = FastAPI() 1abcde

4 

5 

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

7def read_main(request: Request): 1abcde

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