We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
某些情况下调用下面函数:
// sync int send(HttpRequest* req, HttpResponse* resp) { return http_client_send(_client, req, resp); }
返回值不是0(比如1100这种正整数),但是resp.status_code的值是200,这种情况下是否依然可以视为调用成功??
The text was updated successfully, but these errors were encountered:
不可以,需要先判断返回值,HttpResponse的status_code默认值就是200
Sorry, something went wrong.
感谢
No branches or pull requests
某些情况下调用下面函数:
// sync
int send(HttpRequest* req, HttpResponse* resp) {
return http_client_send(_client, req, resp);
}
返回值不是0(比如1100这种正整数),但是resp.status_code的值是200,这种情况下是否依然可以视为调用成功??
The text was updated successfully, but these errors were encountered: