Beast Logo

PrevUpHomeNext

http::make_chunk

Returns a http::chunk_body.

Synopsis

Defined in header <beast/http/chunk_encode.hpp>

template<
    class ConstBufferSequence,
    class... Args>
auto
make_chunk(
    ConstBufferSequence const& buffers,
    Args&&... args);
Description

This functions constructs and returns a complete http::chunk_body for a chunk body represented by the specified buffer sequence.

Parameters

Name

Description

buffers

The buffers representing the chunk body.

args

Optional arguments passed to the chunk_body constructor.

Remarks

This function is provided as a notational convenience to omit specification of the class template arguments.

Convenience header <beast/http.hpp>


PrevUpHomeNext