ゴミ箱
|
#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) |
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.
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.
|
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.