#include <nxtio/http.hpp>
template <typename Reader>
http_body_reader class
Source-shaped view over an HTTP response body.
It strips HTTP transfer framing (Content-Length, chunked, or close-delimited) so callers see only payload bytes through read_some.
Constructors, destructors, conversion operators
-
http_body_reader(Reader& upstream,
const nxt::
http:: response_head& head) - Select a body-reading mode from the response headers.
Public functions
-
auto read_some(std::
span<std:: byte> dst) → nxt:: task<std:: size_t> - Read unframed body bytes into
dst.