def force_header(header, value):
 def _decorator(func):
  '\n        Decorates the given function.\n        '
  @wraps(func)
  def _inner(*args, **kwargs):
   '\n            Alters the response.\n            '
   response = func(*args, **kwargs)
   force_header_for_response(response, header, value)
   return response
  return _inner
 return _decorator

def force_header ( header , value ) : def _decorator ( func ) : @ wraps ( func ) def _inner ( * args , ** kwargs ) : response = func ( * args , ** kwargs ) force_header_for_response ( response , header , value ) return response return _inner return _decorator
decorator that forces a header in the response to have a specific value .