| 1 |
from typing import Annotated |
| 2 |
|
| 3 |
from fastapi import FastAPI, Header |
| 4 |
|
| 5 |
app = FastAPI() |
| 6 |
|
| 7 |
|
| 8 |
@app.get("/items/") |
| 9 |
async def read_items( |
| 10 |
strange_header: Annotated[str | None, Header(convert_underscores=False)] = None, |
| 11 |
): |
| 12 |
return {"strange_header": strange_header} |