(self, extractors)
return extracted_variables_mapping
extract value from requests.Response and store in OrderedDict.

        Args:
            extractors (list):

                [
                    {"resp_status_code": "status_code"},
                    {"resp_headers_content_type": "headers.content-type"},
                    {"resp_content": "content"},
                    {"resp_content_person_first_name": "content.person.name.first_name"}
                ]

        Returns:
            OrderDict: variable binds ordered dict
extract value from requests.Response and store in OrderedDict.
extract value from requests . Response and store in OrderedDict .
def extract_response(self, extractors):
        """ extract value from requests.Response and store in OrderedDict.

        Args:
            extractors (list):

                [
                    {"resp_status_code": "status_code"},
                    {"resp_headers_content_type": "headers.content-type"},
                    {"resp_content": "content"},
                    {"resp_content_person_first_name": "content.person.name.first_name"}
                ]

        Returns:
            OrderDict: variable binds ordered dict

        """
        if not extractors:
            return {}

        logger.log_debug("start to extract from response object.")
        extracted_variables_mapping = OrderedDict()
        extract_binds_order_dict = utils.ensure_mapping_format(extractors)

        for key, field in extract_binds_order_dict.items():
            extracted_variables_mapping[key] = self.extract_field(field)

        return extracted_variables_mapping
def extract_response ( self , extractors ) : if not extractors : return { } logger . log_debug ( "start to extract from response object." ) extracted_variables_mapping = OrderedDict ( ) extract_binds_order_dict = utils . ensure_mapping_format ( extractors ) for key , field in extract_binds_order_dict . items ( ) : extracted_variables_mapping [ key ] = self . extract_field ( field ) return extracted_variables_mapping