mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-23 22:29:34 -05:00
13 lines
261 B
Python
13 lines
261 B
Python
from typing import Annotated
|
|
|
|
from fastapi import FastAPI, Header
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/items/")
|
|
async def read_items(
|
|
strange_header: Annotated[str | None, Header(convert_underscores=False)] = None,
|
|
):
|
|
return {"strange_header": strange_header}
|