ゴミ箱
Classes | Static Public Member Functions | List of all members
boost::beast::http::empty_body Struct Reference

#include <empty_body.hpp>

Classes

struct  reader
 
struct  value_type
 
struct  writer
 

Static Public Member Functions

static std::uint64_t size (value_type)
 

Detailed Description

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.

Member Function Documentation

static std::uint64_t boost::beast::http::empty_body::size ( value_type  )
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: