From 6d8bdefa316524ace1edd16916bf628e52390b2e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 13 Nov 2018 16:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90http=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpClient.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Http/HttpClient.h b/src/Http/HttpClient.h index e60c9df4..9df8730e 100644 --- a/src/Http/HttpClient.h +++ b/src/Http/HttpClient.h @@ -233,12 +233,15 @@ public: void setBody(const HttpBody::Ptr &body){ _body = body; } - const string &responseStatus(){ + const string &responseStatus() const{ return _parser.Url(); } - const HttpHeader &responseHeader(){ + const HttpHeader &responseHeader() const{ return _parser.getValues(); } + const Parser& response() const{ + return _parser; + } protected: /** * 收到http回复头