diff --git a/CMakeLists.txt b/CMakeLists.txt
index dab07e92..bd373e9c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,6 +57,7 @@ file(GLOB_RECURSE BEAST_INCLUDES
add_subdirectory (examples)
add_subdirectory (test)
+add_subdirectory (test/core)
add_subdirectory (test/http)
add_subdirectory (test/websocket)
diff --git a/doc/beast.dox b/doc/beast.dox
index 3861cf30..6e56005f 100644
--- a/doc/beast.dox
+++ b/doc/beast.dox
@@ -104,6 +104,7 @@ WARN_LOGFILE =
#---------------------------------------------------------------------------
INPUT = \
../include/beast/ \
+ ../include/beast/core \
../include/beast/http \
../include/beast/websocket \
../include/beast/doc_debug.hpp \
diff --git a/doc/quickref.xml b/doc/quickref.xml
index 8e9337bd..20562e03 100644
--- a/doc/quickref.xml
+++ b/doc/quickref.xml
@@ -33,7 +33,6 @@
basic_parser_v1
basic_streambuf_body
empty_body
- error_code
headers
message
resume_context
@@ -119,6 +118,7 @@
basic_streambuf
buffers_adapter
consuming_buffers
+ error_code
handler_alloc
prepared_buffers
static_streambuf
@@ -126,6 +126,7 @@
static_string
streambuf
streambuf_readstream
+ system_error
diff --git a/doc/reference.xsl b/doc/reference.xsl
index cc0e9b5f..f57b3291 100644
--- a/doc/reference.xsl
+++ b/doc/reference.xsl
@@ -774,6 +774,9 @@
]
+
+ ['Convenience header: ][^beast/core.hpp]
+
['Convenience header: ][^beast/http.hpp]
diff --git a/examples/http_async_server.hpp b/examples/http_async_server.hpp
index d0610f71..2a6108f2 100644
--- a/examples/http_async_server.hpp
+++ b/examples/http_async_server.hpp
@@ -23,7 +23,7 @@
#include "file_body.hpp"
#include "http_stream.hpp"
-#include
+#include
#include
#include
#include
diff --git a/examples/http_stream.hpp b/examples/http_stream.hpp
index 526ae4da..f02d9284 100644
--- a/examples/http_stream.hpp
+++ b/examples/http_stream.hpp
@@ -20,9 +20,9 @@
#ifndef BEAST_HTTP_STREAM_H_INCLUDED
#define BEAST_HTTP_STREAM_H_INCLUDED
+#include
+#include
#include
-#include
-#include
#include
#include
#include
@@ -234,7 +234,7 @@ public:
error_code ec;
cancel(ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
}
/** Cancel pending operations.
@@ -273,7 +273,7 @@ public:
error_code ec;
read(msg, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
}
/** Read a HTTP message from the stream.
@@ -370,7 +370,7 @@ public:
error_code ec;
write(msg, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
}
/** Write a HTTP message to the stream.
diff --git a/examples/http_stream.ipp b/examples/http_stream.ipp
index 860d17a0..c9a23719 100644
--- a/examples/http_stream.ipp
+++ b/examples/http_stream.ipp
@@ -20,11 +20,11 @@
#ifndef BEAST_HTTP_STREAM_IPP_INCLUDED
#define BEAST_HTTP_STREAM_IPP_INCLUDED
+#include
+#include
#include
#include
#include
-#include
-#include
#include
namespace beast {
diff --git a/examples/websocket_example.cpp b/examples/websocket_example.cpp
index ac8c0a60..671af037 100644
--- a/examples/websocket_example.cpp
+++ b/examples/websocket_example.cpp
@@ -5,7 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
-#include
+#include
#include
#include
#include
diff --git a/extras/beast/test/fail_stream.hpp b/extras/beast/test/fail_stream.hpp
index 622e7fb2..44081f75 100644
--- a/extras/beast/test/fail_stream.hpp
+++ b/extras/beast/test/fail_stream.hpp
@@ -20,11 +20,11 @@
#ifndef BEAST_TEST_FAIL_STREAM_HPP
#define BEAST_TEST_FAIL_STREAM_HPP
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
-#include
namespace beast {
namespace test {
diff --git a/extras/beast/test/string_stream.hpp b/extras/beast/test/string_stream.hpp
index 6082f86b..5f44af14 100644
--- a/extras/beast/test/string_stream.hpp
+++ b/extras/beast/test/string_stream.hpp
@@ -8,8 +8,8 @@
#ifndef BEAST_TEST_STRING_STREAM_HPP
#define BEAST_TEST_STRING_STREAM_HPP
-#include
-#include
+#include
+#include
#include
#include
#include
@@ -49,7 +49,7 @@ public:
error_code ec;
auto const n = read_some(buffers, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
return n;
}
@@ -87,7 +87,7 @@ public:
error_code ec;
auto const n = write_some(buffers, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
return n;
}
diff --git a/extras/beast/detail/const_container.hpp b/extras/beast/unit_test/detail/const_container.hpp
similarity index 92%
rename from extras/beast/detail/const_container.hpp
rename to extras/beast/unit_test/detail/const_container.hpp
index 72f2c32b..bf34318f 100644
--- a/extras/beast/detail/const_container.hpp
+++ b/extras/beast/unit_test/detail/const_container.hpp
@@ -5,10 +5,11 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
-#ifndef BEAST_DETAIL_CONST_CONTAINER_HPP
-#define BEAST_DETAIL_CONST_CONTAINER_HPP
+#ifndef BEAST_UNIT_TEST_DETAIL_CONST_CONTAINER_HPP
+#define BEAST_UNIT_TEST_DETAIL_CONST_CONTAINER_HPP
namespace beast {
+namespace unit_test {
namespace detail {
/** Adapter to constrain a container interface.
@@ -84,6 +85,7 @@ public:
};
} // detail
+} // unit_test
} // beast
#endif
diff --git a/extras/beast/unit_test/results.hpp b/extras/beast/unit_test/results.hpp
index 74ebb76a..acc17108 100644
--- a/extras/beast/unit_test/results.hpp
+++ b/extras/beast/unit_test/results.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_UNIT_TEST_RESULTS_HPP
#define BEAST_UNIT_TEST_RESULTS_HPP
-#include
+#include
#include
#include
@@ -40,7 +40,7 @@ public:
private:
class tests_t
- : public beast::detail::const_container >
+ : public detail::const_container >
{
private:
std::size_t failed_;
@@ -82,7 +82,7 @@ private:
};
class log_t
- : public beast::detail::const_container >
+ : public detail::const_container >
{
public:
/** Insert a string into the log. */
@@ -119,7 +119,7 @@ public:
/** Holds the set of testcase results in a suite. */
class suite_results
- : public beast::detail::const_container >
+ : public detail::const_container >
{
private:
std::string name_;
@@ -178,7 +178,7 @@ public:
// VFALCO TODO Make this a template class using scoped allocators
/** Holds the results of running a set of testsuites. */
class results
- : public beast::detail::const_container >
+ : public detail::const_container >
{
private:
std::size_t m_cases;
diff --git a/extras/beast/unit_test/suite_list.hpp b/extras/beast/unit_test/suite_list.hpp
index 48d2f6e2..5feacf26 100644
--- a/extras/beast/unit_test/suite_list.hpp
+++ b/extras/beast/unit_test/suite_list.hpp
@@ -9,7 +9,7 @@
#define BEAST_UNIT_TEST_SUITE_LIST_HPP
#include
-#include
+#include
#include
#include
#include
diff --git a/include/beast/core.hpp b/include/beast/core.hpp
new file mode 100644
index 00000000..26eb9cd7
--- /dev/null
+++ b/include/beast/core.hpp
@@ -0,0 +1,31 @@
+//
+// Copyright (c) 2013-2016 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)
+//
+
+#ifndef BEAST_CORE_HPP
+#define BEAST_CORE_HPP
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#endif
diff --git a/include/beast/async_completion.hpp b/include/beast/core/async_completion.hpp
similarity index 98%
rename from include/beast/async_completion.hpp
rename to include/beast/core/async_completion.hpp
index ab659326..51c2e290 100644
--- a/include/beast/async_completion.hpp
+++ b/include/beast/core/async_completion.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_ASYNC_COMPLETION_HPP
#define BEAST_ASYNC_COMPLETION_HPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/basic_streambuf.hpp b/include/beast/core/basic_streambuf.hpp
similarity index 98%
rename from include/beast/basic_streambuf.hpp
rename to include/beast/core/basic_streambuf.hpp
index f81bdcc1..b48a6d0f 100644
--- a/include/beast/basic_streambuf.hpp
+++ b/include/beast/core/basic_streambuf.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_BASIC_STREAMBUF_HPP
#define BEAST_BASIC_STREAMBUF_HPP
-#include
+#include
#include
#include
#include
@@ -298,6 +298,6 @@ operator<<(basic_streambuf& streambuf, T const& t);
} // beast
-#include
+#include
#endif
diff --git a/include/beast/bind_handler.hpp b/include/beast/core/bind_handler.hpp
similarity index 95%
rename from include/beast/bind_handler.hpp
rename to include/beast/core/bind_handler.hpp
index 103a3994..b01365e7 100644
--- a/include/beast/bind_handler.hpp
+++ b/include/beast/core/bind_handler.hpp
@@ -8,8 +8,8 @@
#ifndef BEAST_BIND_HANDLER_HPP
#define BEAST_BIND_HANDLER_HPP
-#include
-#include
+#include
+#include
#include
#include
diff --git a/include/beast/buffer_cat.hpp b/include/beast/core/buffer_cat.hpp
similarity index 97%
rename from include/beast/buffer_cat.hpp
rename to include/beast/core/buffer_cat.hpp
index 5c3fabb4..dee9c3c8 100644
--- a/include/beast/buffer_cat.hpp
+++ b/include/beast/core/buffer_cat.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_BUFFER_CAT_HPP
#define BEAST_BUFFER_CAT_HPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/buffer_concepts.hpp b/include/beast/core/buffer_concepts.hpp
similarity index 96%
rename from include/beast/buffer_concepts.hpp
rename to include/beast/core/buffer_concepts.hpp
index 240834fa..f99d716b 100644
--- a/include/beast/buffer_concepts.hpp
+++ b/include/beast/core/buffer_concepts.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_BUFFER_CONCEPTS_HPP
#define BEAST_BUFFER_CONCEPTS_HPP
-#include
+#include
#include
#include
diff --git a/include/beast/buffers_adapter.hpp b/include/beast/core/buffers_adapter.hpp
similarity index 97%
rename from include/beast/buffers_adapter.hpp
rename to include/beast/core/buffers_adapter.hpp
index 3a0677c3..fa116a29 100644
--- a/include/beast/buffers_adapter.hpp
+++ b/include/beast/core/buffers_adapter.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_BUFFERS_ADAPTER_HPP
#define BEAST_BUFFERS_ADAPTER_HPP
-#include
+#include
#include
#include
@@ -145,6 +145,6 @@ public:
} // beast
-#include
+#include
#endif
diff --git a/include/beast/consuming_buffers.hpp b/include/beast/core/consuming_buffers.hpp
similarity index 97%
rename from include/beast/consuming_buffers.hpp
rename to include/beast/core/consuming_buffers.hpp
index 32864d5e..a467e171 100644
--- a/include/beast/consuming_buffers.hpp
+++ b/include/beast/core/consuming_buffers.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_CONSUMING_BUFFERS_HPP
#define BEAST_CONSUMING_BUFFERS_HPP
-#include
+#include
#include
#include
#include
@@ -135,6 +135,6 @@ consumed_buffers(BufferSequence const& buffers, std::size_t n);
} // beast
-#include
+#include
#endif
diff --git a/include/beast/detail/base64.hpp b/include/beast/core/detail/base64.hpp
similarity index 100%
rename from include/beast/detail/base64.hpp
rename to include/beast/core/detail/base64.hpp
diff --git a/include/beast/detail/bind_handler.hpp b/include/beast/core/detail/bind_handler.hpp
similarity index 98%
rename from include/beast/detail/bind_handler.hpp
rename to include/beast/core/detail/bind_handler.hpp
index 4caba66d..849ab619 100644
--- a/include/beast/detail/bind_handler.hpp
+++ b/include/beast/core/detail/bind_handler.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_BIND_DETAIL_HANDLER_HPP
#define BEAST_BIND_DETAIL_HANDLER_HPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/detail/buffer_cat.hpp b/include/beast/core/detail/buffer_cat.hpp
similarity index 100%
rename from include/beast/detail/buffer_cat.hpp
rename to include/beast/core/detail/buffer_cat.hpp
diff --git a/include/beast/detail/buffer_concepts.hpp b/include/beast/core/detail/buffer_concepts.hpp
similarity index 100%
rename from include/beast/detail/buffer_concepts.hpp
rename to include/beast/core/detail/buffer_concepts.hpp
diff --git a/include/beast/detail/ci_char_traits.hpp b/include/beast/core/detail/ci_char_traits.hpp
similarity index 100%
rename from include/beast/detail/ci_char_traits.hpp
rename to include/beast/core/detail/ci_char_traits.hpp
diff --git a/include/beast/detail/empty_base_optimization.hpp b/include/beast/core/detail/empty_base_optimization.hpp
similarity index 100%
rename from include/beast/detail/empty_base_optimization.hpp
rename to include/beast/core/detail/empty_base_optimization.hpp
diff --git a/include/beast/detail/get_lowest_layer.hpp b/include/beast/core/detail/get_lowest_layer.hpp
similarity index 100%
rename from include/beast/detail/get_lowest_layer.hpp
rename to include/beast/core/detail/get_lowest_layer.hpp
diff --git a/include/beast/detail/integer_sequence.hpp b/include/beast/core/detail/integer_sequence.hpp
similarity index 100%
rename from include/beast/detail/integer_sequence.hpp
rename to include/beast/core/detail/integer_sequence.hpp
diff --git a/include/beast/detail/is_call_possible.hpp b/include/beast/core/detail/is_call_possible.hpp
similarity index 100%
rename from include/beast/detail/is_call_possible.hpp
rename to include/beast/core/detail/is_call_possible.hpp
diff --git a/include/beast/detail/sha1.hpp b/include/beast/core/detail/sha1.hpp
similarity index 100%
rename from include/beast/detail/sha1.hpp
rename to include/beast/core/detail/sha1.hpp
diff --git a/include/beast/detail/stream_concepts.hpp b/include/beast/core/detail/stream_concepts.hpp
similarity index 98%
rename from include/beast/detail/stream_concepts.hpp
rename to include/beast/core/detail/stream_concepts.hpp
index a329ac44..39edcced 100644
--- a/include/beast/detail/stream_concepts.hpp
+++ b/include/beast/core/detail/stream_concepts.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_DETAIL_STREAM_CONCEPTS_HPP
#define BEAST_DETAIL_STREAM_CONCEPTS_HPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/detail/temp_dir.hpp b/include/beast/core/detail/temp_dir.hpp
similarity index 100%
rename from include/beast/detail/temp_dir.hpp
rename to include/beast/core/detail/temp_dir.hpp
diff --git a/include/beast/detail/unit_test.h b/include/beast/core/detail/unit_test.h
similarity index 100%
rename from include/beast/detail/unit_test.h
rename to include/beast/core/detail/unit_test.h
diff --git a/include/beast/detail/write_streambuf.hpp b/include/beast/core/detail/write_streambuf.hpp
similarity index 98%
rename from include/beast/detail/write_streambuf.hpp
rename to include/beast/core/detail/write_streambuf.hpp
index 06174242..347d1954 100644
--- a/include/beast/detail/write_streambuf.hpp
+++ b/include/beast/core/detail/write_streambuf.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_DETAIL_WRITE_STREAMBUF_HPP
#define BEAST_DETAIL_WRITE_STREAMBUF_HPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/error.hpp b/include/beast/core/error.hpp
similarity index 100%
rename from include/beast/error.hpp
rename to include/beast/core/error.hpp
diff --git a/include/beast/handler_alloc.hpp b/include/beast/core/handler_alloc.hpp
similarity index 100%
rename from include/beast/handler_alloc.hpp
rename to include/beast/core/handler_alloc.hpp
diff --git a/include/beast/handler_concepts.hpp b/include/beast/core/handler_concepts.hpp
similarity index 93%
rename from include/beast/handler_concepts.hpp
rename to include/beast/core/handler_concepts.hpp
index e0a4a89e..33c43f07 100644
--- a/include/beast/handler_concepts.hpp
+++ b/include/beast/core/handler_concepts.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_HANDLER_CONCEPTS_HPP
#define BEAST_HANDLER_CONCEPTS_HPP
-#include
+#include
#include
namespace beast {
diff --git a/include/beast/impl/basic_streambuf.ipp b/include/beast/core/impl/basic_streambuf.ipp
similarity index 99%
rename from include/beast/impl/basic_streambuf.ipp
rename to include/beast/core/impl/basic_streambuf.ipp
index ce073e26..90f39b53 100644
--- a/include/beast/impl/basic_streambuf.ipp
+++ b/include/beast/core/impl/basic_streambuf.ipp
@@ -8,7 +8,7 @@
#ifndef BEAST_IMPL_BASIC_STREAMBUF_IPP
#define BEAST_IMPL_BASIC_STREAMBUF_IPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/impl/buffers_adapter.ipp b/include/beast/core/impl/buffers_adapter.ipp
similarity index 100%
rename from include/beast/impl/buffers_adapter.ipp
rename to include/beast/core/impl/buffers_adapter.ipp
diff --git a/include/beast/impl/consuming_buffers.ipp b/include/beast/core/impl/consuming_buffers.ipp
similarity index 99%
rename from include/beast/impl/consuming_buffers.ipp
rename to include/beast/core/impl/consuming_buffers.ipp
index 748892e2..37c69005 100644
--- a/include/beast/impl/consuming_buffers.ipp
+++ b/include/beast/core/impl/consuming_buffers.ipp
@@ -8,7 +8,7 @@
#ifndef BEAST_IMPL_CONSUMING_BUFFERS_IPP
#define BEAST_IMPL_CONSUMING_BUFFERS_IPP
-#include
+#include
#include
#include
#include
diff --git a/include/beast/impl/prepare_buffers.ipp b/include/beast/core/impl/prepare_buffers.ipp
similarity index 100%
rename from include/beast/impl/prepare_buffers.ipp
rename to include/beast/core/impl/prepare_buffers.ipp
diff --git a/include/beast/impl/static_streambuf.ipp b/include/beast/core/impl/static_streambuf.ipp
similarity index 100%
rename from include/beast/impl/static_streambuf.ipp
rename to include/beast/core/impl/static_streambuf.ipp
diff --git a/include/beast/impl/streambuf_readstream.ipp b/include/beast/core/impl/streambuf_readstream.ipp
similarity index 97%
rename from include/beast/impl/streambuf_readstream.ipp
rename to include/beast/core/impl/streambuf_readstream.ipp
index 679cf5bb..f65f85f7 100644
--- a/include/beast/impl/streambuf_readstream.ipp
+++ b/include/beast/core/impl/streambuf_readstream.ipp
@@ -8,9 +8,9 @@
#ifndef BEAST_IMPL_STREAMBUF_READSTREAM_IPP
#define BEAST_IMPL_STREAMBUF_READSTREAM_IPP
-#include
-#include
-#include
+#include
+#include
+#include
#include
#include
@@ -199,7 +199,7 @@ read_some(
error_code ec;
auto n = read_some(buffers, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
return n;
}
diff --git a/include/beast/placeholders.hpp b/include/beast/core/placeholders.hpp
similarity index 100%
rename from include/beast/placeholders.hpp
rename to include/beast/core/placeholders.hpp
diff --git a/include/beast/prepare_buffers.hpp b/include/beast/core/prepare_buffers.hpp
similarity index 98%
rename from include/beast/prepare_buffers.hpp
rename to include/beast/core/prepare_buffers.hpp
index cb3a0099..9b113ae3 100644
--- a/include/beast/prepare_buffers.hpp
+++ b/include/beast/core/prepare_buffers.hpp
@@ -152,6 +152,6 @@ prepare_buffers(std::size_t n, BufferSequence const& buffers);
} // beast
-#include
+#include
#endif
diff --git a/include/beast/static_streambuf.hpp b/include/beast/core/static_streambuf.hpp
similarity index 98%
rename from include/beast/static_streambuf.hpp
rename to include/beast/core/static_streambuf.hpp
index add19212..07fa4fc1 100644
--- a/include/beast/static_streambuf.hpp
+++ b/include/beast/core/static_streambuf.hpp
@@ -184,6 +184,6 @@ public:
} // beast
-#include
+#include
#endif
diff --git a/include/beast/static_string.hpp b/include/beast/core/static_string.hpp
similarity index 100%
rename from include/beast/static_string.hpp
rename to include/beast/core/static_string.hpp
diff --git a/include/beast/stream_concepts.hpp b/include/beast/core/stream_concepts.hpp
similarity index 97%
rename from include/beast/stream_concepts.hpp
rename to include/beast/core/stream_concepts.hpp
index ec07f0f3..a93a7f10 100644
--- a/include/beast/stream_concepts.hpp
+++ b/include/beast/core/stream_concepts.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_STREAM_CONCEPTS_HPP
#define BEAST_STREAM_CONCEPTS_HPP
-#include
+#include
#include
namespace beast {
diff --git a/include/beast/streambuf.hpp b/include/beast/core/streambuf.hpp
similarity index 94%
rename from include/beast/streambuf.hpp
rename to include/beast/core/streambuf.hpp
index cc30b817..468c8dfa 100644
--- a/include/beast/streambuf.hpp
+++ b/include/beast/core/streambuf.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_STREAMBUF_HPP
#define BEAST_STREAMBUF_HPP
-#include
+#include
namespace beast {
diff --git a/include/beast/streambuf_readstream.hpp b/include/beast/core/streambuf_readstream.hpp
similarity index 96%
rename from include/beast/streambuf_readstream.hpp
rename to include/beast/core/streambuf_readstream.hpp
index 75c0d5bc..7557fcc3 100644
--- a/include/beast/streambuf_readstream.hpp
+++ b/include/beast/core/streambuf_readstream.hpp
@@ -8,11 +8,12 @@
#ifndef BEAST_STREAMBUF_READSTREAM_HPP
#define BEAST_STREAMBUF_READSTREAM_HPP
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
#include
#include
@@ -276,6 +277,6 @@ public:
} // beast
-#include
+#include
#endif
diff --git a/include/beast/to_string.hpp b/include/beast/core/to_string.hpp
similarity index 97%
rename from include/beast/to_string.hpp
rename to include/beast/core/to_string.hpp
index 711483cd..41ba8d0f 100644
--- a/include/beast/to_string.hpp
+++ b/include/beast/core/to_string.hpp
@@ -8,7 +8,7 @@
#ifndef BEAST_TO_STRING_HPP
#define BEAST_TO_STRING_HPP
-#include
+#include
#include
#include
diff --git a/include/beast/write_streambuf.hpp b/include/beast/core/write_streambuf.hpp
similarity index 95%
rename from include/beast/write_streambuf.hpp
rename to include/beast/core/write_streambuf.hpp
index 24dc61a0..07e7d809 100644
--- a/include/beast/write_streambuf.hpp
+++ b/include/beast/core/write_streambuf.hpp
@@ -8,8 +8,8 @@
#ifndef BEAST_WRITE_STREAMBUF_HPP
#define BEAST_WRITE_STREAMBUF_HPP
-#include
-#include
+#include
+#include
#include
#include
diff --git a/include/beast/http/basic_headers.hpp b/include/beast/http/basic_headers.hpp
index 78e8b1e0..6e034e27 100644
--- a/include/beast/http/basic_headers.hpp
+++ b/include/beast/http/basic_headers.hpp
@@ -8,8 +8,8 @@
#ifndef BEAST_HTTP_BASIC_HEADERS_HPP
#define BEAST_HTTP_BASIC_HEADERS_HPP
-#include
-#include
+#include
+#include
#include
#include
#include
diff --git a/include/beast/http/body_type.hpp b/include/beast/http/body_type.hpp
index 4a71cff3..5b3f9601 100644
--- a/include/beast/http/body_type.hpp
+++ b/include/beast/http/body_type.hpp
@@ -11,7 +11,7 @@
// Convenience header to include everything
// needed when declarating a user defined Body type.
-#include
+#include
#include
#include
#include
diff --git a/include/beast/http/empty_body.hpp b/include/beast/http/empty_body.hpp
index 7ac6d06a..885a5605 100644
--- a/include/beast/http/empty_body.hpp
+++ b/include/beast/http/empty_body.hpp
@@ -9,7 +9,7 @@
#define BEAST_HTTP_EMPTY_BODY_HPP
#include
-#include
+#include
#include
#include
#include
diff --git a/include/beast/http/impl/basic_parser_v1.ipp b/include/beast/http/impl/basic_parser_v1.ipp
index fd904944..baf9127c 100644
--- a/include/beast/http/impl/basic_parser_v1.ipp
+++ b/include/beast/http/impl/basic_parser_v1.ipp
@@ -8,7 +8,7 @@
#ifndef BEAST_HTTP_IMPL_BASIC_PARSER_V1_IPP
#define BEAST_HTTP_IMPL_BASIC_PARSER_V1_IPP
-#include
+#include
namespace beast {
namespace http {
diff --git a/include/beast/http/impl/read.ipp b/include/beast/http/impl/read.ipp
index 3a3465c4..a09da41c 100644
--- a/include/beast/http/impl/read.ipp
+++ b/include/beast/http/impl/read.ipp
@@ -9,9 +9,9 @@
#define BEAST_HTTP_IMPL_READ_IPP_HPP
#include
-#include
-#include
-#include
+#include
+#include
+#include
#include
namespace beast {
@@ -221,7 +221,7 @@ read(SyncReadStream& stream, Streambuf& streambuf,
error_code ec;
read(stream, streambuf, msg, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
}
template
#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
#include
#include
@@ -451,7 +451,7 @@ write(SyncWriteStream& stream,
error_code ec;
write(stream, msg, ec);
if(ec)
- throw boost::system::system_error{ec};
+ throw system_error{ec};
}
template
+#include
namespace beast {
namespace http {
diff --git a/include/beast/http/parser_v1.hpp b/include/beast/http/parser_v1.hpp
index b699eacd..7966ee45 100644
--- a/include/beast/http/parser_v1.hpp
+++ b/include/beast/http/parser_v1.hpp
@@ -8,9 +8,9 @@
#ifndef BEAST_HTTP_PARSER_V1_HPP
#define BEAST_HTTP_PARSER_V1_HPP
-#include
#include
#include
+#include
#include
#include
#include
diff --git a/include/beast/http/read.hpp b/include/beast/http/read.hpp
index 6927cefe..9c80ce58 100644
--- a/include/beast/http/read.hpp
+++ b/include/beast/http/read.hpp
@@ -8,9 +8,9 @@
#ifndef BEAST_HTTP_READ_HPP
#define BEAST_HTTP_READ_HPP
-#include
#include
-#include
+#include
+#include