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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -