mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-20 08:55:24 -04:00
📝 Update docs for ORJSONResponse with details about improving performance (#2615)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
1 parent
278adc012a
commit
a71077c530
2 files changed
+7
-1
No files matched your search
@@ -6,4 +6,4 @@ app = FastAPI()
|
||||
|
||||
@app.get("/items/", response_class=ORJSONResponse)
|
||||
async def read_items():
|
||||
return [{"item_id": "Foo"}]
|
||||
return ORJSONResponse([{"item_id": "Foo"}])
|
||||
Reference in new issue
Block a user