Is it possible to get some data from request and return it to some function? As example I want to get a token value from request and put it to some function, how to do that?