mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 18:46:40 +00:00
10 lines
219 B
Python
10 lines
219 B
Python
from fastapi import FastAPI, Header
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items(
|
|
strange_header: str | None = Header(None, convert_underscores=False)
|
|
):
|
|
return {"strange_header": strange_header}
|