ゴミ箱
Public Types | Public Member Functions | List of all members
boost::beast::http::chunk_last< Trailer > Class Template Reference

#include <chunk_encode.hpp>

Public Types

using value_type = typename view_type::value_type
 Required for ConstBufferSequence. More...
 
using const_iterator = typename view_type::const_iterator
 Required for ConstBufferSequence. More...
 

Public Member Functions

 chunk_last ()
 
 chunk_last (Trailer const &trailer)
 
template<class DeducedTrailer , class Allocator , class = typename std::enable_if< is_fields<DeducedTrailer>::value>::type>
 chunk_last (DeducedTrailer const &trailer, Allocator const &allocator)
 
 chunk_last (chunk_last const &)=default
 Required for ConstBufferSequence. More...
 
const_iterator begin () const
 Required for ConstBufferSequence. More...
 
const_iterator end () const
 Required for ConstBufferSequence. More...
 
template<class Allocator >
auto prepare (Trailer const &trailer, Allocator const &allocator) -> buffers_type
 

Detailed Description

template<class Trailer = chunk_crlf>
class boost::beast::http::chunk_last< Trailer >

A chunked-encoding last chunk

Member Typedef Documentation

template<class Trailer = chunk_crlf>
using boost::beast::http::chunk_last< Trailer >::const_iterator = typename view_type::const_iterator

Required for ConstBufferSequence.

template<class Trailer = chunk_crlf>
using boost::beast::http::chunk_last< Trailer >::value_type = typename view_type::value_type

Required for ConstBufferSequence.

Constructor & Destructor Documentation

template<class Trailer >
boost::beast::http::chunk_last< Trailer >::chunk_last ( )

Constructor

The last chunk will have an empty trailer

template<class Trailer >
boost::beast::http::chunk_last< Trailer >::chunk_last ( Trailer const &  trailer)
explicit

Constructor

Parameters
trailerThe trailer to use. This may be a type meeting the requirements of either Fields or ConstBufferSequence. If it is a ConstBufferSequence, the trailer must be formatted correctly as per rfc7230 including a CRLF on its own line to denote the end of the trailer.
template<class Trailer >
template<class DeducedTrailer , class Allocator , class >
boost::beast::http::chunk_last< Trailer >::chunk_last ( DeducedTrailer const &  trailer,
Allocator const &  allocator 
)

Constructor

Parameters
trailerThe trailer to use. This type must meet the requirements of Fields.
allocatorThe allocator to use for storing temporary data associated with the serialized trailer buffers.
template<class Trailer = chunk_crlf>
boost::beast::http::chunk_last< Trailer >::chunk_last ( chunk_last< Trailer > const &  )
default

Required for ConstBufferSequence.

Member Function Documentation

template<class Trailer = chunk_crlf>
const_iterator boost::beast::http::chunk_last< Trailer >::begin ( ) const
inline

Required for ConstBufferSequence.

template<class Trailer = chunk_crlf>
const_iterator boost::beast::http::chunk_last< Trailer >::end ( ) const
inline

Required for ConstBufferSequence.

template<class Trailer = chunk_crlf>
template<class Allocator >
auto boost::beast::http::chunk_last< Trailer >::prepare ( Trailer const &  trailer,
Allocator const &  allocator 
) -> buffers_type

The documentation for this class was generated from the following files: