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