def log_request_headers(debug=False):
 h = [('  %s: %s' % (k, v)) for (k, v) in cherrypy.serving.request.header_list]
 cherrypy.log(('\nRequest Headers:\n' + '\n'.join(h)), 'HTTP')

def log_request_headers ( debug = False ) : h = [ ( '  %s: %s' % ( k , v ) ) for ( k , v ) in cherrypy . serving . request . header_list ] cherrypy . log ( ( '\nRequest Headers:\n' + '\n' . join ( h ) ) , 'HTTP' )
write request headers to the cherrypy error log .