ゴミ箱
Classes | Public Types | Static Public Member Functions | List of all members
boost::beast::http::vector_body< T, Allocator > Struct Template Reference

#include <vector_body.hpp>

Classes

class  reader
 
class  writer
 

Public Types

using value_type = std::vector< T, Allocator >
 

Static Public Member Functions

static std::uint64_t size (value_type const &body)
 

Detailed Description

template<class T, class Allocator = std::allocator<T>>
struct boost::beast::http::vector_body< T, Allocator >

A Body using std::vector

This body uses std::vector as a memory-based container for holding message payloads. Messages using this body type may be serialized and parsed.

Member Typedef Documentation

template<class T , class Allocator = std::allocator<T>>
using boost::beast::http::vector_body< T, Allocator >::value_type = std::vector<T, Allocator>

The type of container used for the body

This determines the type of message::body when this body type is used with a message container.

Member Function Documentation

template<class T , class Allocator = std::allocator<T>>
static std::uint64_t boost::beast::http::vector_body< T, Allocator >::size ( value_type const &  body)
inlinestatic

Returns the payload size of the body

When this body is used with message::prepare_payload, the Content-Length will be set to the payload size, and any chunked Transfer-Encoding will be removed.


The documentation for this struct was generated from the following file: