<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_response(self, request, response, **kwargs):
 # type: (Request, Response, Any) -> None """Extract data from the body of a REST response object. This will load the entire payload in memory. Will follow Content-Type to parse. We assume everything is UTF8 (BOM acceptable). :param raw_data: Data to be processed. :param content_type: How to parse if raw_data is a string/bytes. :raises JSONDecodeError: If JSON is requested and parsing is impossible. :raises UnicodeDecodeError: If bytes is not UTF8 :raises xml.etree.ElementTree.ParseError: If bytes is not valid XML """

        # If response was asked as stream, do NOT read anything and quit now
        if kwargs.get("stream", True):
            return

        http_response = response.http_response

        response.context[self.CONTEXT_NAME] = self.deserialize_from_http_generics(
            http_response.text(),
            http_response.headers
        )