Class MultipartStream

Class Documentation

class MultipartStream

Public Functions

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