...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A Body using span
.
Defined in header <boost/beast/http/span_body.hpp>
template< class T> struct span_body
Name |
Description |
---|---|
The algorithm for parsing the body. |
|
The type of container used for the body. |
|
The algorithm for serializing the body. |
Name |
Description |
---|---|
Returns the payload size of the body. |
This body uses span
as a memory-based container
for holding message payloads. The container represents a non-owning reference
to a contiguous 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.