Add HttpMessage::append_output_body_nocopy() with std::string

This commit is contained in:
XieHan
2022-07-11 22:58:23 +08:00
committed by xiehan
parent ca6122ea5d
commit d0ddb33e9a

View File

@@ -190,6 +190,11 @@ public:
return this->append_output_body(buf.c_str(), buf.size());
}
bool append_output_body_nocopy(const std::string& buf)
{
return this->append_output_body_nocopy(buf.c_str(), buf.size());
}
protected:
http_parser_t *parser;
size_t cur_size;