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

6 statements  

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

1from fastapi import FastAPI 1abc

2from fastapi.responses import ORJSONResponse 1abc

3 

4app = FastAPI(default_response_class=ORJSONResponse) 1abc

5 

6 

7@app.get("/items/") 1abc

8async def read_items(): 1abc

9 return [{"item_id": "Foo"}] 1def