def _parse_response ( self , response ) : response_dict = { } for line in response . splitlines ( ) : key , value = response . split ( "=" , 1 ) response_dict [ key ] = value return response_dict
python parse http response output
Parse http raw respone into python dictionary object . : param str response : http response : returns : response dict : rtype : dict
def _parse_response(self, response):
        """
        Parse http raw respone into python
        dictionary object.
        
        :param str response: http response
        :returns: response dict
        :rtype: dict
        """

        response_dict = {}
        for line in response.splitlines():
            key, value = response.split("=", 1)
            response_dict[key] = value
        return response_dict