![]() |
Home | Libraries | People | FAQ | More |
Determine if a type meets the Body named requirements.
Defined in header <boost/beast/http/type_traits.hpp>
template< class T> using is_body = see-below;
This alias template is std::true_type
if T
meets the requirements,
otherwise it is std::false_type
.
Type |
Description |
---|---|
|
The type to test. |
template < bool isRequest, class Body, class Fields> void check_body([link beast.ref.boost__beast__http__message `message<isRequest, Body, Fields>`] const &) { static_assert ([link beast.ref.boost__beast__http__is_body `is_body<Body>::value`], "Body type requirements not met" ); }