'Return the most appropriate Response class by looking at the HTTP
headers'

def from_headers(self, headers):

    cls = Response
    if ('Content-Type' in headers):
        cls = self.from_content_type(content_type=headers['Content-type'], content_encoding=headers.get('Content-Encoding'))
    if ((cls is Response) and ('Content-Disposition' in headers)):
        cls = self.from_content_disposition(headers['Content-Disposition'])
    return cls
