Class MultipartStream

Class Documentation

class MultipartStream

Public Functions

MultipartStream(std::function<rclcpp::Time()> get_now, async_web_server_cpp::HttpConnectionPtr &connection, const std::string &boundry = "boundarydonotcross", std::size_t max_queue_size = 1)
void sendInitialHeader()
void sendPartHeader(const rclcpp::Time &time, const std::string &type, size_t payload_size)
void sendPartFooter(const rclcpp::Time &time)
void sendPartAndClear(const rclcpp::Time &time, const std::string &type, std::vector<unsigned char> &data)
void sendPart(const rclcpp::Time &time, const std::string &type, const boost::asio::const_buffer &buffer, async_web_server_cpp::HttpConnection::ResourcePtr resource)