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']
Best Site, The Course were so simple
ReplyDeleteFull Stack Training in Chennai | Certification | Online Training Course| Full Stack Training in Bangalore | Certification | Online Training Course | Full Stack Training in Hyderabad | Certification | Online Training Course | Full Stack Developer Training in Chennai | Mean Stack Developer Training in Chennai | Full Stack Training | Certification | Full Stack Online Training Course
Great Article.
ReplyDeletePython Classes in Nagpur