How do i get values passed to headers in rasa

I building a app where the rasa will be microservice, that need to communicate to my flask app , I need to keep the token in the headers so that I can pass headers from frontend -> Rasa -> Flask. so that ** , I need access the token passed to the headers of my rasa server** like i need to access the token in some other file.

i trying of importing things like

code :

from rasa.server import Request

request_params = Request.json
with open("requests.txt",'a') as f:
    f.write(str(Request.headers)+'\n' )
    f.write(str(Request.json)+'\n' )        

Output :

<member 'headers' of 'Request' objects>

<member 'headers' of 'Request' objects>

but when i try t access the data , it shows

code : f.write(str(request_params.get(“policy”, None))+’\n’)

output : AttributeError: ‘property’ object has no attribute 'get’