python - How to get http headers in flask? -


i newbie python , using python flask , generating rest api service.

i want check authorization header sent angularjs.

but can't find way http header in flask.

any getting http header authorization appreciated.

from flask import request request.headers.get('your-header-name') 

request.headers dictionary, can header dictionary:

request.headers['your-header-name'] 

Comments

Post a Comment

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -