예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def get_swagger_json(self, url):
     swagger_response = rh.get(url=url)
     self.paths_sw = swagger_response.json()['paths']
     return swagger_response