Files
fastapi/docs_src/header_params/tutorial002.py
Pankaj Giri 7e2518350a 📝 Remove *, from functions where it's not needed #1234 (#1239)
* Fix for - [FEATURE] Remove *, where it's not needed #1234

* 🔥 Remove unnecessary arg *,

* 🎨 Update docs format highlight lines

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-06-12 21:41:44 +02:00

9 lines
206 B
Python

from fastapi import FastAPI, Header
app = FastAPI()
@app.get("/items/")
async def read_items(strange_header: str = Header(None, convert_underscores=False)):
return {"strange_header": strange_header}