HTTP: 确保http请求结束后不再触发超时事件

This commit is contained in:
ziyue
2021-12-24 13:10:52 +08:00
parent f89abfaf67
commit 0bf75529a2
3 changed files with 14 additions and 2 deletions

View File

@@ -106,6 +106,11 @@ public:
*/
const string &getUrl() const;
/**
* 判断是否正在等待响应
*/
bool waitResponse() const;
protected:
/**
* 收到http回复头
@@ -173,6 +178,7 @@ protected:
bool _is_https;
private:
bool _complete = false;
string _url;
HttpHeader _header;
HttpBody::Ptr _body;