How to create object within http request scope

I want to create object to save some information within http request scope,  when client request/response completed, those object should be discard. I thought about extending httprequest entity, but I found it is used for rest call, not request from Mendix page. Is it possible to maintain variables within http request scope?
1 answers

Are non-persistent entities not working for you? They are discarded as soon as all reference to the objects is lost.