def __init__(self, resp):
super(RESTResponse, self).__init__()
# arg: A urllib3.HTTPResponse object
self.urllib3_response = resp
self.status = resp.status
self.version = resp.version
self.reason = resp.reason
self.strict = resp.strict
self.is_closed = False
评论列表
文章目录