10 #ifndef BOOST_BEAST_HTTP_CHUNK_ENCODE_HPP 11 #define BOOST_BEAST_HTTP_CHUNK_ENCODE_HPP 18 #include <boost/asio/buffer.hpp> 20 #include <type_traits> 48 #if BOOST_BEAST_DOXYGEN 109 boost::asio::const_buffers_1,
180 template<
class ChunkExtensions
181 #if ! BOOST_BEAST_DOXYGEN 182 ,
class =
typename std::enable_if<
184 ChunkExtensions>::value>::type
189 ChunkExtensions&& extensions);
216 template<
class ChunkExtensions,
class Allocator
217 #if ! BOOST_BEAST_DOXYGEN 218 ,
class =
typename std::enable_if<
220 ChunkExtensions>::value>::type
225 ChunkExtensions&& extensions,
226 Allocator
const& allocator);
231 #if BOOST_BEAST_DOXYGEN 238 #if BOOST_BEAST_DOXYGEN 245 chunk_header(chunk_header
const&) =
default;
251 return view_.
begin();
283 template<
class ConstBufferSequence>
288 boost::asio::const_buffers_1,
314 ConstBufferSequence
const&
buffers);
343 ConstBufferSequence
const& buffers,
371 template<
class ChunkExtensions
372 #if ! BOOST_BEAST_DOXYGEN 373 ,
class =
typename std::enable_if<
374 ! std::is_convertible<
typename std::decay<
379 ConstBufferSequence
const& buffers,
380 ChunkExtensions&& extensions);
410 template<
class ChunkExtensions,
class Allocator
411 #if ! BOOST_BEAST_DOXYGEN 412 ,
class =
typename std::enable_if<
413 ! std::is_convertible<
typename std::decay<
418 ConstBufferSequence
const& buffers,
419 ChunkExtensions&& extensions,
420 Allocator
const& allocator);
425 #if BOOST_BEAST_DOXYGEN 432 #if BOOST_BEAST_DOXYGEN 442 return view_.
begin();
457 template<
class Trailer = chunk_crlf>
463 "Trailer requirements not met");
465 using buffers_type =
typename 473 template<
class Allocator>
475 prepare(Trailer
const&
trailer, Allocator
const& alloc);
478 prepare(Trailer
const& trailer, std::true_type);
481 prepare(Trailer
const& trailer, std::false_type);
483 std::shared_ptr<void> sp_;
513 #if BOOST_BEAST_DOXYGEN 514 template<
class Allocator>
515 chunk_last(Trailer
const& trailer, Allocator
const& allocator);
517 template<
class DeducedTrailer,
class Allocator,
518 class =
typename std::enable_if<
521 DeducedTrailer
const& trailer, Allocator
const& allocator);
530 #if BOOST_BEAST_DOXYGEN 538 #if BOOST_BEAST_DOXYGEN 542 typename view_type::const_iterator;
549 return view_.
begin();
570 template<
class Allocator>
573 std::basic_string<char,
574 std::char_traits<char>, Allocator> s_;
576 std::basic_string<char,
577 std::char_traits<char>, Allocator> range_;
579 template<
class FwdIt>
581 do_parse(FwdIt it, FwdIt last,
error_code& ec);
692 buffers, std::forward<Args>(args)...);
720 template<
class Trailer,
class... Args>
727 trailer, std::forward<Args>(args)...};
BufferSequence< boost::asio::const_buffer > ConstBufferSequence
Definition: type_traits.hpp:280
const_iterator end() const
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:69
const_iterator end() const
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:447
chunk_last< chunk_crlf > make_chunk_last()
Definition: chunk_encode.hpp:702
Definition: async_result.hpp:20
typename view_type::value_type value_type
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:534
detail::buffers_helper< ConstBufferSequence > buffers(ConstBufferSequence const &b)
Definition: ostream.hpp:50
typename view_type::const_iterator const_iterator
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:542
basic_chunk_extensions(Allocator const &allocator)
Definition: chunk_encode.hpp:611
chunk_crlf()=default
Constructor.
const_iterator begin() const
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:547
Definition: beast_common.hpp:6
Definition: chunk_encode.hpp:173
Definition: chunk_encode.hpp:222
void clear()
Definition: chunk_encode.hpp:622
boost::system::error_code error_code
The type of error code used by the library.
Definition: error.hpp:21
typename detail::common_buffers_type< Buffers... >::type value_type
Definition: buffer_cat.hpp:40
const_iterator end() const
Required for BufferSequence.
Definition: buffer_cat.ipp:486
const_iterator begin() const
Required for BufferSequence.
Definition: buffer_cat.ipp:477
const_iterator begin() const
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:62
Definition: chunk_encode.hpp:25
Definition: type_traits.hpp:59
typename view_type::const_iterator const_iterator
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:435
boost::asio::const_buffers_1 chunk_last()
Returns a buffer sequence holding a final chunk header.
Definition: chunk_encode.hpp:163
typename view_type::value_type value_type
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:428
Definition: chunk_encode.hpp:40
boost::string_ref string_view
The type of string view used by the library.
Definition: string.hpp:36
const_iterator end() const
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:554
typename detail::is_fields_helper< T >::type is_fields
Definition: type_traits.hpp:178
value_type const * const_iterator
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:55
Definition: chunk_encode.hpp:571
static value_type value
Definition: chunk_encode.hpp:186
std::pair< string_view, string_view > value_type
Definition: chunk_encode.hpp:593
Definition: chunk_encode.hpp:458
string_view str() const
Return the serialized representation of the chunk extension.
Definition: chunk_encode.hpp:653
typename T::reader::const_buffers_type type
Definition: chunk_encode.hpp:248
Definition: chunk_encode.hpp:55
Definition: chunk_encode.ipp:220
auto make_chunk(ConstBufferSequence const &buffers, Args &&...args) -> chunk_body< ConstBufferSequence >
Definition: chunk_encode.hpp:686
Definition: chunk_encode.hpp:284
Definition: chunk_encode.hpp:68
const_iterator begin() const
Required for ConstBufferSequence.
Definition: chunk_encode.hpp:440