#include <type_traits.hpp>
template<class T, class = void>
struct boost::beast::http::is_body_writer< T, class >
Determine if a Body type has a writer.
This metafunction is equivalent to std::true_type
if:
T
has a nested type named writer
- The nested type meets the requirements of BodyWriter.
- Template Parameters
-
- Example
template<bool isRequest, class Body, class Fields>
void check_can_parse(message<isRequest, Body, Fields>&)
{
static_assert(is_body_writer<Body>::value,
"Cannot parse Body, no writer");
}
The documentation for this struct was generated from the following file: