bugfix
This commit is contained in:
parent
8050d4bb88
commit
42977b1e9e
@ -107,24 +107,25 @@ class Http_Client:
|
|||||||
files={},
|
files={},
|
||||||
stream=False):
|
stream=False):
|
||||||
return self.webcall(url, method=method,
|
return self.webcall(url, method=method,
|
||||||
params=params, files=files, headers=headers)
|
params=params, files=files,
|
||||||
|
headers=headers, stream=stream)
|
||||||
|
|
||||||
def get(self, url, params={}, headers={}):
|
def get(self, url, params={}, headers={}, stream=False):
|
||||||
return self.__call__(url,method='GET',params=params,
|
return self.__call__(url,method='GET',params=params,
|
||||||
headers=headers)
|
headers=headers, stream=stream)
|
||||||
def post(self, url, params={}, headers={}, files={}):
|
def post(self, url, params={}, headers={}, files={}, stream=False):
|
||||||
return self.__call__(url,method='POST',params=params, files=files,
|
return self.__call__(url,method='POST',params=params, files=files,
|
||||||
headers=headers)
|
headers=headers, stream=stream)
|
||||||
|
|
||||||
def put(self, url, params={}, headers={}):
|
def put(self, url, params={}, headers={}, stream=False):
|
||||||
return self.__call__(url,method='PUT',params=params,
|
return self.__call__(url,method='PUT',params=params,
|
||||||
headers=headers)
|
headers=headers, stream=stream)
|
||||||
|
|
||||||
def delete(self, url, params={}, headers={}):
|
def delete(self, url, params={}, headers={}, stream=False):
|
||||||
return self.__call__(url,method='DELETE',params=params,
|
return self.__call__(url,method='DELETE',params=params,
|
||||||
headers=headers)
|
headers=headers, stream=stream)
|
||||||
|
|
||||||
def option(self, url, params={}, headers={}):
|
def option(self, url, params={}, headers={}, stream=False):
|
||||||
return self.__call__(url,method='OPTION',params=params,
|
return self.__call__(url,method='OPTION',params=params,
|
||||||
headers=headers)
|
headers=headers, stream=stream)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user