Capture user request with request.state #2197
Answered
by
dineshbvadhia
dineshbvadhia
asked this question in
Q&A
-
I'm using FastAPI and want to store the client request during a user session. I know this can be achieved with an authentication framework. Is it possible to use request.state (https://www.starlette.io/requests/#other-state) to capture the users request? If so, is there an example? |
Beta Was this translation helpful? Give feedback.
Answered by
dineshbvadhia
Oct 4, 2023
Replies: 1 comment 3 replies
-
What do you mean by "user" and "client" requests? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved with lifespan-state :)