AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::BodyStream Struct Reference

#include <bodyStream.hpp>

Collaboration diagram for anch::rest::BodyStream:

Public Attributes

std::unique_ptr< std::istream > input
std::optional< std::uint64_t > size

Detailed Description

Body read as a stream: codecs which define stream(const T&, const anch::codec::MediaType&, anch::codec::Side) -> anch::rest::BodyStream let the client send large bodies without building them in memory (see Multipart ).

Author
Vincent Lachenal
Since
0.2

Member Data Documentation

◆ input

std::unique_ptr<std::istream> anch::rest::BodyStream::input

Body stream

◆ size

std::optional<std::uint64_t> anch::rest::BodyStream::size

Body size ( Content-Length ), empty when unknown


The documentation for this struct was generated from the following file: