17#ifndef TOOLBOX_HTTP_STREAM_HPP
18#define TOOLBOX_HTTP_STREAM_HPP
25inline namespace http {
47 std::streamsize
pcount() const noexcept {
return pcount_; }
48 void commit() noexcept { buf_.commit(pcount_); }
54 void set_content_length(std::streamsize pos, std::streamsize len)
noexcept;
57 int_type overflow(int_type c)
noexcept override;
58 std::streamsize
xsputn(
const char_type* s, std::streamsize count)
noexcept override;
62 char* pbase_{
nullptr};
63 std::streamsize pcount_{0};
69 : std::ostream{
nullptr}
84 void commit() noexcept;
96 std::streamsize cloff_{0};
98 std::streamsize hcount_{0};