In Flask, flask.request.headers is used to get http headers.
Example
app = flask.Flask(__name__) ...