Sync fastapi docs from 50fa3f7c on 2026-01-11
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from typing import Union
|
||||
|
||||
from fastapi import FastAPI, Header
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/items/")
|
||||
async def read_items(
|
||||
strange_header: Union[str, None] = Header(default=None, convert_underscores=False),
|
||||
):
|
||||
return {"strange_header": strange_header}
|
||||
Reference in New Issue
Block a user