10 #ifndef BOOST_BEAST_HTTP_EMPTY_BODY_HPP 11 #define BOOST_BEAST_HTTP_EMPTY_BODY_HPP 16 #include <boost/optional.hpp> 59 #if BOOST_BEAST_DOXYGEN 60 using reader = implementation_defined;
65 boost::asio::null_buffers;
67 template<
bool isRequest,
class Fields>
77 ec.assign(0, ec.category());
80 boost::optional<std::pair<const_buffers_type, bool>>
83 ec.assign(0, ec.category());
93 #if BOOST_BEAST_DOXYGEN 94 using writer = implementation_defined;
98 template<
bool isRequest,
class Fields>
107 ec.assign(0, ec.category());
110 template<
class ConstBufferSequence>
122 ec.assign(0, ec.category());
BufferSequence< boost::asio::const_buffer > ConstBufferSequence
Definition: type_traits.hpp:280
boost::asio::null_buffers const_buffers_type
Definition: empty_body.hpp:65
Definition: async_result.hpp:20
void init(error_code &ec)
Definition: empty_body.hpp:75
Definition: type_traits.hpp:25
static std::uint64_t size(value_type)
Definition: empty_body.hpp:50
writer(message< isRequest, empty_body, Fields > &)
Definition: empty_body.hpp:100
Definition: empty_body.hpp:38
Definition: beast_common.hpp:6
Definition: empty_body.hpp:96
void init(boost::optional< std::uint64_t > const &, error_code &ec)
Definition: empty_body.hpp:105
boost::system::error_code error_code
The type of error code used by the library.
Definition: error.hpp:21
Definition: empty_body.hpp:31
Definition: empty_body.hpp:62
reader(message< isRequest, empty_body, Fields > const &)
Definition: empty_body.hpp:69
std::size_t put(ConstBufferSequence const &, error_code &ec)
Definition: empty_body.hpp:112
void finish(error_code &ec)
Definition: empty_body.hpp:120