☰
Debian Codegraph
@
2.24.0-1
/
/
docs
/
examples
/
onboarding
/
flask
/
request_object.py
☽
☼
docs/examples/onboarding/flask/request_object.py
code
plain
raw
Expat
Alc <
[email protected]
>,; Cody Fincher <
[email protected]
>,; Jacob Coffee <
[email protected]
>,; Janek Nouvertné <
[email protected]
>,; Litestar Developers <
[email protected]
>,; Peter Schutt <
[email protected]
>,; Visakh Unnikrishnan <
[email protected]
>,
debian/copyright
1
from litestar import Litestar, Request, get
2
3
4
@get("/", sync_to_thread=False)
5
def index(request: Request) -> dict[str, str]:
6
return {"method": request.method}
7
8
9
app = Litestar(route_handlers=[index])