def response_httprepr(response):
 s = (((('HTTP/1.1 ' + to_bytes(str(response.status))) + ' ') + to_bytes(http.RESPONSES.get(response.status, ''))) + '\r\n')
 if response.headers:
  s += (response.headers.to_string() + '\r\n')
 s += '\r\n'
 s += response.body
 return s

def response_httprepr ( response ) : s = ( ( ( ( 'HTTP/1.1 ' + to_bytes ( str ( response . status ) ) ) + ' ' ) + to_bytes ( http . RESPONSES . get ( response . status , '' ) ) ) + '\r\n' ) if response . headers : s += ( response . headers . to_string ( ) + '\r\n' ) s += '\r\n' s += response . body return s
return raw http representation of the given response .