![]() |
Home | Libraries | People | FAQ | More |
Determine if a type has a nested BodyWriter.
Defined in header <boost/beast/http/type_traits.hpp>
template< class T> using is_body_writer = see-below;
This alias template is std::true_type
when:
T
has a nested type named
writer
writer
meets the requirements
of BodyWriter.
Type |
Description |
---|---|
|
The body type to test. |
template < bool isRequest, class Body, class Fields> void check_can_serialize([link beast.ref.boost__beast__http__message `message<isRequest, Body, Fields>`] const &) { static_assert ([link beast.ref.boost__beast__http__is_body_writer `is_body_writer<Body>::value`], "Cannot serialize Body, no reader" ); }