Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def delete(self, url):
headers = self._headers_default_receive_json()
return self.request(url, HTTPMethod.DELETE, headers)
def abort_execution(self, stream_id, execution_id):
url = self._base(stream_id) + '/executions/' + str(execution_id) + '/abort'
return self._update(url, HTTPMethod.PUT, requests.codes.ok, {}, self.executionDesc)
"""
def post(self, url, body, params):
headers = self._headers_send_json()
return self.request(url, HTTPMethod.POST, headers, params,
self._obj_to_json(body))
def get(self, url, params):
headers = self._headers_default_receive_json()
return self.request(url, HTTPMethod.GET, headers, params)