mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-02 00:12:33 +08:00
完成http相关接口
This commit is contained in:
parent
949640d493
commit
6d8bdefa31
@ -233,12 +233,15 @@ public:
|
|||||||
void setBody(const HttpBody::Ptr &body){
|
void setBody(const HttpBody::Ptr &body){
|
||||||
_body = body;
|
_body = body;
|
||||||
}
|
}
|
||||||
const string &responseStatus(){
|
const string &responseStatus() const{
|
||||||
return _parser.Url();
|
return _parser.Url();
|
||||||
}
|
}
|
||||||
const HttpHeader &responseHeader(){
|
const HttpHeader &responseHeader() const{
|
||||||
return _parser.getValues();
|
return _parser.getValues();
|
||||||
}
|
}
|
||||||
|
const Parser& response() const{
|
||||||
|
return _parser;
|
||||||
|
}
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* 收到http回复头
|
* 收到http回复头
|
||||||
|
Loading…
Reference in New Issue
Block a user