@app.after_request
def apply_caching(response):
 for (k, v) in config.get(u'HTTP_HEADERS').items():
  response.headers[k] = v
 return response

@ app . after_request def apply_caching ( response ) : for ( k , v ) in config . get ( u'HTTP_HEADERS' ) . items ( ) : response . headers [ k ] = v return response
applies the configurations http headers to all responses .