mirror of
https://github.com/fastapi/fastapi.git
synced 2026-01-01 02:29:46 -05:00
9 lines
209 B
Python
9 lines
209 B
Python
from fastapi import FastAPI, Header
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items(*, strange_header: str = Header(None, convert_underscores=False)):
|
|
return {"strange_header": strange_header}
|