docs: def headers(params={}):
      """This decorator adds the headers passed in to the response
      http://flask.pocoo.org/snippets/100/
      """
      def decorator(f):
  
          if inspect.isclass(f):
              h = headers(params)
              apply_function_to_members(f, h)
              return f
  
          @functools.wraps(f)
          def decorated_function(*args, **kwargs):
              resp = make_response(f(*args, **kwargs))
              h = resp.headers
              for header, value in params.items():
                  h[header] = value
              return resp
          return decorated_function
      return decorator