def __init__(self, server_http_url = '', *args, **kwargs):
self.server_http_url = server_http_url
self.session = requests.session()
self.session.headers = {"Accept": "application/json",
"Content-type": "application/json"}
self.session.verify = False
# Increase the number of pool connections so we can test large numbers
# of connections to the api.
adapter = adapters.HTTPAdapter(pool_connections=2000, pool_maxsize=2000)
self.session.mount('http://', adapter)
http_requests.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录