#NEWLINE# def from_headers( self , headers ) : #NEWLINE# #INDENT# 'Return the most appropriate Response class by looking at the HTTP\n        headers' #NEWLINE# cls = Response #NEWLINE# if ( b'Content-Type' in headers ) : #NEWLINE# #INDENT# cls = self . from_content_type ( content_type = headers [ b'Content-type' ] , content_encoding = headers . get ( b'Content-Encoding' ) ) #NEWLINE# #UNINDENT# if ( ( cls is Response ) and ( b'Content-Disposition' in headers ) ) : #NEWLINE# #INDENT# cls = self . from_content_disposition ( headers [ b'Content-Disposition' ] ) #NEWLINE# #UNINDENT# return cls