parameters: (http_response)
return_statement: return output
docstring: Converts to a string for printing debug messages.
    
    Does not read the body since that may consume the content.
docstring_summary: Converts to a string for printing debug messages.
    
    Does not read the body since that may consume the content.
docstring_tokens: Converts to a string for printing debug messages . Does not read the body since that may consume the content .
function: def _dump_response(http_response):
    """Converts to a string for printing debug messages.
    
    Does not read the body since that may consume the content.
    """
    output = 'HttpResponse\n  status: %s\n  reason: %s\n  headers:' % (
        http_response.status, http_response.reason)
    headers = http_response.getheaders()
    if isinstance(headers, dict):
      for header, value in headers.iteritems():
        output += '    %s: %s\n' % (header, value)
    else:
      for pair in headers:
        output += '    %s: %s\n' % (pair[0], pair[1])
    return output
function_tokens: def _dump_response ( http_response ) : output = 'HttpResponse\n  status: %s\n  reason: %s\n  headers:' % ( http_response . status , http_response . reason ) headers = http_response . getheaders ( ) if isinstance ( headers , dict ) : for header , value in headers . iteritems ( ) : output += '    %s: %s\n' % ( header , value ) else : for pair in headers : output += '    %s: %s\n' % ( pair [ 0 ] , pair [ 1 ] ) return output