nxt::io::string_sink class

In-memory sink that appends all writes to a string.

Public functions

auto text() const →  const std::string& noexcept
Return all bytes written so far.
auto write_all(std::span<const std::byte> bytes) →  nxt::task
Append raw bytes to the sink.
auto write_all(std::string_view text) →  nxt::task
Append text bytes to the sink.