How to access the request in a handler? #2322
Replies: 1 comment
-
from litestar import Request
...
@app.get("/hello_world")
async def hello_world(
request: Request,
):
return request.base_url |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danielniccoli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I migrate this from FastAPI to Litestar with the access to the request and all?
Beta Was this translation helpful? Give feedback.
All reactions