@classmethod
def deserialize_from_http_generics(cls, response, encoding=None):
    """Deserialize from HTTP response.

        Headers will tested for "content-type"

        :param response: The HTTP response
        :param encoding: The encoding to use if known for this service (will disable auto-detection)
        :raises ~azure.core.exceptions.DecodeError: If deserialization fails
        :returns: A dict or XML tree, depending of the mime-type
        """
    if response.content_type:
        mime_type = response.content_type.split(';')[0].strip().lower()
    else:
        mime_type = 'application/json'
    return cls.deserialize_from_text(response.text(encoding), mime_type,
        response=response)
