toValidation method
Response
toValidation(
- Response response
验证 response 是否有效
response
http response
Implementation
Response toValidation(Response response) {
if (_validateStatus(response.statusCode)) {
return response;
}
throw COSException.fromResponse(response);
}