完成http相关接口

This commit is contained in:
xiongziliang 2018-11-13 16:34:45 +08:00
parent 949640d493
commit 6d8bdefa31

View File

@ -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回复头