diff --git a/CHANGELOG.md b/CHANGELOG.md index b6c16337..dfad923f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Version 76: * Always go through write_some * Use Boost.Config * BodyReader may construct from a non-const message +* Add serializer::get -------------------------------------------------------------------------------- diff --git a/include/beast/http/serializer.hpp b/include/beast/http/serializer.hpp index 5f679c06..34b0f0ff 100644 --- a/include/beast/http/serializer.hpp +++ b/include/beast/http/serializer.hpp @@ -309,6 +309,13 @@ public: explicit serializer(value_type& msg, ChunkDecorator const& decorator); + /// Returns the message being serialized + value_type& + get() + { + return m_; + } + /// Returns the serialized buffer size limit std::size_t limit() const