Http client 302错误码支持

This commit is contained in:
xiongziliang
2019-07-01 18:35:26 +08:00
parent 339fdf0de4
commit ed78f152ee
2 changed files with 7 additions and 0 deletions

View File

@@ -254,6 +254,10 @@ public:
const Parser& response() const{
return _parser;
}
const string &getUrl() const{
return _url;
}
protected:
/**
* 收到http回复头
@@ -307,6 +311,7 @@ private:
protected:
bool _isHttps;
private:
string _url;
HttpHeader _header;
HttpBody::Ptr _body;
string _method;