Can the flask.request
object be used similarly to flask.g
to store per-request data?
I am writing a library that is compatible with both Flask and Django. I plan to store information on the request object in both cases. Can I safely store objects on the request, say request.user
, with the assurance that it will not be shared between different requests?