mirror of
https://github.com/fastapi/fastapi.git
synced 2026-11-25 19:16:14 +08:00
🚚 Re-order tutorial Python fiels
This commit is contained in:
@@ -4,5 +4,5 @@ app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/")
|
||||
async def read_items(*, strange_header: str = Header(None, convert_underscores=False)):
|
||||
return {"strange_header": strange_header}
|
||||
async def read_items(*, accept_encoding: str = Header(None)):
|
||||
return {"Accept-Encoding": accept_encoding}
|
||||
|
||||
Reference in New Issue
Block a user