How copy or reuse boost::asio::streambuf?
I'm implementing http proxy server with some business logic on boost asio. In point (1) boost::asio::streambuf response_ contains http headers and part of http body. After parsing with http_response::parse buffer boost::asio::streambuf response_ is empty. At (2) i check all business logic and read body if there was Content-Length header in headers. Then if response_ data fits specific condtions i want to send the original response_ buffer to another socket (3). The problem is that buffer is empty after parsing. Is there a way to copy boost::asio::streambuf to reuse data? void http_response: