def get(self, url=None, paths='', cookies=None, params=None, headers=None): url, cookies, headers = self.setting_parameters(url, paths, cookies, headers) response = rh.get(url=url, cookies=cookies, params=params, headers=headers) return response
def head(self, url=None, paths='', cookies=None, data=None, params=None, headers=None, files=None): url, cookies, headers = self.setting_parameters(url, paths, cookies, headers) response = rh.head(url=url, cookies=cookies, data=data, params=params, headers=headers, files=files) return response
def get_swagger_json(self, url): swagger_response = rh.get(url=url) self.paths_sw = swagger_response.json()['paths'] return swagger_response