1 #ifndef MULTIPART_STREAM_H_ 2 #define MULTIPART_STREAM_H_ 5 #include <async_web_server_cpp/http_connection.hpp> 20 const std::string& boundry=
"boundarydonotcross",
21 std::size_t max_queue_size=1);
23 void sendInitialHeader();
24 void sendPartHeader(
const ros::Time &time,
const std::string& type,
size_t payload_size);
25 void sendPartFooter(
const ros::Time &time);
26 void sendPartAndClear(
const ros::Time &time,
const std::string& type, std::vector<unsigned char> &data);
27 void sendPart(
const ros::Time &time,
const std::string& type,
const boost::asio::const_buffer &buffer,
28 async_web_server_cpp::HttpConnection::ResourcePtr resource);
async_web_server_cpp::HttpConnectionPtr connection_
std::queue< PendingFooter > pending_footers_
const std::size_t max_queue_size_