mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-28 21:14:03 +08:00
新增支持http文件上传功能
This commit is contained in:
@@ -130,12 +130,17 @@ const string &Parser::content() const {
|
||||
return _content;
|
||||
}
|
||||
|
||||
const HttpBody::Ptr &Parser::body() const {
|
||||
return _body;
|
||||
}
|
||||
|
||||
void Parser::clear() {
|
||||
_method.clear();
|
||||
_url.clear();
|
||||
_params.clear();
|
||||
_protocol.clear();
|
||||
_content.clear();
|
||||
_body = nullptr;
|
||||
_headers.clear();
|
||||
_url_args.clear();
|
||||
}
|
||||
@@ -152,6 +157,10 @@ void Parser::setContent(string content) {
|
||||
_content = std::move(content);
|
||||
}
|
||||
|
||||
void Parser::setBody(HttpBody::Ptr body) {
|
||||
_body = std::move(body);
|
||||
}
|
||||
|
||||
StrCaseMap &Parser::getHeader() const {
|
||||
return _headers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user