示例#1
0
 def get(self, url, **kwargs):
     response = super().get(url, **kwargs)
     handle_if_error_response(response)
     return response
示例#2
0
 def options(self, url, **kwargs):
     response = super().options(url, **kwargs)
     handle_if_error_response(response)
     return response
示例#3
0
 def head(self, url, **kwargs):
     response = super().head(url, **kwargs)
     handle_if_error_response(response)
     return response
示例#4
0
 def delete(self, url, **kwargs):
     response = super().delete(url, **kwargs)
     handle_if_error_response(response)
     return response
示例#5
0
 def patch(self, url, data=None, **kwargs):
     response = super().patch(url, data, **kwargs)
     handle_if_error_response(response)
     return response
示例#6
0
 def post(self, url, data=None, json=None, **kwargs):
     response = super().post(url, data, json, **kwargs)
     handle_if_error_response(response)
     return response