3#include <boost/beast/http/message.hpp>
23 template <
bool isRequest,
class Fields>
25 void init(boost::optional<std::uint64_t>
const&, boost::beast::error_code& ec);
26 template <
class ConstBufferSequence>
27 std::size_t
put(ConstBufferSequence
const& buffers, boost::beast::error_code& ec);
28 void finish(boost::beast::error_code& ec);
33 template <
bool isRequest,
class Fields>
35 void init(boost::beast::error_code& ec);
36 boost::optional<std::pair<const_buffers_type, bool>>
get(boost::beast::error_code& ec);
45 template <
bool isRequest,
class Fields>
52 template <
class ConstBufferSequence>
56 std::size_t writtenAmount = 0;
57 for (
auto it = boost::asio::buffer_sequence_begin(buffers); it != boost::asio::buffer_sequence_end(buffers);
60 writtenAmount += it->size();
69 template <
bool isRequest,
class Fields>
76 inline boost::optional<std::pair<VoidBody::const_buffers_type, bool>>
Definition void_body.hpp:21
void init(boost::optional< std::uint64_t > const &, boost::beast::error_code &ec)
Definition void_body.hpp:48
void finish(boost::beast::error_code &ec)
Definition void_body.hpp:64
reader(boost::beast::http::header< isRequest, Fields > &, value_type &)
Definition void_body.hpp:46
std::size_t put(ConstBufferSequence const &buffers, boost::beast::error_code &ec)
Definition void_body.hpp:53
Definition void_body.hpp:31
writer(boost::beast::http::header< isRequest, Fields > &, value_type &)
Definition void_body.hpp:70
void init(boost::beast::error_code &ec)
Definition void_body.hpp:72
boost::optional< std::pair< const_buffers_type, bool > > get(boost::beast::error_code &ec)
Definition void_body.hpp:77
This body is for reading into nothing.
Definition void_body.hpp:13
boost::asio::const_buffer const_buffers_type
Definition void_body.hpp:18
static std::uint64_t size(value_type const &)
Definition void_body.hpp:39
Definition authorization.hpp:10
Definition void_body.hpp:16