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

#include <client.hpp>

Collaboration diagram for anch::rest::RawBody:

Public Attributes

std::unique_ptr< std::istream > input
std::string contentType = std::string()
std::optional< std::uint64_t > size = std::nullopt

Detailed Description

Raw request body: stream sent as is (media types without codec)

Author
Vincent Lachenal
Since
0.2

Member Data Documentation

◆ contentType

std::string anch::rest::RawBody::contentType = std::string()

Content type (empty: chosen by the caller, generated clients use the declared media type)

◆ input

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

Body stream

◆ size

std::optional<std::uint64_t> anch::rest::RawBody::size = std::nullopt

Body size ( Content-Length , streamed by the libcurl transport), empty when unknown


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