Actix-web 3. from Middleware to RequestHandler data transferring

Does the data transferring mechanism from Middleware (adding any data in Middleware) to RequestHandler (getting this data in RequestHandler by Data-Extractor) in actix_web::App::data() forkflow - is the PerRequest mechanism?
I want this data to be deleted after Response.


This wrong. This way is not PerRequest, but PerThread. The right way in solution.

I think, this way ( Is it possible to register app data in middleware's constructor? · Issue #1444 · actix/actix-web · GitHub ) - is what i am looking for.