From c52ddea11dd94b3cefc59129a67c13a60a3d1567 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 7 Jul 2017 09:16:51 -0700 Subject: [PATCH] Add serializer::get --- CHANGELOG.md | 1 + include/beast/http/serializer.hpp | 7 +++++++ 2 files changed, 8 insertions(+) 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