I need to convert boost::beast::http::response<boost::beast::http::buffer_body>
to boost::beast::http::response<boost::beast::http::string_body>
.
What's an elegant and efficient way of doing so using beast's api?
P.S.
I think serializing and parsing is not so efficient, and maybe there's a better way. But if that's the solution, since I'm new to beast I would be also glad to see an elegant code example for that.
Thanks, David.