def response_headers(headers=None, debug=False):
 if debug:
  cherrypy.log(('Setting response headers: %s' % repr(headers)), 'TOOLS.RESPONSE_HEADERS')
 for (name, value) in (headers or []):
  cherrypy.serving.response.headers[name] = value

def response_headers ( headers = None , debug = False ) : if debug : cherrypy . log ( ( 'Setting response headers: %s' % repr ( headers ) ) , 'TOOLS.RESPONSE_HEADERS' ) for ( name , value ) in ( headers or [ ] ) : cherrypy . serving . response . headers [ name ] = value
set headers on the response .