ゴミ箱
|
#include <empty_body.hpp>
Classes | |
struct | reader |
struct | value_type |
struct | writer |
Static Public Member Functions | |
static std::uint64_t | size (value_type) |
An empty Body
This body is used to represent messages which do not have a message body. If this body is used with a parser, and the parser encounters octets corresponding to a message body, the parser will fail with the error http::unexpected_body.
The Content-Length of this body is always 0.
|
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.