Add vector_body

fix #580
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:30 -07:00
1 parent c6d7fa185b
commit e1de01ad13
8 files changed
+220 -7

No files matched your search

+1
View File
@@ -32,6 +32,7 @@ add_executable (http-tests
string_body.cpp
string_view_body.cpp
type_traits.cpp
vector_body.cpp
verb.cpp
write.cpp
)
+1
View File
@@ -25,6 +25,7 @@ unit-test http-tests :
string_body.cpp
string_view_body.cpp
type_traits.cpp
vector_body.cpp
verb.cpp
write.cpp
;
+19
View File
@@ -0,0 +1,19 @@
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Test that header file is self-contained.
#include <beast/http/vector_body.hpp>
namespace beast {
namespace http {
BOOST_STATIC_ASSERT(is_body<vector_body<char>>::value);
BOOST_STATIC_ASSERT(is_body_reader<vector_body<char>>::value);
BOOST_STATIC_ASSERT(is_body_writer<vector_body<char>>::value);
} // http
} // beast