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

#include <span_body.hpp>

Classes

class  reader
 
class  writer
 

Public Types

using value_type = span< T >
 

Static Public Member Functions

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

Detailed Description

template<class T>
struct boost::beast::http::span_body< T >

A Body using span

This body uses span as a memory-based container for holding message payloads. The container represents a non-owning reference to a continguous area of memory. Messages using this body type may be serialized and parsed.

Unlike buffer_body, only one buffer may be provided during a parse or serialize operation.

Member Typedef Documentation

template<class T >
using boost::beast::http::span_body< T >::value_type = span<T>

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 >
static std::uint64_t boost::beast::http::span_body< T >::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: