完成http相关接口
This commit is contained in:
parent
949640d493
commit
6d8bdefa31
|
|
@ -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回复头
|
||||
|
|
|
|||
Loading…
Reference in New Issue