def __init__(self, http_config):
assert isinstance(http_config, HTTPConfig), "not an instance of HTTPConfig"
self.http_config = http_config
super(CustomHTTPAdapter, self).__init__(max_retries=http_config.max_retries)
self._logger = logging.getLogger(__name__)
if not http_config.verify_ssl_cert:
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# pylint: disable=R0913
评论列表
文章目录