Tidy up core sources:

The core headers are moved to their own directory (but remain in
the same namespace).
This commit is contained in:
Vinnie Falco
2016-05-10 13:41:28 -04:00
parent 2893f8c82a
commit e0956c36c1
120 changed files with 299 additions and 233 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#ifndef 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 http {
+4 -4
View File
@@ -9,9 +9,9 @@
#define BEAST_HTTP_IMPL_READ_IPP_HPP
#include <beast/http/parser_v1.hpp>
#include <beast/bind_handler.hpp>
#include <beast/handler_alloc.hpp>
#include <beast/stream_concepts.hpp>
#include <beast/core/bind_handler.hpp>
#include <beast/core/handler_alloc.hpp>
#include <beast/core/stream_concepts.hpp>
#include <cassert>
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<class SyncReadStream, class Streambuf,
+10 -10
View File
@@ -11,13 +11,13 @@
#include <beast/http/resume_context.hpp>
#include <beast/http/detail/chunk_encode.hpp>
#include <beast/http/detail/has_content_length.hpp>
#include <beast/buffer_cat.hpp>
#include <beast/bind_handler.hpp>
#include <beast/buffer_concepts.hpp>
#include <beast/handler_alloc.hpp>
#include <beast/stream_concepts.hpp>
#include <beast/streambuf.hpp>
#include <beast/write_streambuf.hpp>
#include <beast/core/buffer_cat.hpp>
#include <beast/core/bind_handler.hpp>
#include <beast/core/buffer_concepts.hpp>
#include <beast/core/handler_alloc.hpp>
#include <beast/core/stream_concepts.hpp>
#include <beast/core/streambuf.hpp>
#include <beast/core/write_streambuf.hpp>
#include <boost/asio/write.hpp>
#include <boost/logic/tribool.hpp>
#include <condition_variable>
@@ -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<class SyncWriteStream,
@@ -575,7 +575,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;
}
@@ -614,7 +614,7 @@ operator<<(std::ostream& os,
error_code ec;
write(oss, msg, ec);
if(ec && ec != boost::asio::error::eof)
throw boost::system::system_error{ec};
throw system_error{ec};
return os;
}