☰
Debian Codegraph
@
0.141.1-2
0.141.1-1
0.135.3-1
/
/
docs_src
/
header_params
/
tutorial002_py310.py
☽
☼
docs_src/header_params/tutorial002_py310.py
code
plain
raw
Expat
(c) 2018 Sebastián RamÃrez
debian/copyright
1
from fastapi import FastAPI, Header
2
3
app = FastAPI()
4
5
6
@app.get("/items/")
7
async def read_items(
8
strange_header: str | None = Header(default=None, convert_underscores=False),
9
):
10
return {"strange_header": strange_header}