mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Add HttpMessage::append_output_body_nocopy() with std::string
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user