forked from boostorg/beast
Tidy up core sources:
The core headers are moved to their own directory (but remain in the same namespace).
This commit is contained in:
@@ -57,6 +57,7 @@ file(GLOB_RECURSE BEAST_INCLUDES
|
|||||||
|
|
||||||
add_subdirectory (examples)
|
add_subdirectory (examples)
|
||||||
add_subdirectory (test)
|
add_subdirectory (test)
|
||||||
|
add_subdirectory (test/core)
|
||||||
add_subdirectory (test/http)
|
add_subdirectory (test/http)
|
||||||
add_subdirectory (test/websocket)
|
add_subdirectory (test/websocket)
|
||||||
|
|
||||||
|
@@ -104,6 +104,7 @@ WARN_LOGFILE =
|
|||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
INPUT = \
|
INPUT = \
|
||||||
../include/beast/ \
|
../include/beast/ \
|
||||||
|
../include/beast/core \
|
||||||
../include/beast/http \
|
../include/beast/http \
|
||||||
../include/beast/websocket \
|
../include/beast/websocket \
|
||||||
../include/beast/doc_debug.hpp \
|
../include/beast/doc_debug.hpp \
|
||||||
|
@@ -33,7 +33,6 @@
|
|||||||
<member><link linkend="beast.ref.http__basic_parser_v1">basic_parser_v1</link></member>
|
<member><link linkend="beast.ref.http__basic_parser_v1">basic_parser_v1</link></member>
|
||||||
<member><link linkend="beast.ref.http__basic_streambuf_body">basic_streambuf_body</link></member>
|
<member><link linkend="beast.ref.http__basic_streambuf_body">basic_streambuf_body</link></member>
|
||||||
<member><link linkend="beast.ref.http__empty_body">empty_body</link></member>
|
<member><link linkend="beast.ref.http__empty_body">empty_body</link></member>
|
||||||
<member><link linkend="beast.ref.http__error_code">error_code</link></member>
|
|
||||||
<member><link linkend="beast.ref.http__headers">headers</link></member>
|
<member><link linkend="beast.ref.http__headers">headers</link></member>
|
||||||
<member><link linkend="beast.ref.http__message">message</link></member>
|
<member><link linkend="beast.ref.http__message">message</link></member>
|
||||||
<member><link linkend="beast.ref.http__resume_context">resume_context</link></member>
|
<member><link linkend="beast.ref.http__resume_context">resume_context</link></member>
|
||||||
@@ -119,6 +118,7 @@
|
|||||||
<member><link linkend="beast.ref.basic_streambuf">basic_streambuf</link></member>
|
<member><link linkend="beast.ref.basic_streambuf">basic_streambuf</link></member>
|
||||||
<member><link linkend="beast.ref.buffers_adapter">buffers_adapter</link></member>
|
<member><link linkend="beast.ref.buffers_adapter">buffers_adapter</link></member>
|
||||||
<member><link linkend="beast.ref.consuming_buffers">consuming_buffers</link></member>
|
<member><link linkend="beast.ref.consuming_buffers">consuming_buffers</link></member>
|
||||||
|
<member><link linkend="beast.ref.error_code">error_code</link></member>
|
||||||
<member><link linkend="beast.ref.handler_alloc">handler_alloc</link></member>
|
<member><link linkend="beast.ref.handler_alloc">handler_alloc</link></member>
|
||||||
<member><link linkend="beast.ref.prepared_buffers">prepared_buffers</link></member>
|
<member><link linkend="beast.ref.prepared_buffers">prepared_buffers</link></member>
|
||||||
<member><link linkend="beast.ref.static_streambuf">static_streambuf</link></member>
|
<member><link linkend="beast.ref.static_streambuf">static_streambuf</link></member>
|
||||||
@@ -126,6 +126,7 @@
|
|||||||
<member><link linkend="beast.ref.static_string">static_string</link></member>
|
<member><link linkend="beast.ref.static_string">static_string</link></member>
|
||||||
<member><link linkend="beast.ref.streambuf">streambuf</link></member>
|
<member><link linkend="beast.ref.streambuf">streambuf</link></member>
|
||||||
<member><link linkend="beast.ref.streambuf_readstream">streambuf_readstream</link></member>
|
<member><link linkend="beast.ref.streambuf_readstream">streambuf_readstream</link></member>
|
||||||
|
<member><link linkend="beast.ref.system_error">system_error</link></member>
|
||||||
</simplelist>
|
</simplelist>
|
||||||
</entry>
|
</entry>
|
||||||
<entry valign="top">
|
<entry valign="top">
|
||||||
|
@@ -774,6 +774,9 @@
|
|||||||
<xsl:value-of select="substring-after($file, 'include/')"/>
|
<xsl:value-of select="substring-after($file, 'include/')"/>
|
||||||
<xsl:text>] 

</xsl:text>
|
<xsl:text>] 

</xsl:text>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains($file, 'beast/core')">
|
||||||
|
<xsl:text>['Convenience header: ][^beast/core.hpp]</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
<xsl:when test="contains($file, 'beast/http')">
|
<xsl:when test="contains($file, 'beast/http')">
|
||||||
<xsl:text>['Convenience header: ][^beast/http.hpp]</xsl:text>
|
<xsl:text>['Convenience header: ][^beast/http.hpp]</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
#include "file_body.hpp"
|
#include "file_body.hpp"
|
||||||
#include "http_stream.hpp"
|
#include "http_stream.hpp"
|
||||||
|
|
||||||
#include <beast/placeholders.hpp>
|
#include <beast/core/placeholders.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@@ -20,9 +20,9 @@
|
|||||||
#ifndef BEAST_HTTP_STREAM_H_INCLUDED
|
#ifndef BEAST_HTTP_STREAM_H_INCLUDED
|
||||||
#define BEAST_HTTP_STREAM_H_INCLUDED
|
#define BEAST_HTTP_STREAM_H_INCLUDED
|
||||||
|
|
||||||
|
#include <beast/core/async_completion.hpp>
|
||||||
|
#include <beast/core/basic_streambuf.hpp>
|
||||||
#include <beast/http.hpp>
|
#include <beast/http.hpp>
|
||||||
#include <beast/async_completion.hpp>
|
|
||||||
#include <beast/basic_streambuf.hpp>
|
|
||||||
#include <boost/asio/io_service.hpp>
|
#include <boost/asio/io_service.hpp>
|
||||||
#include <boost/intrusive/list.hpp>
|
#include <boost/intrusive/list.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@@ -234,7 +234,7 @@ public:
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
cancel(ec);
|
cancel(ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Cancel pending operations.
|
/** Cancel pending operations.
|
||||||
@@ -273,7 +273,7 @@ public:
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
read(msg, ec);
|
read(msg, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Read a HTTP message from the stream.
|
/** Read a HTTP message from the stream.
|
||||||
@@ -370,7 +370,7 @@ public:
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
write(msg, ec);
|
write(msg, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Write a HTTP message to the stream.
|
/** Write a HTTP message to the stream.
|
||||||
|
@@ -20,11 +20,11 @@
|
|||||||
#ifndef BEAST_HTTP_STREAM_IPP_INCLUDED
|
#ifndef BEAST_HTTP_STREAM_IPP_INCLUDED
|
||||||
#define BEAST_HTTP_STREAM_IPP_INCLUDED
|
#define BEAST_HTTP_STREAM_IPP_INCLUDED
|
||||||
|
|
||||||
|
#include <beast/core/bind_handler.hpp>
|
||||||
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
#include <beast/http/read.hpp>
|
#include <beast/http/read.hpp>
|
||||||
#include <beast/http/write.hpp>
|
#include <beast/http/write.hpp>
|
||||||
#include <beast/bind_handler.hpp>
|
|
||||||
#include <beast/handler_alloc.hpp>
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <beast/to_string.hpp>
|
#include <beast/core/to_string.hpp>
|
||||||
#include <beast/websocket.hpp>
|
#include <beast/websocket.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@@ -20,11 +20,11 @@
|
|||||||
#ifndef BEAST_TEST_FAIL_STREAM_HPP
|
#ifndef BEAST_TEST_FAIL_STREAM_HPP
|
||||||
#define BEAST_TEST_FAIL_STREAM_HPP
|
#define BEAST_TEST_FAIL_STREAM_HPP
|
||||||
|
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
|
#include <beast/core/detail/get_lowest_layer.hpp>
|
||||||
#include <beast/websocket/teardown.hpp>
|
#include <beast/websocket/teardown.hpp>
|
||||||
#include <beast/detail/get_lowest_layer.hpp>
|
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace test {
|
namespace test {
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_TEST_STRING_STREAM_HPP
|
#ifndef BEAST_TEST_STRING_STREAM_HPP
|
||||||
#define BEAST_TEST_STRING_STREAM_HPP
|
#define BEAST_TEST_STRING_STREAM_HPP
|
||||||
|
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/asio/io_service.hpp>
|
#include <boost/asio/io_service.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -49,7 +49,7 @@ public:
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
auto const n = read_some(buffers, ec);
|
auto const n = read_some(buffers, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ public:
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
auto const n = write_some(buffers, ec);
|
auto const n = write_some(buffers, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,10 +5,11 @@
|
|||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#ifndef BEAST_DETAIL_CONST_CONTAINER_HPP
|
#ifndef BEAST_UNIT_TEST_DETAIL_CONST_CONTAINER_HPP
|
||||||
#define BEAST_DETAIL_CONST_CONTAINER_HPP
|
#define BEAST_UNIT_TEST_DETAIL_CONST_CONTAINER_HPP
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
namespace unit_test {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
/** Adapter to constrain a container interface.
|
/** Adapter to constrain a container interface.
|
||||||
@@ -84,6 +85,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // detail
|
} // detail
|
||||||
|
} // unit_test
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_UNIT_TEST_RESULTS_HPP
|
#ifndef BEAST_UNIT_TEST_RESULTS_HPP
|
||||||
#define BEAST_UNIT_TEST_RESULTS_HPP
|
#define BEAST_UNIT_TEST_RESULTS_HPP
|
||||||
|
|
||||||
#include <beast/detail/const_container.hpp>
|
#include <beast/unit_test/detail/const_container.hpp>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
class tests_t
|
class tests_t
|
||||||
: public beast::detail::const_container <std::vector <test>>
|
: public detail::const_container <std::vector <test>>
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
std::size_t failed_;
|
std::size_t failed_;
|
||||||
@@ -82,7 +82,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class log_t
|
class log_t
|
||||||
: public beast::detail::const_container <std::vector <std::string>>
|
: public detail::const_container <std::vector <std::string>>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/** Insert a string into the log. */
|
/** Insert a string into the log. */
|
||||||
@@ -119,7 +119,7 @@ public:
|
|||||||
|
|
||||||
/** Holds the set of testcase results in a suite. */
|
/** Holds the set of testcase results in a suite. */
|
||||||
class suite_results
|
class suite_results
|
||||||
: public beast::detail::const_container <std::vector <case_results>>
|
: public detail::const_container <std::vector <case_results>>
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
std::string name_;
|
std::string name_;
|
||||||
@@ -178,7 +178,7 @@ public:
|
|||||||
// VFALCO TODO Make this a template class using scoped allocators
|
// VFALCO TODO Make this a template class using scoped allocators
|
||||||
/** Holds the results of running a set of testsuites. */
|
/** Holds the results of running a set of testsuites. */
|
||||||
class results
|
class results
|
||||||
: public beast::detail::const_container <std::vector <suite_results>>
|
: public detail::const_container <std::vector <suite_results>>
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
std::size_t m_cases;
|
std::size_t m_cases;
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#define BEAST_UNIT_TEST_SUITE_LIST_HPP
|
#define BEAST_UNIT_TEST_SUITE_LIST_HPP
|
||||||
|
|
||||||
#include <beast/unit_test/suite_info.hpp>
|
#include <beast/unit_test/suite_info.hpp>
|
||||||
#include <beast/detail/const_container.hpp>
|
#include <beast/unit_test/detail/const_container.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <typeindex>
|
#include <typeindex>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
31
include/beast/core.hpp
Normal file
31
include/beast/core.hpp
Normal file
@@ -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 <beast/core/async_completion.hpp>
|
||||||
|
#include <beast/core/basic_streambuf.hpp>
|
||||||
|
#include <beast/core/bind_handler.hpp>
|
||||||
|
#include <beast/core/buffer_cat.hpp>
|
||||||
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
|
#include <beast/core/buffers_adapter.hpp>
|
||||||
|
#include <beast/core/consuming_buffers.hpp>
|
||||||
|
#include <beast/core/error.hpp>
|
||||||
|
#include <beast/core/handler_alloc.hpp>
|
||||||
|
#include <beast/core/handler_concepts.hpp>
|
||||||
|
#include <beast/core/placeholders.hpp>
|
||||||
|
#include <beast/core/prepare_buffers.hpp>
|
||||||
|
#include <beast/core/static_streambuf.hpp>
|
||||||
|
#include <beast/core/static_string.hpp>
|
||||||
|
#include <beast/core/stream_concepts.hpp>
|
||||||
|
#include <beast/core/streambuf.hpp>
|
||||||
|
#include <beast/core/streambuf_readstream.hpp>
|
||||||
|
#include <beast/core/to_string.hpp>
|
||||||
|
#include <beast/core/write_streambuf.hpp>
|
||||||
|
|
||||||
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_ASYNC_COMPLETION_HPP
|
#ifndef BEAST_ASYNC_COMPLETION_HPP
|
||||||
#define BEAST_ASYNC_COMPLETION_HPP
|
#define BEAST_ASYNC_COMPLETION_HPP
|
||||||
|
|
||||||
#include <beast/handler_concepts.hpp>
|
#include <beast/core/handler_concepts.hpp>
|
||||||
#include <boost/asio/async_result.hpp>
|
#include <boost/asio/async_result.hpp>
|
||||||
#include <boost/asio/handler_type.hpp>
|
#include <boost/asio/handler_type.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_BASIC_STREAMBUF_HPP
|
#ifndef BEAST_BASIC_STREAMBUF_HPP
|
||||||
#define BEAST_BASIC_STREAMBUF_HPP
|
#define BEAST_BASIC_STREAMBUF_HPP
|
||||||
|
|
||||||
#include <beast/detail/empty_base_optimization.hpp>
|
#include <beast/core/detail/empty_base_optimization.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/intrusive/list.hpp>
|
#include <boost/intrusive/list.hpp>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
@@ -298,6 +298,6 @@ operator<<(basic_streambuf<Allocator>& streambuf, T const& t);
|
|||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#include <beast/impl/basic_streambuf.ipp>
|
#include <beast/core/impl/basic_streambuf.ipp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_BIND_HANDLER_HPP
|
#ifndef BEAST_BIND_HANDLER_HPP
|
||||||
#define BEAST_BIND_HANDLER_HPP
|
#define BEAST_BIND_HANDLER_HPP
|
||||||
|
|
||||||
#include <beast/handler_concepts.hpp>
|
#include <beast/core/handler_concepts.hpp>
|
||||||
#include <beast/detail/bind_handler.hpp>
|
#include <beast/core/detail/bind_handler.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_BUFFER_CAT_HPP
|
#ifndef BEAST_BUFFER_CAT_HPP
|
||||||
#define BEAST_BUFFER_CAT_HPP
|
#define BEAST_BUFFER_CAT_HPP
|
||||||
|
|
||||||
#include <beast/detail/buffer_cat.hpp>
|
#include <beast/core/detail/buffer_cat.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iterator>
|
#include <iterator>
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_BUFFER_CONCEPTS_HPP
|
#ifndef BEAST_BUFFER_CONCEPTS_HPP
|
||||||
#define BEAST_BUFFER_CONCEPTS_HPP
|
#define BEAST_BUFFER_CONCEPTS_HPP
|
||||||
|
|
||||||
#include <beast/detail/buffer_concepts.hpp>
|
#include <beast/core/detail/buffer_concepts.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_BUFFERS_ADAPTER_HPP
|
#ifndef BEAST_BUFFERS_ADAPTER_HPP
|
||||||
#define BEAST_BUFFERS_ADAPTER_HPP
|
#define BEAST_BUFFERS_ADAPTER_HPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
@@ -145,6 +145,6 @@ public:
|
|||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#include <beast/impl/buffers_adapter.ipp>
|
#include <beast/core/impl/buffers_adapter.ipp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_CONSUMING_BUFFERS_HPP
|
#ifndef BEAST_CONSUMING_BUFFERS_HPP
|
||||||
#define BEAST_CONSUMING_BUFFERS_HPP
|
#define BEAST_CONSUMING_BUFFERS_HPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
@@ -135,6 +135,6 @@ consumed_buffers(BufferSequence const& buffers, std::size_t n);
|
|||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#include <beast/impl/consuming_buffers.ipp>
|
#include <beast/core/impl/consuming_buffers.ipp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_BIND_DETAIL_HANDLER_HPP
|
#ifndef BEAST_BIND_DETAIL_HANDLER_HPP
|
||||||
#define BEAST_BIND_DETAIL_HANDLER_HPP
|
#define BEAST_BIND_DETAIL_HANDLER_HPP
|
||||||
|
|
||||||
#include <beast/detail/integer_sequence.hpp>
|
#include <beast/core/detail/integer_sequence.hpp>
|
||||||
#include <boost/asio/detail/handler_alloc_helpers.hpp>
|
#include <boost/asio/detail/handler_alloc_helpers.hpp>
|
||||||
#include <boost/asio/detail/handler_cont_helpers.hpp>
|
#include <boost/asio/detail/handler_cont_helpers.hpp>
|
||||||
#include <boost/asio/detail/handler_invoke_helpers.hpp>
|
#include <boost/asio/detail/handler_invoke_helpers.hpp>
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_DETAIL_STREAM_CONCEPTS_HPP
|
#ifndef BEAST_DETAIL_STREAM_CONCEPTS_HPP
|
||||||
#define BEAST_DETAIL_STREAM_CONCEPTS_HPP
|
#define BEAST_DETAIL_STREAM_CONCEPTS_HPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <boost/asio/io_service.hpp>
|
#include <boost/asio/io_service.hpp>
|
||||||
#include <boost/system/error_code.hpp>
|
#include <boost/system/error_code.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_DETAIL_WRITE_STREAMBUF_HPP
|
#ifndef BEAST_DETAIL_WRITE_STREAMBUF_HPP
|
||||||
#define BEAST_DETAIL_WRITE_STREAMBUF_HPP
|
#define BEAST_DETAIL_WRITE_STREAMBUF_HPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <utility>
|
#include <utility>
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_HANDLER_CONCEPTS_HPP
|
#ifndef BEAST_HANDLER_CONCEPTS_HPP
|
||||||
#define BEAST_HANDLER_CONCEPTS_HPP
|
#define BEAST_HANDLER_CONCEPTS_HPP
|
||||||
|
|
||||||
#include <beast/detail/is_call_possible.hpp>
|
#include <beast/core/detail/is_call_possible.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_IMPL_BASIC_STREAMBUF_IPP
|
#ifndef BEAST_IMPL_BASIC_STREAMBUF_IPP
|
||||||
#define BEAST_IMPL_BASIC_STREAMBUF_IPP
|
#define BEAST_IMPL_BASIC_STREAMBUF_IPP
|
||||||
|
|
||||||
#include <beast/detail/write_streambuf.hpp>
|
#include <beast/core/detail/write_streambuf.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <exception>
|
#include <exception>
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
#ifndef BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
||||||
#define BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
#define BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
@@ -8,9 +8,9 @@
|
|||||||
#ifndef BEAST_IMPL_STREAMBUF_READSTREAM_IPP
|
#ifndef BEAST_IMPL_STREAMBUF_READSTREAM_IPP
|
||||||
#define BEAST_IMPL_STREAMBUF_READSTREAM_IPP
|
#define BEAST_IMPL_STREAMBUF_READSTREAM_IPP
|
||||||
|
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
#include <beast/handler_concepts.hpp>
|
#include <beast/core/handler_concepts.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <boost/system/error_code.hpp>
|
#include <boost/system/error_code.hpp>
|
||||||
#include <boost/system/system_error.hpp>
|
#include <boost/system/system_error.hpp>
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ read_some(
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
auto n = read_some(buffers, ec);
|
auto n = read_some(buffers, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
@@ -152,6 +152,6 @@ prepare_buffers(std::size_t n, BufferSequence const& buffers);
|
|||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#include <beast/impl/prepare_buffers.ipp>
|
#include <beast/core/impl/prepare_buffers.ipp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -184,6 +184,6 @@ public:
|
|||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#include <beast/impl/static_streambuf.ipp>
|
#include <beast/core/impl/static_streambuf.ipp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_STREAM_CONCEPTS_HPP
|
#ifndef BEAST_STREAM_CONCEPTS_HPP
|
||||||
#define BEAST_STREAM_CONCEPTS_HPP
|
#define BEAST_STREAM_CONCEPTS_HPP
|
||||||
|
|
||||||
#include <beast/detail/stream_concepts.hpp>
|
#include <beast/core/detail/stream_concepts.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_STREAMBUF_HPP
|
#ifndef BEAST_STREAMBUF_HPP
|
||||||
#define BEAST_STREAMBUF_HPP
|
#define BEAST_STREAMBUF_HPP
|
||||||
|
|
||||||
#include <beast/basic_streambuf.hpp>
|
#include <beast/core/basic_streambuf.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|
@@ -8,11 +8,12 @@
|
|||||||
#ifndef BEAST_STREAMBUF_READSTREAM_HPP
|
#ifndef BEAST_STREAMBUF_READSTREAM_HPP
|
||||||
#define BEAST_STREAMBUF_READSTREAM_HPP
|
#define BEAST_STREAMBUF_READSTREAM_HPP
|
||||||
|
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <beast/stream_concepts.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/stream_concepts.hpp>
|
||||||
#include <beast/detail/get_lowest_layer.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
|
#include <beast/core/detail/get_lowest_layer.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/asio/io_service.hpp>
|
#include <boost/asio/io_service.hpp>
|
||||||
#include <boost/system/error_code.hpp>
|
#include <boost/system/error_code.hpp>
|
||||||
@@ -276,6 +277,6 @@ public:
|
|||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
|
||||||
#include <beast/impl/streambuf_readstream.ipp>
|
#include <beast/core/impl/streambuf_readstream.ipp>
|
||||||
|
|
||||||
#endif
|
#endif
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_TO_STRING_HPP
|
#ifndef BEAST_TO_STRING_HPP
|
||||||
#define BEAST_TO_STRING_HPP
|
#define BEAST_TO_STRING_HPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_WRITE_STREAMBUF_HPP
|
#ifndef BEAST_WRITE_STREAMBUF_HPP
|
||||||
#define BEAST_WRITE_STREAMBUF_HPP
|
#define BEAST_WRITE_STREAMBUF_HPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <beast/detail/write_streambuf.hpp>
|
#include <beast/core/detail/write_streambuf.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_HTTP_BASIC_HEADERS_HPP
|
#ifndef BEAST_HTTP_BASIC_HEADERS_HPP
|
||||||
#define BEAST_HTTP_BASIC_HEADERS_HPP
|
#define BEAST_HTTP_BASIC_HEADERS_HPP
|
||||||
|
|
||||||
#include <beast/detail/ci_char_traits.hpp>
|
#include <beast/core/detail/ci_char_traits.hpp>
|
||||||
#include <beast/detail/empty_base_optimization.hpp>
|
#include <beast/core/detail/empty_base_optimization.hpp>
|
||||||
#include <boost/intrusive/list.hpp>
|
#include <boost/intrusive/list.hpp>
|
||||||
#include <boost/intrusive/set.hpp>
|
#include <boost/intrusive/set.hpp>
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
// Convenience header to include everything
|
// Convenience header to include everything
|
||||||
// needed when declarating a user defined Body type.
|
// needed when declarating a user defined Body type.
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <beast/http/message.hpp>
|
#include <beast/http/message.hpp>
|
||||||
#include <beast/http/resume_context.hpp>
|
#include <beast/http/resume_context.hpp>
|
||||||
#include <boost/logic/tribool.hpp>
|
#include <boost/logic/tribool.hpp>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
#define BEAST_HTTP_EMPTY_BODY_HPP
|
#define BEAST_HTTP_EMPTY_BODY_HPP
|
||||||
|
|
||||||
#include <beast/http/body_type.hpp>
|
#include <beast/http/body_type.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_HTTP_IMPL_BASIC_PARSER_V1_IPP
|
#ifndef BEAST_HTTP_IMPL_BASIC_PARSER_V1_IPP
|
||||||
#define BEAST_HTTP_IMPL_BASIC_PARSER_V1_IPP
|
#define BEAST_HTTP_IMPL_BASIC_PARSER_V1_IPP
|
||||||
|
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace http {
|
namespace http {
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
#define BEAST_HTTP_IMPL_READ_IPP_HPP
|
#define BEAST_HTTP_IMPL_READ_IPP_HPP
|
||||||
|
|
||||||
#include <beast/http/parser_v1.hpp>
|
#include <beast/http/parser_v1.hpp>
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/stream_concepts.hpp>
|
#include <beast/core/stream_concepts.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
@@ -221,7 +221,7 @@ read(SyncReadStream& stream, Streambuf& streambuf,
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
read(stream, streambuf, msg, ec);
|
read(stream, streambuf, msg, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class SyncReadStream, class Streambuf,
|
template<class SyncReadStream, class Streambuf,
|
||||||
|
@@ -11,13 +11,13 @@
|
|||||||
#include <beast/http/resume_context.hpp>
|
#include <beast/http/resume_context.hpp>
|
||||||
#include <beast/http/detail/chunk_encode.hpp>
|
#include <beast/http/detail/chunk_encode.hpp>
|
||||||
#include <beast/http/detail/has_content_length.hpp>
|
#include <beast/http/detail/has_content_length.hpp>
|
||||||
#include <beast/buffer_cat.hpp>
|
#include <beast/core/buffer_cat.hpp>
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/stream_concepts.hpp>
|
#include <beast/core/stream_concepts.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <beast/write_streambuf.hpp>
|
#include <beast/core/write_streambuf.hpp>
|
||||||
#include <boost/asio/write.hpp>
|
#include <boost/asio/write.hpp>
|
||||||
#include <boost/logic/tribool.hpp>
|
#include <boost/logic/tribool.hpp>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
@@ -451,7 +451,7 @@ write(SyncWriteStream& stream,
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
write(stream, msg, ec);
|
write(stream, msg, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class SyncWriteStream,
|
template<class SyncWriteStream,
|
||||||
@@ -575,7 +575,7 @@ public:
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
auto const n = write_some(buffers, ec);
|
auto const n = write_some(buffers, ec);
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -614,7 +614,7 @@ operator<<(std::ostream& os,
|
|||||||
error_code ec;
|
error_code ec;
|
||||||
write(oss, msg, ec);
|
write(oss, msg, ec);
|
||||||
if(ec && ec != boost::asio::error::eof)
|
if(ec && ec != boost::asio::error::eof)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_HTTP_PARSE_ERROR_HPP
|
#ifndef BEAST_HTTP_PARSE_ERROR_HPP
|
||||||
#define BEAST_HTTP_PARSE_ERROR_HPP
|
#define BEAST_HTTP_PARSE_ERROR_HPP
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace http {
|
namespace http {
|
||||||
|
@@ -8,9 +8,9 @@
|
|||||||
#ifndef BEAST_HTTP_PARSER_V1_HPP
|
#ifndef BEAST_HTTP_PARSER_V1_HPP
|
||||||
#define BEAST_HTTP_PARSER_V1_HPP
|
#define BEAST_HTTP_PARSER_V1_HPP
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
|
||||||
#include <beast/http/basic_parser_v1.hpp>
|
#include <beast/http/basic_parser_v1.hpp>
|
||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
|
#include <beast/core/error.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@@ -8,9 +8,9 @@
|
|||||||
#ifndef BEAST_HTTP_READ_HPP
|
#ifndef BEAST_HTTP_READ_HPP
|
||||||
#define BEAST_HTTP_READ_HPP
|
#define BEAST_HTTP_READ_HPP
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
|
||||||
#include <beast/http/parser_v1.hpp>
|
#include <beast/http/parser_v1.hpp>
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/error.hpp>
|
||||||
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/system/error_code.hpp>
|
#include <boost/system/error_code.hpp>
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
#define BEAST_HTTP_STREAMBUF_BODY_HPP
|
#define BEAST_HTTP_STREAMBUF_BODY_HPP
|
||||||
|
|
||||||
#include <beast/http/body_type.hpp>
|
#include <beast/http/body_type.hpp>
|
||||||
#include <beast/buffer_cat.hpp>
|
#include <beast/core/buffer_cat.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
#define BEAST_HTTP_STRING_BODY_HPP
|
#define BEAST_HTTP_STRING_BODY_HPP
|
||||||
|
|
||||||
#include <beast/http/body_type.hpp>
|
#include <beast/http/body_type.hpp>
|
||||||
#include <beast/buffer_cat.hpp>
|
#include <beast/core/buffer_cat.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_HTTP_TYPE_CHECK_HPP
|
#ifndef BEAST_HTTP_TYPE_CHECK_HPP
|
||||||
#define BEAST_HTTP_TYPE_CHECK_HPP
|
#define BEAST_HTTP_TYPE_CHECK_HPP
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@@ -8,10 +8,9 @@
|
|||||||
#ifndef BEAST_HTTP_WRITE_HPP
|
#ifndef BEAST_HTTP_WRITE_HPP
|
||||||
#define BEAST_HTTP_WRITE_HPP
|
#define BEAST_HTTP_WRITE_HPP
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
|
||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <boost/system/error_code.hpp>
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
#include <beast/websocket/rfc6455.hpp>
|
#include <beast/websocket/rfc6455.hpp>
|
||||||
#include <beast/websocket/detail/endian.hpp>
|
#include <beast/websocket/detail/endian.hpp>
|
||||||
#include <beast/websocket/detail/utf8_checker.hpp>
|
#include <beast/websocket/detail/utf8_checker.hpp>
|
||||||
#include <beast/consuming_buffers.hpp>
|
#include <beast/core/consuming_buffers.hpp>
|
||||||
#include <beast/static_streambuf.hpp>
|
#include <beast/core/static_streambuf.hpp>
|
||||||
#include <beast/static_string.hpp>
|
#include <beast/core/static_string.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/endian/buffers.hpp>
|
#include <boost/endian/buffers.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
|
#ifndef BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
|
||||||
#define BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
|
#define BEAST_WEBSOCKET_DETAIL_HYBI13_HPP
|
||||||
|
|
||||||
#include <beast/detail/base64.hpp>
|
#include <beast/core/detail/base64.hpp>
|
||||||
#include <beast/detail/sha1.hpp>
|
#include <beast/core/detail/sha1.hpp>
|
||||||
#include <boost/utility/string_ref.hpp>
|
#include <boost/utility/string_ref.hpp>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@@ -15,10 +15,10 @@
|
|||||||
#include <beast/websocket/detail/invokable.hpp>
|
#include <beast/websocket/detail/invokable.hpp>
|
||||||
#include <beast/websocket/detail/mask.hpp>
|
#include <beast/websocket/detail/mask.hpp>
|
||||||
#include <beast/websocket/detail/utf8_checker.hpp>
|
#include <beast/websocket/detail/utf8_checker.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
|
||||||
#include <beast/http/empty_body.hpp>
|
#include <beast/http/empty_body.hpp>
|
||||||
#include <beast/http/message.hpp>
|
#include <beast/http/message.hpp>
|
||||||
#include <beast/http/string_body.hpp>
|
#include <beast/http/string_body.hpp>
|
||||||
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <boost/asio/error.hpp>
|
#include <boost/asio/error.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@@ -36,7 +36,7 @@ void
|
|||||||
maybe_throw(error_code const& ec, String const&)
|
maybe_throw(error_code const& ec, String const&)
|
||||||
{
|
{
|
||||||
if(ec)
|
if(ec)
|
||||||
throw boost::system::system_error{ec};
|
throw system_error{ec};
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class UInt>
|
template<class UInt>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_ERROR_HPP
|
#ifndef BEAST_WEBSOCKET_ERROR_HPP
|
||||||
#define BEAST_WEBSOCKET_ERROR_HPP
|
#define BEAST_WEBSOCKET_ERROR_HPP
|
||||||
|
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace websocket {
|
namespace websocket {
|
||||||
|
@@ -12,8 +12,8 @@
|
|||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
#include <beast/http/parser_v1.hpp>
|
#include <beast/http/parser_v1.hpp>
|
||||||
#include <beast/http/read.hpp>
|
#include <beast/http/read.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/prepare_buffers.hpp>
|
#include <beast/core/prepare_buffers.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_CLOSE_OP_HPP
|
#ifndef BEAST_WEBSOCKET_IMPL_CLOSE_OP_HPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_CLOSE_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_CLOSE_OP_HPP
|
||||||
|
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/static_streambuf.hpp>
|
#include <beast/core/static_streambuf.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
@@ -8,11 +8,11 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_HANDSHAKE_OP_HPP
|
#ifndef BEAST_WEBSOCKET_IMPL_HANDSHAKE_OP_HPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_HANDSHAKE_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_HANDSHAKE_OP_HPP
|
||||||
|
|
||||||
#include <beast/handler_alloc.hpp>
|
|
||||||
#include <beast/http/empty_body.hpp>
|
#include <beast/http/empty_body.hpp>
|
||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
#include <beast/http/read.hpp>
|
#include <beast/http/read.hpp>
|
||||||
#include <beast/http/write.hpp>
|
#include <beast/http/write.hpp>
|
||||||
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
@@ -9,9 +9,9 @@
|
|||||||
#define BEAST_WEBSOCKET_IMPL_READ_FRAME_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_READ_FRAME_OP_HPP
|
||||||
|
|
||||||
#include <beast/websocket/teardown.hpp>
|
#include <beast/websocket/teardown.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/prepare_buffers.hpp>
|
#include <beast/core/prepare_buffers.hpp>
|
||||||
#include <beast/static_streambuf.hpp>
|
#include <beast/core/static_streambuf.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_READ_OP_HPP
|
#ifndef BEAST_WEBSOCKET_IMPL_READ_OP_HPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_READ_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_READ_OP_HPP
|
||||||
|
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
@@ -8,10 +8,10 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_RESPONSE_OP_HPP
|
#ifndef BEAST_WEBSOCKET_IMPL_RESPONSE_OP_HPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_RESPONSE_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_RESPONSE_OP_HPP
|
||||||
|
|
||||||
#include <beast/handler_alloc.hpp>
|
|
||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
#include <beast/http/string_body.hpp>
|
#include <beast/http/string_body.hpp>
|
||||||
#include <beast/http/write.hpp>
|
#include <beast/http/write.hpp>
|
||||||
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_SSL_IPP_INCLUDED
|
#ifndef BEAST_WEBSOCKET_IMPL_SSL_IPP_INCLUDED
|
||||||
#define BEAST_WEBSOCKET_IMPL_SSL_IPP_INCLUDED
|
#define BEAST_WEBSOCKET_IMPL_SSL_IPP_INCLUDED
|
||||||
|
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <beast/handler_concepts.hpp>
|
#include <beast/core/handler_concepts.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace websocket {
|
namespace websocket {
|
||||||
|
@@ -22,13 +22,13 @@
|
|||||||
#include <beast/http/write.hpp>
|
#include <beast/http/write.hpp>
|
||||||
#include <beast/http/reason.hpp>
|
#include <beast/http/reason.hpp>
|
||||||
#include <beast/http/rfc2616.hpp>
|
#include <beast/http/rfc2616.hpp>
|
||||||
#include <beast/buffer_cat.hpp>
|
#include <beast/core/buffer_cat.hpp>
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
#include <beast/consuming_buffers.hpp>
|
#include <beast/core/consuming_buffers.hpp>
|
||||||
#include <beast/prepare_buffers.hpp>
|
#include <beast/core/prepare_buffers.hpp>
|
||||||
#include <beast/static_streambuf.hpp>
|
#include <beast/core/static_streambuf.hpp>
|
||||||
#include <beast/stream_concepts.hpp>
|
#include <beast/core/stream_concepts.hpp>
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <boost/endian/buffers.hpp>
|
#include <boost/endian/buffers.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@@ -8,8 +8,8 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_TEARDOWN_IPP
|
#ifndef BEAST_WEBSOCKET_IMPL_TEARDOWN_IPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_TEARDOWN_IPP
|
#define BEAST_WEBSOCKET_IMPL_TEARDOWN_IPP
|
||||||
|
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <beast/handler_concepts.hpp>
|
#include <beast/core/handler_concepts.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
@@ -8,11 +8,11 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_WRITE_FRAME_OP_HPP
|
#ifndef BEAST_WEBSOCKET_IMPL_WRITE_FRAME_OP_HPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_WRITE_FRAME_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_WRITE_FRAME_OP_HPP
|
||||||
|
|
||||||
#include <beast/buffer_cat.hpp>
|
#include <beast/core/buffer_cat.hpp>
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
#include <beast/consuming_buffers.hpp>
|
#include <beast/core/consuming_buffers.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/static_streambuf.hpp>
|
#include <beast/core/static_streambuf.hpp>
|
||||||
#include <beast/websocket/detail/frame.hpp>
|
#include <beast/websocket/detail/frame.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@@ -8,9 +8,9 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_IMPL_WRITE_OP_HPP
|
#ifndef BEAST_WEBSOCKET_IMPL_WRITE_OP_HPP
|
||||||
#define BEAST_WEBSOCKET_IMPL_WRITE_OP_HPP
|
#define BEAST_WEBSOCKET_IMPL_WRITE_OP_HPP
|
||||||
|
|
||||||
#include <beast/consuming_buffers.hpp>
|
#include <beast/core/consuming_buffers.hpp>
|
||||||
#include <beast/prepare_buffers.hpp>
|
#include <beast/core/prepare_buffers.hpp>
|
||||||
#include <beast/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/websocket/detail/frame.hpp>
|
#include <beast/websocket/detail/frame.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#ifndef BEAST_WEBSOCKET_RFC6455_HPP
|
#ifndef BEAST_WEBSOCKET_RFC6455_HPP
|
||||||
#define BEAST_WEBSOCKET_RFC6455_HPP
|
#define BEAST_WEBSOCKET_RFC6455_HPP
|
||||||
|
|
||||||
#include <beast/static_string.hpp>
|
#include <beast/core/static_string.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
@@ -12,9 +12,9 @@
|
|||||||
#include <beast/websocket/detail/stream_base.hpp>
|
#include <beast/websocket/detail/stream_base.hpp>
|
||||||
#include <beast/http/message_v1.hpp>
|
#include <beast/http/message_v1.hpp>
|
||||||
#include <beast/http/string_body.hpp>
|
#include <beast/http/string_body.hpp>
|
||||||
#include <beast/streambuf_readstream.hpp>
|
#include <beast/core/streambuf_readstream.hpp>
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/async_completion.hpp>
|
||||||
#include <beast/detail/get_lowest_layer.hpp>
|
#include <beast/core/detail/get_lowest_layer.hpp>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include <boost/utility/string_ref.hpp>
|
#include <boost/utility/string_ref.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@@ -4,34 +4,13 @@ GroupSources(extras/beast beast)
|
|||||||
GroupSources(include/beast beast)
|
GroupSources(include/beast beast)
|
||||||
GroupSources(test "/")
|
GroupSources(test "/")
|
||||||
|
|
||||||
add_executable (core-tests
|
add_executable (lib-tests
|
||||||
${BEAST_INCLUDES}
|
${BEAST_INCLUDES}
|
||||||
../extras/beast/unit_test/main.cpp
|
../extras/beast/unit_test/main.cpp
|
||||||
async_completion.cpp
|
core.cpp
|
||||||
basic_streambuf.cpp
|
|
||||||
bind_handler.cpp
|
|
||||||
buffer_cat.cpp
|
|
||||||
buffer_concepts.cpp
|
|
||||||
buffers_adapter.cpp
|
|
||||||
consuming_buffers.cpp
|
|
||||||
error.cpp
|
|
||||||
handler_alloc.cpp
|
|
||||||
handler_concepts.cpp
|
|
||||||
http.cpp
|
http.cpp
|
||||||
placeholders.cpp
|
|
||||||
prepare_buffers.cpp
|
|
||||||
static_streambuf.cpp
|
|
||||||
static_string.cpp
|
|
||||||
stream_concepts.cpp
|
|
||||||
streambuf.cpp
|
|
||||||
streambuf_readstream.cpp
|
|
||||||
to_string.cpp
|
|
||||||
version.cpp
|
version.cpp
|
||||||
websocket.cpp
|
websocket.cpp
|
||||||
write_streambuf.cpp
|
|
||||||
detail/base64.cpp
|
|
||||||
detail/empty_base_optimization.cpp
|
|
||||||
detail/sha1.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
|
53
test/Jamfile
53
test/Jamfile
@@ -7,33 +7,35 @@
|
|||||||
|
|
||||||
import os ;
|
import os ;
|
||||||
|
|
||||||
|
compile core.cpp : : ;
|
||||||
|
compile http.cpp : : ;
|
||||||
|
compile version.cpp : : ;
|
||||||
|
compile websocket.cpp : : ;
|
||||||
|
|
||||||
unit-test core-tests :
|
unit-test core-tests :
|
||||||
../extras/beast/unit_test/main.cpp
|
../extras/beast/unit_test/main.cpp
|
||||||
async_completion.cpp
|
core/async_completion.cpp
|
||||||
basic_streambuf.cpp
|
core/basic_streambuf.cpp
|
||||||
bind_handler.cpp
|
core/bind_handler.cpp
|
||||||
buffer_cat.cpp
|
core/buffer_cat.cpp
|
||||||
buffer_concepts.cpp
|
core/buffer_concepts.cpp
|
||||||
buffers_adapter.cpp
|
core/buffers_adapter.cpp
|
||||||
consuming_buffers.cpp
|
core/consuming_buffers.cpp
|
||||||
error.cpp
|
core/error.cpp
|
||||||
handler_alloc.cpp
|
core/handler_alloc.cpp
|
||||||
handler_concepts.cpp
|
core/handler_concepts.cpp
|
||||||
http.cpp
|
core/placeholders.cpp
|
||||||
placeholders.cpp
|
core/prepare_buffers.cpp
|
||||||
prepare_buffers.cpp
|
core/static_streambuf.cpp
|
||||||
static_streambuf.cpp
|
core/static_string.cpp
|
||||||
static_string.cpp
|
core/stream_concepts.cpp
|
||||||
stream_concepts.cpp
|
core/streambuf.cpp
|
||||||
streambuf.cpp
|
core/streambuf_readstream.cpp
|
||||||
streambuf_readstream.cpp
|
core/to_string.cpp
|
||||||
to_string.cpp
|
core/write_streambuf.cpp
|
||||||
version.cpp
|
core/detail/base64.cpp
|
||||||
websocket.cpp
|
core/detail/empty_base_optimization.cpp
|
||||||
write_streambuf.cpp
|
core/detail/sha1.cpp
|
||||||
detail/base64.cpp
|
|
||||||
detail/empty_base_optimization.cpp
|
|
||||||
detail/sha1.cpp
|
|
||||||
;
|
;
|
||||||
|
|
||||||
unit-test http-tests :
|
unit-test http-tests :
|
||||||
@@ -80,4 +82,3 @@ unit-test websocket-tests :
|
|||||||
exe websocket-echo :
|
exe websocket-echo :
|
||||||
websocket/websocket_echo.cpp
|
websocket/websocket_echo.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
|
9
test/core.cpp
Normal file
9
test/core.cpp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
//
|
||||||
|
// 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)
|
||||||
|
//
|
||||||
|
|
||||||
|
// Test that header file is self-contained.
|
||||||
|
#include <beast/core.hpp>
|
36
test/core/CMakeLists.txt
Normal file
36
test/core/CMakeLists.txt
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Part of Beast
|
||||||
|
|
||||||
|
GroupSources(extras/beast beast)
|
||||||
|
GroupSources(include/beast beast)
|
||||||
|
GroupSources(test/core "/")
|
||||||
|
|
||||||
|
add_executable (core-tests
|
||||||
|
${BEAST_INCLUDES}
|
||||||
|
../../extras/beast/unit_test/main.cpp
|
||||||
|
async_completion.cpp
|
||||||
|
basic_streambuf.cpp
|
||||||
|
bind_handler.cpp
|
||||||
|
buffer_cat.cpp
|
||||||
|
buffer_concepts.cpp
|
||||||
|
buffers_adapter.cpp
|
||||||
|
consuming_buffers.cpp
|
||||||
|
error.cpp
|
||||||
|
handler_alloc.cpp
|
||||||
|
handler_concepts.cpp
|
||||||
|
placeholders.cpp
|
||||||
|
prepare_buffers.cpp
|
||||||
|
static_streambuf.cpp
|
||||||
|
static_string.cpp
|
||||||
|
stream_concepts.cpp
|
||||||
|
streambuf.cpp
|
||||||
|
streambuf_readstream.cpp
|
||||||
|
to_string.cpp
|
||||||
|
write_streambuf.cpp
|
||||||
|
detail/base64.cpp
|
||||||
|
detail/empty_base_optimization.cpp
|
||||||
|
detail/sha1.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
if (NOT WIN32)
|
||||||
|
target_link_libraries(core-tests ${Boost_LIBRARIES})
|
||||||
|
endif()
|
@@ -6,4 +6,4 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/async_completion.hpp>
|
#include <beast/core/async_completion.hpp>
|
@@ -6,10 +6,10 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/basic_streambuf.hpp>
|
#include <beast/core/basic_streambuf.hpp>
|
||||||
|
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <beast/to_string.hpp>
|
#include <beast/core/to_string.hpp>
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/bind_handler.hpp>
|
#include <beast/core/bind_handler.hpp>
|
||||||
|
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <functional>
|
#include <functional>
|
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/buffer_cat.hpp>
|
#include <beast/core/buffer_cat.hpp>
|
||||||
|
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/buffer_concepts.hpp>
|
#include <beast/core/buffer_concepts.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|
@@ -6,9 +6,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/buffers_adapter.hpp>
|
#include <beast/core/buffers_adapter.hpp>
|
||||||
|
|
||||||
#include <beast/streambuf.hpp>
|
#include <beast/core/streambuf.hpp>
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#include <boost/asio/streambuf.hpp>
|
#include <boost/asio/streambuf.hpp>
|
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/consuming_buffers.hpp>
|
#include <beast/core/consuming_buffers.hpp>
|
||||||
|
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
@@ -5,7 +5,9 @@
|
|||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <beast/detail/base64.hpp>
|
// Test that header file is self-contained.
|
||||||
|
#include <beast/core/detail/base64.hpp>
|
||||||
|
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
@@ -5,7 +5,9 @@
|
|||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <beast/detail/empty_base_optimization.hpp>
|
// Test that header file is self-contained.
|
||||||
|
#include <beast/core/detail/empty_base_optimization.hpp>
|
||||||
|
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
@@ -5,7 +5,7 @@
|
|||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <beast/detail/sha1.hpp>
|
#include <beast/core/detail/sha1.hpp>
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
@@ -6,4 +6,4 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/error.hpp>
|
#include <beast/core/error.hpp>
|
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/to_string.hpp>
|
#include <beast/core/to_string.hpp>
|
||||||
|
|
||||||
#include <beast/unit_test/suite.hpp>
|
#include <beast/unit_test/suite.hpp>
|
||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
@@ -6,7 +6,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// Test that header file is self-contained.
|
// Test that header file is self-contained.
|
||||||
#include <beast/handler_concepts.hpp>
|
#include <beast/core/handler_concepts.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user