forked from boostorg/beast
Boost prep
This commit is contained in:
1 parent
3777cb8b9c
commit
7139dd639a
375 files changed
+5253
-3884
No files matched your search
@@ -1,19 +0,0 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
|
||||
#ifndef BEAST_HPP
|
||||
#define BEAST_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
|
||||
#include <beast/core.hpp>
|
||||
#include <beast/http.hpp>
|
||||
#include <beast/version.hpp>
|
||||
#include <beast/websocket.hpp>
|
||||
#include <beast/zlib.hpp>
|
||||
|
||||
#endif
|
||||
@@ -1,40 +0,0 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_HPP
|
||||
#define BEAST_CORE_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
|
||||
#include <beast/core/async_result.hpp>
|
||||
#include <beast/core/bind_handler.hpp>
|
||||
#include <beast/core/buffer_cat.hpp>
|
||||
#include <beast/core/buffer_prefix.hpp>
|
||||
#include <beast/core/buffered_read_stream.hpp>
|
||||
#include <beast/core/buffers_adapter.hpp>
|
||||
#include <beast/core/consuming_buffers.hpp>
|
||||
#include <beast/core/drain_buffer.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/file.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <beast/core/file_posix.hpp>
|
||||
#include <beast/core/file_stdio.hpp>
|
||||
#include <beast/core/file_win32.hpp>
|
||||
#include <beast/core/flat_buffer.hpp>
|
||||
#include <beast/core/handler_alloc.hpp>
|
||||
#include <beast/core/handler_ptr.hpp>
|
||||
#include <beast/core/multi_buffer.hpp>
|
||||
#include <beast/core/ostream.hpp>
|
||||
#include <beast/core/read_size.hpp>
|
||||
#include <beast/core/span.hpp>
|
||||
#include <beast/core/flat_static_buffer.hpp>
|
||||
#include <beast/core/static_string.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/string_param.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
|
||||
#endif
|
||||
@@ -1,36 +0,0 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_HPP
|
||||
#define BEAST_HTTP_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
|
||||
#include <beast/http/basic_dynamic_body.hpp>
|
||||
#include <beast/http/basic_parser.hpp>
|
||||
#include <beast/http/buffer_body.hpp>
|
||||
#include <beast/http/chunk_encode.hpp>
|
||||
#include <beast/http/dynamic_body.hpp>
|
||||
#include <beast/http/empty_body.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/field.hpp>
|
||||
#include <beast/http/fields.hpp>
|
||||
#include <beast/http/file_body.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <beast/http/parser.hpp>
|
||||
#include <beast/http/read.hpp>
|
||||
#include <beast/http/rfc7230.hpp>
|
||||
#include <beast/http/serializer.hpp>
|
||||
#include <beast/http/span_body.hpp>
|
||||
#include <beast/http/status.hpp>
|
||||
#include <beast/http/string_body.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <beast/http/vector_body.hpp>
|
||||
#include <beast/http/verb.hpp>
|
||||
#include <beast/http/write.hpp>
|
||||
|
||||
#endif
|
||||
@@ -1,26 +0,0 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
|
||||
#ifndef BEAST_VERSION_HPP
|
||||
#define BEAST_VERSION_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
/** @def BEAST_API_VERSION
|
||||
|
||||
Identifies the API version of Beast.
|
||||
|
||||
This is a simple integer that is incremented by one every time
|
||||
a set of code changes is merged to the master or develop branch.
|
||||
*/
|
||||
#define BEAST_VERSION 85
|
||||
|
||||
#define BEAST_VERSION_STRING "Beast/" BOOST_STRINGIZE(BEAST_VERSION)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
|
||||
#ifndef BEAST_WEBSOCKET_HPP
|
||||
#define BEAST_WEBSOCKET_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
|
||||
#include <beast/websocket/error.hpp>
|
||||
#include <beast/websocket/option.hpp>
|
||||
#include <beast/websocket/rfc6455.hpp>
|
||||
#include <beast/websocket/stream.hpp>
|
||||
#include <beast/websocket/teardown.hpp>
|
||||
|
||||
#endif
|
||||
@@ -1,18 +0,0 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
|
||||
#ifndef BEAST_ZLIB_HPP
|
||||
#define BEAST_ZLIB_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
|
||||
#include <beast/zlib/deflate_stream.hpp>
|
||||
#include <beast/zlib/error.hpp>
|
||||
#include <beast/zlib/inflate_stream.hpp>
|
||||
#include <beast/zlib/zlib.hpp>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BOOST_BEAST_HPP
|
||||
#define BOOST_BEAST_HPP
|
||||
|
||||
#include <boost/beast/config.hpp> // must come first
|
||||
|
||||
#include <boost/beast/core.hpp>
|
||||
#include <boost/beast/http.hpp>
|
||||
#include <boost/beast/version.hpp>
|
||||
#include <boost/beast/websocket.hpp>
|
||||
#include <boost/beast/zlib.hpp>
|
||||
|
||||
#endif
|
||||
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CONFIG_HPP
|
||||
#define BEAST_CONFIG_HPP
|
||||
#ifndef BOOST_BEAST_CONFIG_HPP
|
||||
#define BOOST_BEAST_CONFIG_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BOOST_BEAST_CORE_HPP
|
||||
#define BOOST_BEAST_CORE_HPP
|
||||
|
||||
#include <boost/beast/config.hpp>
|
||||
|
||||
#include <boost/beast/core/async_result.hpp>
|
||||
#include <boost/beast/core/bind_handler.hpp>
|
||||
#include <boost/beast/core/buffer_cat.hpp>
|
||||
#include <boost/beast/core/buffer_prefix.hpp>
|
||||
#include <boost/beast/core/buffered_read_stream.hpp>
|
||||
#include <boost/beast/core/buffers_adapter.hpp>
|
||||
#include <boost/beast/core/consuming_buffers.hpp>
|
||||
#include <boost/beast/core/drain_buffer.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/file.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <boost/beast/core/file_posix.hpp>
|
||||
#include <boost/beast/core/file_stdio.hpp>
|
||||
#include <boost/beast/core/file_win32.hpp>
|
||||
#include <boost/beast/core/flat_buffer.hpp>
|
||||
#include <boost/beast/core/handler_alloc.hpp>
|
||||
#include <boost/beast/core/handler_ptr.hpp>
|
||||
#include <boost/beast/core/multi_buffer.hpp>
|
||||
#include <boost/beast/core/ostream.hpp>
|
||||
#include <boost/beast/core/read_size.hpp>
|
||||
#include <boost/beast/core/span.hpp>
|
||||
#include <boost/beast/core/flat_static_buffer.hpp>
|
||||
#include <boost/beast/core/static_string.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/string_param.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_ASYNC_COMPLETION_HPP
|
||||
#define BEAST_ASYNC_COMPLETION_HPP
|
||||
#ifndef BOOST_BEAST_ASYNC_COMPLETION_HPP
|
||||
#define BOOST_BEAST_ASYNC_COMPLETION_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/asio/async_result.hpp>
|
||||
#include <boost/asio/handler_type.hpp>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** An interface for customising the behaviour of an asynchronous initiation function.
|
||||
@@ -201,5 +204,6 @@ using async_return_type = typename beast::async_result<
|
||||
Signature>::return_type;
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_BIND_HANDLER_HPP
|
||||
#define BEAST_BIND_HANDLER_HPP
|
||||
#ifndef BOOST_BEAST_BIND_HANDLER_HPP
|
||||
#define BOOST_BEAST_BIND_HANDLER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/bind_handler.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/bind_handler.hpp>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** Bind parameters to a completion handler, creating a new handler.
|
||||
@@ -52,7 +55,7 @@ namespace beast {
|
||||
arguments are forwarded into the returned object.
|
||||
*/
|
||||
template<class Handler, class... Args>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
implementation_defined
|
||||
#else
|
||||
detail::bound_handler<
|
||||
@@ -71,5 +74,6 @@ bind_handler(Handler&& handler, Args&&... args)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_BUFFER_CAT_HPP
|
||||
#define BEAST_BUFFER_CAT_HPP
|
||||
#ifndef BOOST_BEAST_BUFFER_CAT_HPP
|
||||
#define BOOST_BEAST_BUFFER_CAT_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <tuple>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A buffer sequence representing a concatenation of buffer sequences.
|
||||
@@ -30,7 +33,7 @@ public:
|
||||
then `value_type` will be `boost::asio::mutable_buffer`.
|
||||
Otherwise, `value_type` will be `boost::asio::const_buffer`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using value_type = implementation_defined;
|
||||
#else
|
||||
using value_type = typename
|
||||
@@ -91,7 +94,7 @@ public:
|
||||
|
||||
@see @ref buffer_cat_view
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class... BufferSequence>
|
||||
buffer_cat_view<BufferSequence...>
|
||||
buffer_cat(BufferSequence const&... buffers)
|
||||
@@ -109,7 +112,8 @@ buffer_cat(B1 const& b1, B2 const& b2, Bn const&... bn)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/buffer_cat.ipp>
|
||||
#include <boost/beast/core/impl/buffer_cat.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_BUFFER_PREFIX_HPP
|
||||
#define BEAST_BUFFER_PREFIX_HPP
|
||||
#ifndef BOOST_BEAST_BUFFER_PREFIX_HPP
|
||||
#define BOOST_BEAST_BUFFER_PREFIX_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/in_place_init.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/in_place_init.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A buffer sequence adapter that shortens the sequence size.
|
||||
@@ -59,7 +62,7 @@ public:
|
||||
boost::asio::mutable_buffer,
|
||||
boost::asio::const_buffer>::type;
|
||||
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/// A bidirectional iterator type that may be used to read elements.
|
||||
using const_iterator = implementation_defined;
|
||||
|
||||
@@ -186,7 +189,7 @@ buffer_prefix(std::size_t size,
|
||||
not transferred.
|
||||
*/
|
||||
template<class BufferSequence>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
buffer_prefix_view<BufferSequence>
|
||||
#else
|
||||
inline
|
||||
@@ -230,7 +233,8 @@ buffer_front(BufferSequence const& buffers)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/buffer_prefix.ipp>
|
||||
#include <boost/beast/core/impl/buffer_prefix.ipp>
|
||||
|
||||
#endif
|
||||
+14
-10
@@ -4,20 +4,23 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_BUFFERED_READ_STREAM_HPP
|
||||
#define BEAST_BUFFERED_READ_STREAM_HPP
|
||||
#ifndef BOOST_BEAST_BUFFERED_READ_STREAM_HPP
|
||||
#define BOOST_BEAST_BUFFERED_READ_STREAM_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/async_result.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/multi_buffer.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/async_result.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/multi_buffer.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/asio/io_service.hpp>
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A @b Stream with attached @b DynamicBuffer to buffer reads.
|
||||
@@ -265,7 +268,7 @@ public:
|
||||
manner equivalent to using `boost::asio::io_service::post`.
|
||||
*/
|
||||
template<class MutableBufferSequence, class ReadHandler>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
void_or_deduced
|
||||
#else
|
||||
async_return_type<ReadHandler, void(error_code)>
|
||||
@@ -340,7 +343,7 @@ public:
|
||||
manner equivalent to using `boost::asio::io_service::post`.
|
||||
*/
|
||||
template<class ConstBufferSequence, class WriteHandler>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
void_or_deduced
|
||||
#else
|
||||
async_return_type<WriteHandler, void(error_code)>
|
||||
@@ -350,7 +353,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/buffered_read_stream.ipp>
|
||||
#include <boost/beast/core/impl/buffered_read_stream.ipp>
|
||||
|
||||
#endif
|
||||
+10
-6
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_BUFFERS_ADAPTER_HPP
|
||||
#define BEAST_BUFFERS_ADAPTER_HPP
|
||||
#ifndef BOOST_BEAST_BUFFERS_ADAPTER_HPP
|
||||
#define BOOST_BEAST_BUFFERS_ADAPTER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** Adapts a @b MutableBufferSequence into a @b DynamicBuffer.
|
||||
@@ -64,7 +67,7 @@ class buffers_adapter
|
||||
}
|
||||
|
||||
public:
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/// The type used to represent the input sequence as a list of buffers.
|
||||
using const_buffers_type = implementation_defined;
|
||||
|
||||
@@ -152,7 +155,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/buffers_adapter.ipp>
|
||||
#include <boost/beast/core/impl/buffers_adapter.ipp>
|
||||
|
||||
#endif
|
||||
+11
-7
@@ -4,12 +4,14 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CONSUMING_BUFFERS_HPP
|
||||
#define BEAST_CONSUMING_BUFFERS_HPP
|
||||
#ifndef BOOST_BEAST_CONSUMING_BUFFERS_HPP
|
||||
#define BOOST_BEAST_CONSUMING_BUFFERS_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/detail/in_place_init.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/detail/in_place_init.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <cstdint>
|
||||
@@ -17,6 +19,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** Adapter to trim the front of a `BufferSequence`.
|
||||
@@ -62,7 +65,7 @@ public:
|
||||
`boost::asio::mutable_buffer`, else this type will be
|
||||
`boost::asio::const_buffer`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using value_type = implementation_defined;
|
||||
#else
|
||||
using value_type = typename std::conditional<
|
||||
@@ -73,7 +76,7 @@ public:
|
||||
boost::asio::const_buffer>::type;
|
||||
#endif
|
||||
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/// A bidirectional iterator type that may be used to read elements.
|
||||
using const_iterator = implementation_defined;
|
||||
|
||||
@@ -141,7 +144,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/consuming_buffers.ipp>
|
||||
#include <boost/beast/core/impl/consuming_buffers.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,6 +4,8 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
/*
|
||||
Portions from http://www.adp-gmbh.ch/cpp/common/base64.html
|
||||
@@ -35,13 +37,14 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifndef BEAST_DETAIL_BASE64_HPP
|
||||
#define BEAST_DETAIL_BASE64_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_BASE64_HPP
|
||||
#define BOOST_BEAST_DETAIL_BASE64_HPP
|
||||
|
||||
#include <cctype>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -243,5 +246,6 @@ base64_decode(std::string const& data)
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+8
-4
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_BIND_DETAIL_HANDLER_HPP
|
||||
#define BEAST_BIND_DETAIL_HANDLER_HPP
|
||||
#ifndef BOOST_BEAST_BIND_DETAIL_HANDLER_HPP
|
||||
#define BOOST_BEAST_BIND_DETAIL_HANDLER_HPP
|
||||
|
||||
#include <beast/core/detail/integer_sequence.hpp>
|
||||
#include <boost/beast/core/detail/integer_sequence.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
#include <boost/asio/handler_invoke_hook.hpp>
|
||||
@@ -16,6 +18,7 @@
|
||||
#include <functional>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -170,11 +173,12 @@ public:
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
namespace std {
|
||||
template<class Handler, class... Args>
|
||||
void
|
||||
bind(beast::detail::bound_handler<
|
||||
bind(boost::beast::detail::bound_handler<
|
||||
Handler, Args...>, ...) = delete;
|
||||
} // std
|
||||
|
||||
+7
-3
@@ -4,12 +4,15 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_BUFFERS_REF_HPP
|
||||
#define BEAST_DETAIL_BUFFERS_REF_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_BUFFERS_REF_HPP
|
||||
#define BOOST_BEAST_DETAIL_BUFFERS_REF_HPP
|
||||
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -58,5 +61,6 @@ make_buffers_ref(BufferSequence const& buffers)
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_DETAIL_CLAMP_HPP
|
||||
#define BEAST_CORE_DETAIL_CLAMP_HPP
|
||||
#ifndef BOOST_BEAST_CORE_DETAIL_CLAMP_HPP
|
||||
#define BOOST_BEAST_CORE_DETAIL_CLAMP_HPP
|
||||
|
||||
#include <cstdlib>
|
||||
#include <limits>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -51,5 +54,6 @@ sum_exceeds(U1 x, U2 y, U3 z)
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_DETAIL_CONFIG_HPP
|
||||
#define BEAST_CORE_DETAIL_CONFIG_HPP
|
||||
#ifndef BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
|
||||
#define BOOST_BEAST_CORE_DETAIL_CONFIG_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/version.hpp>
|
||||
|
||||
#if BOOST_VERSION >= 106500 || ! defined(BOOST_GCC) || BOOST_GCC < 70000
|
||||
# define BEAST_FALLTHROUGH BOOST_FALLTHROUGH
|
||||
# define BOOST_BEAST_FALLTHROUGH BOOST_FALLTHROUGH
|
||||
#else
|
||||
# define BEAST_FALLTHROUGH __attribute__((fallthrough))
|
||||
# define BOOST_BEAST_FALLTHROUGH __attribute__((fallthrough))
|
||||
#endif
|
||||
|
||||
#endif
|
||||
+10
-6
@@ -4,21 +4,23 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_CPU_INFO_HPP
|
||||
#define BEAST_DETAIL_CPU_INFO_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_CPU_INFO_HPP
|
||||
#define BOOST_BEAST_DETAIL_CPU_INFO_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#ifndef BEAST_NO_INTRINSICS
|
||||
#ifndef BOOST_BEAST_NO_INTRINSICS
|
||||
# if defined(BOOST_MSVC) || ((defined(BOOST_GCC) || defined(BOOST_CLANG)) && defined(__SSE4_2__))
|
||||
# define BEAST_NO_INTRINSICS 0
|
||||
# define BOOST_BEAST_NO_INTRINSICS 0
|
||||
# else
|
||||
# define BEAST_NO_INTRINSICS 1
|
||||
# define BOOST_BEAST_NO_INTRINSICS 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if ! BEAST_NO_INTRINSICS
|
||||
#if ! BOOST_BEAST_NO_INTRINSICS
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#include <intrin.h> // __cpuid
|
||||
@@ -26,6 +28,7 @@
|
||||
#include <cpuid.h> // __get_cpuid
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -89,6 +92,7 @@ get_cpu_info()
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
||||
+6
-2
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_EMPTY_BASE_OPTIMIZATION_HPP
|
||||
#define BEAST_DETAIL_EMPTY_BASE_OPTIMIZATION_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_EMPTY_BASE_OPTIMIZATION_HPP
|
||||
#define BOOST_BEAST_DETAIL_EMPTY_BASE_OPTIMIZATION_HPP
|
||||
|
||||
#include <boost/type_traits/is_final.hpp>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -88,5 +91,6 @@ private:
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+4
-2
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_IN_PLACE_INIT_HPP
|
||||
#define BEAST_DETAIL_IN_PLACE_INIT_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_IN_PLACE_INIT_HPP
|
||||
#define BOOST_BEAST_DETAIL_IN_PLACE_INIT_HPP
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/optional/optional.hpp>
|
||||
+6
-2
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_INTEGER_SEQUENCE_HPP
|
||||
#define BEAST_DETAIL_INTEGER_SEQUENCE_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_INTEGER_SEQUENCE_HPP
|
||||
#define BOOST_BEAST_DETAIL_INTEGER_SEQUENCE_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -135,5 +138,6 @@ using index_sequence_for =
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,18 +4,21 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_OSTREAM_HPP
|
||||
#define BEAST_DETAIL_OSTREAM_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_OSTREAM_HPP
|
||||
#define BOOST_BEAST_DETAIL_OSTREAM_HPP
|
||||
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <beast/core/read_size.hpp>
|
||||
#include <boost/beast/core/read_size.hpp>
|
||||
#include <memory>
|
||||
#include <iosfwd>
|
||||
#include <streambuf>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -314,5 +317,6 @@ public:
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_SHA1_HPP
|
||||
#define BEAST_DETAIL_SHA1_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_SHA1_HPP
|
||||
#define BOOST_BEAST_DETAIL_SHA1_HPP
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
@@ -22,6 +24,7 @@
|
||||
Vincent Falco (beast adaptation)
|
||||
*/
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -305,5 +308,6 @@ finish(sha1_context& ctx, void* digest) noexcept
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_STATIC_OSTREAM_HPP
|
||||
#define BEAST_DETAIL_STATIC_OSTREAM_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_STATIC_OSTREAM_HPP
|
||||
#define BOOST_BEAST_DETAIL_STATIC_OSTREAM_HPP
|
||||
|
||||
#include <locale>
|
||||
#include <ostream>
|
||||
#include <streambuf>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -134,5 +137,6 @@ public:
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+7
-3
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_STATIC_STRING_HPP
|
||||
#define BEAST_DETAIL_STATIC_STRING_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_STATIC_STRING_HPP
|
||||
#define BOOST_BEAST_DETAIL_STATIC_STRING_HPP
|
||||
|
||||
#include <beast/core/string.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -127,5 +130,6 @@ raw_to_string(CharT* last, std::size_t size, Integer i)
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+7
-3
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_TYPE_TRAITS_HPP
|
||||
#define BEAST_DETAIL_TYPE_TRAITS_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_TYPE_TRAITS_HPP
|
||||
#define BOOST_BEAST_DETAIL_TYPE_TRAITS_HPP
|
||||
|
||||
#include <beast/core/error.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/asio/io_service.hpp>
|
||||
#include <iterator>
|
||||
@@ -42,6 +44,7 @@ class consuming_buffers;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -261,5 +264,6 @@ using WriteHandler = StreamHandler;
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DETAIL_VARINT_HPP
|
||||
#define BEAST_DETAIL_VARINT_HPP
|
||||
#ifndef BOOST_BEAST_DETAIL_VARINT_HPP
|
||||
#define BOOST_BEAST_DETAIL_VARINT_HPP
|
||||
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace detail {
|
||||
|
||||
@@ -71,5 +74,6 @@ varint_write(FwdIt& first, std::size_t value)
|
||||
|
||||
} // detail
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_DRAIN_BUFFER_HPP
|
||||
#define BEAST_DRAIN_BUFFER_HPP
|
||||
#ifndef BOOST_BEAST_DRAIN_BUFFER_HPP
|
||||
#define BOOST_BEAST_DRAIN_BUFFER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A @b DynamicBuffer which does not retain its input sequence.
|
||||
@@ -117,6 +120,8 @@ public:
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_ERROR_HPP
|
||||
#define BEAST_ERROR_HPP
|
||||
#ifndef BOOST_BEAST_ERROR_HPP
|
||||
#define BOOST_BEAST_ERROR_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/system/error_code.hpp>
|
||||
#include <boost/system/system_error.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/// The type of error code used by the library
|
||||
@@ -24,7 +27,7 @@ using system_error = boost::system::system_error;
|
||||
using error_category = boost::system::error_category;
|
||||
|
||||
/// A function to return the generic error category used by the library
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
error_category const&
|
||||
generic_category();
|
||||
#else
|
||||
@@ -32,7 +35,7 @@ using boost::system::generic_category;
|
||||
#endif
|
||||
|
||||
/// A function to return the system error category used by the library
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
error_category const&
|
||||
system_category();
|
||||
#else
|
||||
@@ -43,11 +46,13 @@ using boost::system::system_category;
|
||||
using error_condition = boost::system::error_condition;
|
||||
|
||||
/// The set of constants used for cross-platform error codes
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
enum errc{};
|
||||
#else
|
||||
namespace errc = boost::system::errc;
|
||||
#endif
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_FILE_HPP
|
||||
#define BEAST_CORE_FILE_HPP
|
||||
#ifndef BOOST_BEAST_CORE_FILE_HPP
|
||||
#define BOOST_BEAST_CORE_FILE_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <beast/core/file_posix.hpp>
|
||||
#include <beast/core/file_stdio.hpp>
|
||||
#include <beast/core/file_win32.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <boost/beast/core/file_posix.hpp>
|
||||
#include <boost/beast/core/file_stdio.hpp>
|
||||
#include <boost/beast/core/file_win32.hpp>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** An implementation of File.
|
||||
@@ -22,14 +25,14 @@ namespace beast {
|
||||
This alias is set to the best available implementation
|
||||
of @b File given the platform and build settings.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
struct file : file_stdio
|
||||
{
|
||||
};
|
||||
#else
|
||||
#if BEAST_USE_WIN32_FILE
|
||||
#if BOOST_BEAST_USE_WIN32_FILE
|
||||
using file = file_win32;
|
||||
#elif BEAST_USE_POSIX_FILE
|
||||
#elif BOOST_BEAST_USE_POSIX_FILE
|
||||
using file = file_posix;
|
||||
#else
|
||||
using file = file_stdio;
|
||||
@@ -37,5 +40,6 @@ using file = file_stdio;
|
||||
#endif
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_FILE_BASE_HPP
|
||||
#define BEAST_CORE_FILE_BASE_HPP
|
||||
#ifndef BOOST_BEAST_CORE_FILE_BASE_HPP
|
||||
#define BOOST_BEAST_CORE_FILE_BASE_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** File open modes
|
||||
@@ -81,5 +84,6 @@ enum class file_mode
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,32 +4,35 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_FILE_POSIX_HPP
|
||||
#define BEAST_CORE_FILE_POSIX_HPP
|
||||
#ifndef BOOST_BEAST_CORE_FILE_POSIX_HPP
|
||||
#define BOOST_BEAST_CORE_FILE_POSIX_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#if ! defined(BEAST_NO_POSIX_FILE)
|
||||
#if ! defined(BOOST_BEAST_NO_POSIX_FILE)
|
||||
# if ! defined(__APPLE__) && ! defined(__linux__)
|
||||
# define BEAST_NO_POSIX_FILE
|
||||
# define BOOST_BEAST_NO_POSIX_FILE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if ! defined(BEAST_USE_POSIX_FILE)
|
||||
# if ! defined(BEAST_NO_POSIX_FILE)
|
||||
# define BEAST_USE_POSIX_FILE 1
|
||||
#if ! defined(BOOST_BEAST_USE_POSIX_FILE)
|
||||
# if ! defined(BOOST_BEAST_NO_POSIX_FILE)
|
||||
# define BOOST_BEAST_USE_POSIX_FILE 1
|
||||
# else
|
||||
# define BEAST_USE_POSIX_FILE 0
|
||||
# define BOOST_BEAST_USE_POSIX_FILE 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BEAST_USE_POSIX_FILE
|
||||
#if BOOST_BEAST_USE_POSIX_FILE
|
||||
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <cstdint>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** An implementation of File for POSIX systems.
|
||||
@@ -163,8 +166,9 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/file_posix.ipp>
|
||||
#include <boost/beast/core/impl/file_posix.ipp>
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_FILE_STDIO_HPP
|
||||
#define BEAST_CORE_FILE_STDIO_HPP
|
||||
#ifndef BOOST_BEAST_CORE_FILE_STDIO_HPP
|
||||
#define BOOST_BEAST_CORE_FILE_STDIO_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <cstdio>
|
||||
#include <cstdint>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** An implementation of File which uses cstdio.
|
||||
@@ -148,7 +151,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/file_stdio.ipp>
|
||||
#include <boost/beast/core/impl/file_stdio.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,29 +4,32 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_FILE_WIN32_HPP
|
||||
#define BEAST_CORE_FILE_WIN32_HPP
|
||||
#ifndef BOOST_BEAST_CORE_FILE_WIN32_HPP
|
||||
#define BOOST_BEAST_CORE_FILE_WIN32_HPP
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#if ! defined(BEAST_USE_WIN32_FILE)
|
||||
#if ! defined(BOOST_BEAST_USE_WIN32_FILE)
|
||||
# ifdef BOOST_MSVC
|
||||
# define BEAST_USE_WIN32_FILE 1
|
||||
# define BOOST_BEAST_USE_WIN32_FILE 1
|
||||
# else
|
||||
# define BEAST_USE_WIN32_FILE 0
|
||||
# define BOOST_BEAST_USE_WIN32_FILE 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BEAST_USE_WIN32_FILE
|
||||
#if BOOST_BEAST_USE_WIN32_FILE
|
||||
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <boost/detail/winapi/basic_types.hpp>
|
||||
#include <boost/detail/winapi/handles.hpp>
|
||||
#include <cstdio>
|
||||
#include <cstdint>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** An implementation of File for Win32.
|
||||
@@ -43,7 +46,7 @@ public:
|
||||
|
||||
This is platform-specific.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using native_handle_type = HANDLE;
|
||||
#else
|
||||
using native_handle_type = boost::detail::winapi::HANDLE_;
|
||||
@@ -165,8 +168,9 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/file_win32.ipp>
|
||||
#include <boost/beast/core/impl/file_win32.ipp>
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_FLAT_BUFFER_HPP
|
||||
#define BEAST_FLAT_BUFFER_HPP
|
||||
#ifndef BOOST_BEAST_FLAT_BUFFER_HPP
|
||||
#define BOOST_BEAST_FLAT_BUFFER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/detail/empty_base_optimization.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/detail/empty_base_optimization.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A linear dynamic buffer.
|
||||
@@ -39,14 +42,14 @@ namespace beast {
|
||||
*/
|
||||
template<class Allocator>
|
||||
class basic_flat_buffer
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
: private detail::empty_base_optimization<
|
||||
typename std::allocator_traits<Allocator>::
|
||||
template rebind_alloc<char>>
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/// The type of allocator used.
|
||||
using allocator_type = Allocator;
|
||||
#else
|
||||
@@ -335,7 +338,8 @@ using flat_buffer =
|
||||
basic_flat_buffer<std::allocator<char>>;
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/flat_buffer.ipp>
|
||||
#include <boost/beast/core/impl/flat_buffer.ipp>
|
||||
|
||||
#endif
|
||||
+8
-4
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_FLAT_STATIC_BUFFER_HPP
|
||||
#define BEAST_FLAT_STATIC_BUFFER_HPP
|
||||
#ifndef BOOST_BEAST_FLAT_STATIC_BUFFER_HPP
|
||||
#define BOOST_BEAST_FLAT_STATIC_BUFFER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A flat @b DynamicBuffer with a fixed size internal buffer.
|
||||
@@ -235,7 +238,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/flat_static_buffer.ipp>
|
||||
#include <boost/beast/core/impl/flat_static_buffer.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HANDLER_ALLOC_HPP
|
||||
#define BEAST_HANDLER_ALLOC_HPP
|
||||
#ifndef BOOST_BEAST_HANDLER_ALLOC_HPP
|
||||
#define BOOST_BEAST_HANDLER_ALLOC_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <cstddef>
|
||||
@@ -17,6 +19,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
// Guidance from
|
||||
@@ -37,7 +40,7 @@ namespace beast {
|
||||
the handler is invoked or undefined behavior results. This behavior
|
||||
is described as the "deallocate before invocation" Asio guarantee.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T, class Handler>
|
||||
class handler_alloc;
|
||||
#else
|
||||
@@ -154,5 +157,6 @@ public:
|
||||
#endif
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HANDLER_PTR_HPP
|
||||
#define BEAST_HANDLER_PTR_HPP
|
||||
#ifndef BOOST_BEAST_HANDLER_PTR_HPP
|
||||
#define BOOST_BEAST_HANDLER_PTR_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A smart pointer container with associated completion handler.
|
||||
@@ -203,7 +206,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/handler_ptr.ipp>
|
||||
#include <boost/beast/core/impl/handler_ptr.ipp>
|
||||
|
||||
#endif
|
||||
+7
-9
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_BUFFER_CAT_IPP
|
||||
#define BEAST_IMPL_BUFFER_CAT_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_BUFFER_CAT_IPP
|
||||
#define BOOST_BEAST_IMPL_BUFFER_CAT_IPP
|
||||
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <array>
|
||||
@@ -19,17 +21,12 @@
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<class... Bn>
|
||||
class buffer_cat_view<Bn...>::const_iterator
|
||||
{
|
||||
#if 0
|
||||
static_assert(
|
||||
detail::is_all_const_buffer_sequence<Bn...>::value,
|
||||
"BufferSequence requirements not met");
|
||||
#endif
|
||||
|
||||
std::size_t n_;
|
||||
std::tuple<Bn...> const* bn_;
|
||||
std::array<char, detail::max_sizeof<
|
||||
@@ -493,5 +490,6 @@ buffer_cat_view<Bn...>::end() const ->
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_BUFFER_PREFIX_IPP
|
||||
#define BEAST_IMPL_BUFFER_PREFIX_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_BUFFER_PREFIX_IPP
|
||||
#define BOOST_BEAST_IMPL_BUFFER_PREFIX_IPP
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
@@ -15,6 +17,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
namespace detail {
|
||||
@@ -246,5 +249,6 @@ buffer_prefix_view<BufferSequence>::end() const ->
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+12
-8
@@ -4,20 +4,23 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_BUFFERED_READ_STREAM_IPP
|
||||
#define BEAST_IMPL_BUFFERED_READ_STREAM_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_BUFFERED_READ_STREAM_IPP
|
||||
#define BOOST_BEAST_IMPL_BUFFERED_READ_STREAM_IPP
|
||||
|
||||
#include <beast/core/bind_handler.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/handler_ptr.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/beast/core/bind_handler.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/handler_ptr.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
#include <boost/asio/handler_invoke_hook.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<class Stream, class DynamicBuffer>
|
||||
@@ -121,7 +124,7 @@ read_some_op<MutableBufferSequence, Handler>::operator()(
|
||||
|
||||
case 2:
|
||||
s_.sb_.commit(bytes_transferred);
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case 3:
|
||||
bytes_transferred =
|
||||
@@ -237,5 +240,6 @@ async_read_some(MutableBufferSequence const& buffers,
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+7
-3
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_BUFFERS_ADAPTER_IPP
|
||||
#define BEAST_IMPL_BUFFERS_ADAPTER_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_BUFFERS_ADAPTER_IPP
|
||||
#define BOOST_BEAST_IMPL_BUFFERS_ADAPTER_IPP
|
||||
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <algorithm>
|
||||
@@ -17,6 +19,7 @@
|
||||
#include <stdexcept>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<class MutableBufferSequence>
|
||||
@@ -501,5 +504,6 @@ buffers_adapter<MutableBufferSequence>::consume(std::size_t n)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+7
-3
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
||||
#define BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
||||
#define BOOST_BEAST_IMPL_CONSUMING_BUFFERS_IPP
|
||||
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<class Buffers>
|
||||
@@ -231,5 +234,6 @@ consume(std::size_t amount)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_IMPL_FILE_POSIX_IPP
|
||||
#define BEAST_CORE_IMPL_FILE_POSIX_IPP
|
||||
#ifndef BOOST_BEAST_CORE_IMPL_FILE_POSIX_IPP
|
||||
#define BOOST_BEAST_CORE_IMPL_FILE_POSIX_IPP
|
||||
|
||||
#include <limits>
|
||||
#include <fcntl.h>
|
||||
@@ -16,6 +18,7 @@
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
namespace detail {
|
||||
@@ -327,5 +330,6 @@ write(void const* buffer, std::size_t n, error_code& ec)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,12 +4,15 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_IMPL_FILE_STDIO_IPP
|
||||
#define BEAST_CORE_IMPL_FILE_STDIO_IPP
|
||||
#ifndef BOOST_BEAST_CORE_IMPL_FILE_STDIO_IPP
|
||||
#define BOOST_BEAST_CORE_IMPL_FILE_STDIO_IPP
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
inline
|
||||
@@ -221,5 +224,6 @@ write(void const* buffer, std::size_t n, error_code& ec)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_IMPL_FILE_WIN32_IPP
|
||||
#define BEAST_CORE_IMPL_FILE_WIN32_IPP
|
||||
#ifndef BOOST_BEAST_CORE_IMPL_FILE_WIN32_IPP
|
||||
#define BOOST_BEAST_CORE_IMPL_FILE_WIN32_IPP
|
||||
|
||||
#include <boost/detail/winapi/access_rights.hpp>
|
||||
#include <boost/detail/winapi/error_codes.hpp>
|
||||
@@ -15,6 +17,7 @@
|
||||
#include <limits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
namespace detail {
|
||||
@@ -352,5 +355,6 @@ write(void const* buffer, std::size_t n, error_code& ec)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_FLAT_BUFFER_HPP
|
||||
#define BEAST_IMPL_FLAT_BUFFER_HPP
|
||||
#ifndef BOOST_BEAST_IMPL_FLAT_BUFFER_HPP
|
||||
#define BOOST_BEAST_IMPL_FLAT_BUFFER_HPP
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/* Memory is laid out thusly:
|
||||
@@ -467,5 +470,6 @@ swap(
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+7
-3
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_FLAT_STATIC_BUFFER_IPP
|
||||
#define BEAST_IMPL_FLAT_STATIC_BUFFER_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_FLAT_STATIC_BUFFER_IPP
|
||||
#define BOOST_BEAST_IMPL_FLAT_STATIC_BUFFER_IPP
|
||||
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <algorithm>
|
||||
@@ -16,6 +18,7 @@
|
||||
#include <iterator>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/* Memory is laid out thusly:
|
||||
@@ -134,5 +137,6 @@ operator=(flat_static_buffer const& other) ->
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_HANDLER_PTR_HPP
|
||||
#define BEAST_IMPL_HANDLER_PTR_HPP
|
||||
#ifndef BOOST_BEAST_IMPL_HANDLER_PTR_HPP
|
||||
#define BOOST_BEAST_IMPL_HANDLER_PTR_HPP
|
||||
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
@@ -14,6 +16,7 @@
|
||||
#include <boost/assert.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<class T, class Handler>
|
||||
@@ -129,5 +132,6 @@ invoke(Args&&... args)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+17
-13
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_MULTI_BUFFER_IPP
|
||||
#define BEAST_IMPL_MULTI_BUFFER_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_MULTI_BUFFER_IPP
|
||||
#define BOOST_BEAST_IMPL_MULTI_BUFFER_IPP
|
||||
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <algorithm>
|
||||
@@ -17,6 +19,7 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/* These diagrams illustrate the layout and state variables.
|
||||
@@ -634,7 +637,7 @@ prepare(size_type n) ->
|
||||
out_end_ = out_->size();
|
||||
reuse.splice(reuse.end(), list_,
|
||||
std::next(out_), list_.end());
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -649,7 +652,7 @@ prepare(size_type n) ->
|
||||
out_end_ = out_pos_ + n;
|
||||
n = 0;
|
||||
}
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -670,7 +673,7 @@ prepare(size_type n) ->
|
||||
out_end_ = n;
|
||||
n = 0;
|
||||
}
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -700,7 +703,7 @@ prepare(size_type n) ->
|
||||
if(out_ == list_.end())
|
||||
out_ = list_.iterator_to(e);
|
||||
out_end_ = n;
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -726,7 +729,7 @@ commit(size_type n)
|
||||
{
|
||||
out_pos_ += n;
|
||||
in_size_ += n;
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
return;
|
||||
@@ -735,7 +738,7 @@ commit(size_type n)
|
||||
n -= avail;
|
||||
out_pos_ = 0;
|
||||
in_size_ += avail;
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -749,7 +752,7 @@ commit(size_type n)
|
||||
out_pos_ = 0;
|
||||
out_end_ = 0;
|
||||
}
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -771,7 +774,7 @@ consume(size_type n)
|
||||
{
|
||||
in_size_ -= n;
|
||||
in_pos_ += n;
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
break;
|
||||
@@ -782,7 +785,7 @@ consume(size_type n)
|
||||
auto& e = list_.front();
|
||||
list_.erase(list_.iterator_to(e));
|
||||
delete_element(e);
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
}
|
||||
@@ -811,7 +814,7 @@ consume(size_type n)
|
||||
out_end_ = 0;
|
||||
}
|
||||
}
|
||||
#if BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
#if BOOST_BEAST_MULTI_BUFFER_DEBUG_CHECK
|
||||
debug_check();
|
||||
#endif
|
||||
break;
|
||||
@@ -1045,5 +1048,6 @@ debug_check() const
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,10 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_READ_SIZE_IPP
|
||||
#define BEAST_IMPL_READ_SIZE_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_READ_SIZE_IPP
|
||||
#define BOOST_BEAST_IMPL_READ_SIZE_IPP
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
namespace detail {
|
||||
@@ -71,5 +74,6 @@ read_size_or_throw(
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+7
-3
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_STATIC_BUFFER_IPP
|
||||
#define BEAST_IMPL_STATIC_BUFFER_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_STATIC_BUFFER_IPP
|
||||
#define BOOST_BEAST_IMPL_STATIC_BUFFER_IPP
|
||||
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <algorithm>
|
||||
@@ -16,6 +18,7 @@
|
||||
#include <iterator>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<bool isInput, class T>
|
||||
@@ -313,5 +316,6 @@ operator=(static_buffer const& other) ->
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+8
-4
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_STATIC_STRING_IPP
|
||||
#define BEAST_IMPL_STATIC_STRING_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_STATIC_STRING_IPP
|
||||
#define BOOST_BEAST_IMPL_STATIC_STRING_IPP
|
||||
|
||||
#include <beast/core/detail/static_string.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/static_string.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
//
|
||||
@@ -610,5 +613,6 @@ to_static_string(Integer x)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+6
-2
@@ -4,10 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_IMPL_STRING_PARAM_IPP
|
||||
#define BEAST_IMPL_STRING_PARAM_IPP
|
||||
#ifndef BOOST_BEAST_IMPL_STRING_PARAM_IPP
|
||||
#define BOOST_BEAST_IMPL_STRING_PARAM_IPP
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
template<class T>
|
||||
@@ -100,5 +103,6 @@ string_param(Args const&... args)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,11 +4,13 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_MULTI_BUFFER_HPP
|
||||
#define BEAST_MULTI_BUFFER_HPP
|
||||
#ifndef BOOST_BEAST_MULTI_BUFFER_HPP
|
||||
#define BOOST_BEAST_MULTI_BUFFER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/intrusive/list.hpp>
|
||||
#include <iterator>
|
||||
@@ -16,6 +18,7 @@
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A @b DynamicBuffer that uses multiple buffers internally.
|
||||
@@ -33,7 +36,7 @@ template<class Allocator>
|
||||
class basic_multi_buffer
|
||||
{
|
||||
public:
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/// The type of allocator used.
|
||||
using allocator_type = Allocator;
|
||||
#else
|
||||
@@ -77,7 +80,7 @@ private:
|
||||
allocator_type alloc_; // the allocator
|
||||
|
||||
public:
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/// The type used to represent the input sequence as a list of buffers.
|
||||
using const_buffers_type = implementation_defined;
|
||||
|
||||
@@ -313,7 +316,8 @@ private:
|
||||
using multi_buffer = basic_multi_buffer<std::allocator<char>>;
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/multi_buffer.ipp>
|
||||
#include <boost/beast/core/impl/multi_buffer.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_WRITE_OSTREAM_HPP
|
||||
#define BEAST_WRITE_OSTREAM_HPP
|
||||
#ifndef BOOST_BEAST_WRITE_OSTREAM_HPP
|
||||
#define BOOST_BEAST_WRITE_OSTREAM_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/ostream.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/ostream.hpp>
|
||||
#include <type_traits>
|
||||
#include <streambuf>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** Return an object representing a @b ConstBufferSequence.
|
||||
@@ -39,7 +42,7 @@ namespace beast {
|
||||
is still responsible for managing its lifetime.
|
||||
*/
|
||||
template<class ConstBufferSequence>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
implementation_defined
|
||||
#else
|
||||
detail::buffers_helper<ConstBufferSequence>
|
||||
@@ -78,7 +81,7 @@ buffers(ConstBufferSequence const& b)
|
||||
lifetime of the output stream.
|
||||
*/
|
||||
template<class DynamicBuffer>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
implementation_defined
|
||||
#else
|
||||
detail::ostream_helper<
|
||||
@@ -95,5 +98,6 @@ ostream(DynamicBuffer& buffer)
|
||||
}
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_READ_SIZE_HELPER_HPP
|
||||
#define BEAST_READ_SIZE_HELPER_HPP
|
||||
#ifndef BOOST_BEAST_READ_SIZE_HELPER_HPP
|
||||
#define BOOST_BEAST_READ_SIZE_HELPER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** Returns a natural read size.
|
||||
@@ -54,7 +57,8 @@ read_size_or_throw(DynamicBuffer& buffer,
|
||||
std::size_t max_size);
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/read_size.ipp>
|
||||
#include <boost/beast/core/impl/read_size.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_CORE_SPAN_HPP
|
||||
#define BEAST_CORE_SPAN_HPP
|
||||
#ifndef BOOST_BEAST_CORE_SPAN_HPP
|
||||
#define BOOST_BEAST_CORE_SPAN_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A range of bytes expressed as a ContiguousContainer
|
||||
@@ -84,7 +87,7 @@ public:
|
||||
@param container The container to construct from
|
||||
*/
|
||||
template<class ContiguousContainer
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
, class = typename std::enable_if<
|
||||
detail::is_contiguous_container<
|
||||
ContiguousContainer, T>::value>::type
|
||||
@@ -97,7 +100,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
template<class CharT, class Traits, class Allocator>
|
||||
explicit
|
||||
span(std::basic_string<CharT, Traits, Allocator>& s)
|
||||
@@ -120,7 +123,7 @@ public:
|
||||
@param container The container to assign from
|
||||
*/
|
||||
template<class ContiguousContainer>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
span&
|
||||
#else
|
||||
typename std::enable_if<detail::is_contiguous_container<
|
||||
@@ -134,7 +137,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
template<class CharT, class Traits, class Allocator>
|
||||
span&
|
||||
operator=(std::basic_string<
|
||||
@@ -207,5 +210,6 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_STATIC_BUFFER_HPP
|
||||
#define BEAST_STATIC_BUFFER_HPP
|
||||
#ifndef BOOST_BEAST_STATIC_BUFFER_HPP
|
||||
#define BOOST_BEAST_STATIC_BUFFER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A circular @b DynamicBuffer with a fixed size internal buffer.
|
||||
@@ -50,7 +53,7 @@ class static_buffer_base
|
||||
|
||||
public:
|
||||
/// The type used to represent the input sequence as a list of buffers.
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using const_buffers_type = implementation_defined;
|
||||
#else
|
||||
using const_buffers_type =
|
||||
@@ -58,7 +61,7 @@ public:
|
||||
#endif
|
||||
|
||||
/// The type used to represent the mutable input sequence as a list of buffers.
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using mutable_data_type = implementation_defined;
|
||||
#else
|
||||
using mutable_data_type =
|
||||
@@ -66,7 +69,7 @@ public:
|
||||
#endif
|
||||
|
||||
/// The type used to represent the output sequence as a list of buffers.
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using mutable_buffers_type = implementation_defined;
|
||||
#else
|
||||
using mutable_buffers_type =
|
||||
@@ -216,7 +219,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/static_buffer.ipp>
|
||||
#include <boost/beast/core/impl/static_buffer.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,15 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_STATIC_STRING_HPP
|
||||
#define BEAST_STATIC_STRING_HPP
|
||||
#ifndef BOOST_BEAST_STATIC_STRING_HPP
|
||||
#define BOOST_BEAST_STATIC_STRING_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/detail/static_string.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/detail/static_string.hpp>
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <initializer_list>
|
||||
@@ -20,6 +22,7 @@
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A modifiable string with a fixed-size storage area.
|
||||
@@ -74,7 +77,7 @@ public:
|
||||
|
||||
/// The type of `string_view` returned by the interface
|
||||
using string_view_type =
|
||||
beast::basic_string_view<CharT, Traits>;
|
||||
basic_string_view<CharT, Traits>;
|
||||
|
||||
//
|
||||
// Constants
|
||||
@@ -139,7 +142,7 @@ public:
|
||||
obtained by converting `t` to `string_view_type`,
|
||||
and used to construct the string.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
#else
|
||||
template<class T, class = typename std::enable_if<
|
||||
@@ -258,7 +261,7 @@ public:
|
||||
and used to assign the string.
|
||||
*/
|
||||
template<class T>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
static_string&
|
||||
#else
|
||||
typename std::enable_if<std::is_convertible<T,
|
||||
@@ -537,7 +540,7 @@ public:
|
||||
insert(const_iterator pos, size_type count, CharT ch);
|
||||
|
||||
template<class InputIt>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
iterator
|
||||
#else
|
||||
typename std::enable_if<
|
||||
@@ -559,7 +562,7 @@ public:
|
||||
}
|
||||
|
||||
template<class T>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
static_string&
|
||||
#else
|
||||
typename std::enable_if<
|
||||
@@ -623,7 +626,7 @@ public:
|
||||
}
|
||||
|
||||
template<class InputIt>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
static_string&
|
||||
#else
|
||||
typename std::enable_if<
|
||||
@@ -759,7 +762,7 @@ public:
|
||||
}
|
||||
|
||||
template<class T>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
int
|
||||
#else
|
||||
typename std::enable_if<
|
||||
@@ -1102,7 +1105,8 @@ static_string<detail::max_digits(sizeof(Integer))>
|
||||
to_static_string(Integer x);
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/static_string.ipp>
|
||||
#include <boost/beast/core/impl/static_string.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,21 +4,23 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_STRING_HPP
|
||||
#define BEAST_STRING_HPP
|
||||
#ifndef BOOST_BEAST_STRING_HPP
|
||||
#define BOOST_BEAST_STRING_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#ifndef BEAST_NO_BOOST_STRING_VIEW
|
||||
#ifndef BOOST_BEAST_NO_BOOST_STRING_VIEW
|
||||
# if BOOST_VERSION >= 106400
|
||||
# define BEAST_NO_BOOST_STRING_VIEW 0
|
||||
# define BOOST_BEAST_NO_BOOST_STRING_VIEW 0
|
||||
# else
|
||||
# define BEAST_NO_BOOST_STRING_VIEW 1
|
||||
# define BOOST_BEAST_NO_BOOST_STRING_VIEW 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if BEAST_NO_BOOST_STRING_VIEW
|
||||
#if BOOST_BEAST_NO_BOOST_STRING_VIEW
|
||||
#include <boost/utility/string_ref.hpp>
|
||||
#else
|
||||
#include <boost/utility/string_view.hpp>
|
||||
@@ -26,9 +28,10 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
#if BEAST_NO_BOOST_STRING_VIEW
|
||||
#if BOOST_BEAST_NO_BOOST_STRING_VIEW
|
||||
/// The type of string view used by the library
|
||||
using string_view = boost::string_ref;
|
||||
|
||||
@@ -147,5 +150,6 @@ struct iequal
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_STRING_PARAM_HPP
|
||||
#define BEAST_STRING_PARAM_HPP
|
||||
#ifndef BOOST_BEAST_STRING_PARAM_HPP
|
||||
#define BOOST_BEAST_STRING_PARAM_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/static_string.hpp>
|
||||
#include <beast/core/detail/static_ostream.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/static_string.hpp>
|
||||
#include <boost/beast/core/detail/static_ostream.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
/** A function parameter which efficiently converts to string.
|
||||
@@ -120,7 +123,8 @@ public:
|
||||
};
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/core/impl/string_param.ipp>
|
||||
#include <boost/beast/core/impl/string_param.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_TYPE_TRAITS_HPP
|
||||
#define BEAST_TYPE_TRAITS_HPP
|
||||
#ifndef BOOST_BEAST_TYPE_TRAITS_HPP
|
||||
#define BOOST_BEAST_TYPE_TRAITS_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -50,7 +53,7 @@ namespace beast {
|
||||
@endcode
|
||||
*/
|
||||
template<class T>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
struct is_const_buffer_sequence : std::integral_constant<bool, ...>
|
||||
#else
|
||||
struct is_const_buffer_sequence :
|
||||
@@ -87,7 +90,7 @@ struct is_const_buffer_sequence :
|
||||
@endcode
|
||||
*/
|
||||
template<class T>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
struct is_mutable_buffer_sequence : std::integral_constant<bool, ...>
|
||||
#else
|
||||
struct is_mutable_buffer_sequence :
|
||||
@@ -123,7 +126,7 @@ struct is_mutable_buffer_sequence :
|
||||
f(DynamicBuffer const& buffer);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_dynamic_buffer : std::integral_constant<bool, ...> {};
|
||||
#else
|
||||
@@ -192,7 +195,7 @@ struct is_dynamic_buffer<
|
||||
@endcode
|
||||
*/
|
||||
template<class T, class Signature>
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using is_completion_handler = std::integral_constant<bool, ...>;
|
||||
#else
|
||||
using is_completion_handler = std::integral_constant<bool,
|
||||
@@ -248,7 +251,7 @@ using is_completion_handler = std::integral_constant<bool,
|
||||
"Missing get_io_service member");
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct has_get_io_service : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -289,7 +292,7 @@ struct has_get_io_service<T, beast::detail::void_t<decltype(
|
||||
! std::is_same<T, typename get_lowest_layer<T>::type>::value> {};
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct get_lowest_layer;
|
||||
#else
|
||||
@@ -334,7 +337,7 @@ struct get_lowest_layer<T, detail::void_t<
|
||||
f(AsyncReadStream& stream);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_async_read_stream : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -378,7 +381,7 @@ struct is_async_read_stream<T, detail::void_t<decltype(
|
||||
f(AsyncWriteStream& stream);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_async_write_stream : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -422,7 +425,7 @@ struct is_async_write_stream<T, detail::void_t<decltype(
|
||||
f(SyncReadStream& stream);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_sync_read_stream : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -468,7 +471,7 @@ struct is_sync_read_stream<T, detail::void_t<decltype(
|
||||
f(SyncReadStream& stream);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_sync_write_stream : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -514,7 +517,7 @@ struct is_sync_write_stream<T, detail::void_t<decltype(
|
||||
f(AsyncStream& stream);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_async_stream : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -550,7 +553,7 @@ using is_async_stream = std::integral_constant<bool,
|
||||
f(SyncStream& stream);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_sync_stream : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -592,7 +595,7 @@ using is_sync_stream = std::integral_constant<bool,
|
||||
f(File& file);
|
||||
@endcode
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class T>
|
||||
struct is_file : std::integral_constant<bool, ...>{};
|
||||
#else
|
||||
@@ -629,5 +632,6 @@ struct is_file<T, detail::void_t<decltype(
|
||||
#endif
|
||||
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BOOST_BEAST_HTTP_HPP
|
||||
#define BOOST_BEAST_HTTP_HPP
|
||||
|
||||
#include <boost/beast/config.hpp>
|
||||
|
||||
#include <boost/beast/http/basic_dynamic_body.hpp>
|
||||
#include <boost/beast/http/basic_parser.hpp>
|
||||
#include <boost/beast/http/buffer_body.hpp>
|
||||
#include <boost/beast/http/chunk_encode.hpp>
|
||||
#include <boost/beast/http/dynamic_body.hpp>
|
||||
#include <boost/beast/http/empty_body.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/beast/http/fields.hpp>
|
||||
#include <boost/beast/http/file_body.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/parser.hpp>
|
||||
#include <boost/beast/http/read.hpp>
|
||||
#include <boost/beast/http/rfc7230.hpp>
|
||||
#include <boost/beast/http/serializer.hpp>
|
||||
#include <boost/beast/http/span_body.hpp>
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <boost/beast/http/string_body.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/beast/http/vector_body.hpp>
|
||||
#include <boost/beast/http/verb.hpp>
|
||||
#include <boost/beast/http/write.hpp>
|
||||
|
||||
#endif
|
||||
+12
-8
@@ -4,19 +4,22 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_BASIC_DYNAMIC_BODY_HPP
|
||||
#define BEAST_HTTP_BASIC_DYNAMIC_BODY_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_BASIC_DYNAMIC_BODY_HPP
|
||||
#define BOOST_BEAST_HTTP_BASIC_DYNAMIC_BODY_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -56,7 +59,7 @@ struct basic_dynamic_body
|
||||
|
||||
Meets the requirements of @b BodyReader.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using reader = implementation_defined;
|
||||
#else
|
||||
class reader
|
||||
@@ -94,7 +97,7 @@ struct basic_dynamic_body
|
||||
|
||||
Meets the requirements of @b BodyReader.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using writer = implementation_defined;
|
||||
#else
|
||||
class writer
|
||||
@@ -160,5 +163,6 @@ struct basic_dynamic_body
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+12
-8
@@ -4,15 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_BASIC_FILE_BODY_HPP
|
||||
#define BEAST_HTTP_BASIC_FILE_BODY_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_BASIC_FILE_BODY_HPP
|
||||
#define BOOST_BEAST_HTTP_BASIC_FILE_BODY_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/file_base.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/file_base.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <algorithm>
|
||||
@@ -20,6 +22,7 @@
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -514,7 +517,7 @@ finish(error_code& ec)
|
||||
|
||||
//]
|
||||
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
// operator<< is not supported for file_body
|
||||
template<bool isRequest, class File, class Fields>
|
||||
std::ostream&
|
||||
@@ -524,5 +527,6 @@ operator<<(std::ostream& os, message<
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,16 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_BASIC_PARSER_HPP
|
||||
#define BEAST_HTTP_BASIC_PARSER_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_BASIC_PARSER_HPP
|
||||
#define BOOST_BEAST_HTTP_BASIC_PARSER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/http/field.hpp>
|
||||
#include <beast/http/verb.hpp>
|
||||
#include <beast/http/detail/basic_parser.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/beast/http/verb.hpp>
|
||||
#include <boost/beast/http/detail/basic_parser.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
@@ -22,6 +24,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -511,7 +514,7 @@ public:
|
||||
std::size_t
|
||||
put(ConstBufferSequence const& buffers, error_code& ec);
|
||||
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
std::size_t
|
||||
put(boost::asio::const_buffers_1 const& buffer,
|
||||
error_code& ec);
|
||||
@@ -601,7 +604,8 @@ private:
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/basic_parser.ipp>
|
||||
#include <boost/beast/http/impl/basic_parser.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,18 +4,21 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_BUFFER_BODY_HPP
|
||||
#define BEAST_HTTP_BUFFER_BODY_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_BUFFER_BODY_HPP
|
||||
#define BOOST_BEAST_HTTP_BUFFER_BODY_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -92,7 +95,7 @@ struct buffer_body
|
||||
|
||||
Meets the requirements of @b BodyReader.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using reader = implementation_defined;
|
||||
#else
|
||||
class reader
|
||||
@@ -155,7 +158,7 @@ struct buffer_body
|
||||
|
||||
Meets the requirements of @b BodyReader.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using writer = implementation_defined;
|
||||
#else
|
||||
class writer
|
||||
@@ -210,7 +213,7 @@ struct buffer_body
|
||||
#endif
|
||||
};
|
||||
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
// operator<< is not supported for buffer_body
|
||||
template<bool isRequest, class Fields>
|
||||
std::ostream&
|
||||
@@ -220,5 +223,6 @@ operator<<(std::ostream& os, message<isRequest,
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,19 +4,22 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_CHUNK_ENCODE_HPP
|
||||
#define BEAST_HTTP_CHUNK_ENCODE_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_CHUNK_ENCODE_HPP
|
||||
#define BOOST_BEAST_HTTP_CHUNK_ENCODE_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/buffer_cat.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <beast/http/detail/chunk_encode.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/buffer_cat.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/beast/http/detail/chunk_encode.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <memory>
|
||||
#include <type_traits>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -42,7 +45,7 @@ struct chunk_crlf
|
||||
//-----
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using value_type = implementation_defined;
|
||||
#else
|
||||
using value_type = detail::chunk_crlf_iter::value_type;
|
||||
@@ -175,7 +178,7 @@ public:
|
||||
@see https://tools.ietf.org/html/rfc7230#section-4.1
|
||||
*/
|
||||
template<class ChunkExtensions
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
, class = typename std::enable_if<
|
||||
detail::is_chunk_extensions<
|
||||
ChunkExtensions>::value>::type
|
||||
@@ -211,7 +214,7 @@ public:
|
||||
@see https://tools.ietf.org/html/rfc7230#section-4.1
|
||||
*/
|
||||
template<class ChunkExtensions, class Allocator
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
, class = typename std::enable_if<
|
||||
detail::is_chunk_extensions<
|
||||
ChunkExtensions>::value>::type
|
||||
@@ -225,14 +228,14 @@ public:
|
||||
//-----
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using value_type = implementation_defined;
|
||||
#else
|
||||
using value_type = typename view_type::value_type;
|
||||
#endif
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using const_iterator = implementation_defined;
|
||||
#else
|
||||
using const_iterator = typename view_type::const_iterator;
|
||||
@@ -366,7 +369,7 @@ public:
|
||||
@see https://tools.ietf.org/html/rfc7230#section-4.1
|
||||
*/
|
||||
template<class ChunkExtensions
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
, class = typename std::enable_if<
|
||||
! std::is_convertible<typename std::decay<
|
||||
ChunkExtensions>::type, string_view>::value>::type
|
||||
@@ -405,7 +408,7 @@ public:
|
||||
@see https://tools.ietf.org/html/rfc7230#section-4.1
|
||||
*/
|
||||
template<class ChunkExtensions, class Allocator
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
, class = typename std::enable_if<
|
||||
! std::is_convertible<typename std::decay<
|
||||
ChunkExtensions>::type, string_view>::value>::type
|
||||
@@ -419,14 +422,14 @@ public:
|
||||
//-----
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using value_type = implementation_defined;
|
||||
#else
|
||||
using value_type = typename view_type::value_type;
|
||||
#endif
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using const_iterator = implementation_defined;
|
||||
#else
|
||||
using const_iterator = typename view_type::const_iterator;
|
||||
@@ -507,7 +510,7 @@ public:
|
||||
@param allocator The allocator to use for storing temporary
|
||||
data associated with the serialized trailer buffers.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class Allocator>
|
||||
chunk_last(Trailer const& trailer, Allocator const& allocator);
|
||||
#else
|
||||
@@ -524,7 +527,7 @@ public:
|
||||
chunk_last(chunk_last const&) = default;
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using value_type = implementation_defined;
|
||||
#else
|
||||
using value_type =
|
||||
@@ -532,7 +535,7 @@ public:
|
||||
#endif
|
||||
|
||||
/// Required for @b ConstBufferSequence
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using const_iterator = implementation_defined;
|
||||
#else
|
||||
using const_iterator =
|
||||
@@ -726,7 +729,8 @@ make_chunk_last(
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/chunk_encode.ipp>
|
||||
#include <boost/beast/http/impl/chunk_encode.ipp>
|
||||
|
||||
#endif
|
||||
+9
-5
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_DETAIL_BASIC_PARSED_LIST_HPP
|
||||
#define BEAST_HTTP_DETAIL_BASIC_PARSED_LIST_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_DETAIL_BASIC_PARSED_LIST_HPP
|
||||
#define BOOST_BEAST_HTTP_DETAIL_BASIC_PARSED_LIST_HPP
|
||||
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/detail/empty_base_optimization.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/detail/empty_base_optimization.hpp>
|
||||
#include <cstddef>
|
||||
#include <iterator>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -32,7 +35,7 @@ public:
|
||||
using value_type = typename Policy::value_type;
|
||||
|
||||
/// A constant iterator to a list element.
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using const_iterator = implementation_defined;
|
||||
#else
|
||||
class const_iterator;
|
||||
@@ -189,6 +192,7 @@ cend() const ->
|
||||
} // detail
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
||||
+11
-7
@@ -4,21 +4,24 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_DETAIL_BASIC_PARSER_HPP
|
||||
#define BEAST_HTTP_DETAIL_BASIC_PARSER_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_DETAIL_BASIC_PARSER_HPP
|
||||
#define BOOST_BEAST_HTTP_DETAIL_BASIC_PARSER_HPP
|
||||
|
||||
#include <beast/core/static_string.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/detail/cpu_info.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/detail/rfc7230.hpp>
|
||||
#include <boost/beast/core/static_string.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/detail/cpu_info.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/detail/rfc7230.hpp>
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/version.hpp>
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -888,5 +891,6 @@ protected:
|
||||
} // detail
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+8
-4
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_DETAIL_CHUNK_ENCODE_HPP
|
||||
#define BEAST_HTTP_DETAIL_CHUNK_ENCODE_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_DETAIL_CHUNK_ENCODE_HPP
|
||||
#define BOOST_BEAST_HTTP_DETAIL_CHUNK_ENCODE_HPP
|
||||
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -254,5 +257,6 @@ struct buffers_or_fields<T, false>
|
||||
} // detail
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_DETAIL_RFC7230_HPP
|
||||
#define BEAST_HTTP_DETAIL_RFC7230_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_DETAIL_RFC7230_HPP
|
||||
#define BOOST_BEAST_HTTP_DETAIL_RFC7230_HPP
|
||||
|
||||
#include <beast/core/string.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -464,6 +467,7 @@ struct opt_token_list_policy
|
||||
} // detail
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
||||
+7
-3
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_DETAIL_TYPE_TRAITS_HPP
|
||||
#define BEAST_HTTP_DETAIL_TYPE_TRAITS_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_DETAIL_TYPE_TRAITS_HPP
|
||||
#define BOOST_BEAST_HTTP_DETAIL_TYPE_TRAITS_HPP
|
||||
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <cstdint>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -184,5 +187,6 @@ struct is_fields_helper : T
|
||||
} // detail
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_DYNAMIC_BODY_HPP
|
||||
#define BEAST_HTTP_DYNAMIC_BODY_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_DYNAMIC_BODY_HPP
|
||||
#define BOOST_BEAST_HTTP_DYNAMIC_BODY_HPP
|
||||
|
||||
#include <beast/core/multi_buffer.hpp>
|
||||
#include <beast/http/basic_dynamic_body.hpp>
|
||||
#include <boost/beast/core/multi_buffer.hpp>
|
||||
#include <boost/beast/http/basic_dynamic_body.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -22,5 +25,6 @@ using dynamic_body = basic_dynamic_body<multi_buffer>;
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_EMPTY_BODY_HPP
|
||||
#define BEAST_HTTP_EMPTY_BODY_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_EMPTY_BODY_HPP
|
||||
#define BOOST_BEAST_HTTP_EMPTY_BODY_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -53,7 +56,7 @@ struct empty_body
|
||||
|
||||
Meets the requirements of @b BodyReader.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using reader = implementation_defined;
|
||||
#else
|
||||
struct reader
|
||||
@@ -87,7 +90,7 @@ struct empty_body
|
||||
|
||||
Meets the requirements of @b BodyReader.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using writer = implementation_defined;
|
||||
#else
|
||||
struct writer
|
||||
@@ -124,5 +127,6 @@ struct empty_body
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_ERROR_HPP
|
||||
#define BEAST_HTTP_ERROR_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_ERROR_HPP
|
||||
#define BOOST_BEAST_HTTP_ERROR_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/error.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -151,7 +154,8 @@ enum class error
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/error.ipp>
|
||||
#include <boost/beast/http/impl/error.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_FIELD_HPP
|
||||
#define BEAST_HTTP_FIELD_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_FIELD_HPP
|
||||
#define BOOST_BEAST_HTTP_FIELD_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <iosfwd>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -399,7 +402,8 @@ operator<<(std::ostream& os, field f)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/field.ipp>
|
||||
#include <boost/beast/http/impl/field.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_FIELDS_HPP
|
||||
#define BEAST_HTTP_FIELDS_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_FIELDS_HPP
|
||||
#define BOOST_BEAST_HTTP_FIELDS_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/core/string_param.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/http/field.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/core/string_param.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/http/field.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/intrusive/list.hpp>
|
||||
#include <boost/intrusive/set.hpp>
|
||||
@@ -24,6 +26,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -138,7 +141,7 @@ public:
|
||||
};
|
||||
|
||||
/// The algorithm used to serialize the header
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using reader = implementation_defined;
|
||||
#else
|
||||
class reader;
|
||||
@@ -231,7 +234,7 @@ public:
|
||||
|
||||
public:
|
||||
/// A constant iterator to the field sequence.
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using const_iterator = implementation_defined;
|
||||
#else
|
||||
using const_iterator = typename list_t::const_iterator;
|
||||
@@ -727,7 +730,8 @@ using fields = basic_fields<std::allocator<char>>;
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/fields.ipp>
|
||||
#include <boost/beast/http/impl/fields.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,12 +4,14 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_FILE_BODY_HPP
|
||||
#define BEAST_HTTP_FILE_BODY_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_FILE_BODY_HPP
|
||||
#define BOOST_BEAST_HTTP_FILE_BODY_HPP
|
||||
|
||||
#include <beast/core/file.hpp>
|
||||
#include <beast/http/basic_file_body.hpp>
|
||||
#include <boost/beast/core/file.hpp>
|
||||
#include <boost/beast/http/basic_file_body.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <algorithm>
|
||||
@@ -17,6 +19,7 @@
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -25,7 +28,8 @@ using file_body = basic_file_body<file>;
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/file_body_win32.ipp>
|
||||
#include <boost/beast/http/impl/file_body_win32.ipp>
|
||||
|
||||
#endif
|
||||
+17
-13
@@ -4,21 +4,24 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_BASIC_PARSER_IPP
|
||||
#define BEAST_HTTP_IMPL_BASIC_PARSER_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_BASIC_PARSER_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_BASIC_PARSER_IPP
|
||||
|
||||
#include <beast/core/static_string.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/clamp.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/rfc7230.hpp>
|
||||
#include <boost/beast/core/static_string.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/clamp.hpp>
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/rfc7230.hpp>
|
||||
#include <boost/asio/buffer.hpp>
|
||||
#include <boost/make_unique.hpp>
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -161,7 +164,7 @@ loop:
|
||||
return 0;
|
||||
}
|
||||
state_ = state::start_line;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case state::start_line:
|
||||
{
|
||||
@@ -192,7 +195,7 @@ loop:
|
||||
ec = error::need_more;
|
||||
goto done;
|
||||
}
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case state::fields:
|
||||
@@ -225,7 +228,7 @@ loop:
|
||||
if(ec)
|
||||
goto done;
|
||||
state_ = state::body;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case state::body:
|
||||
BOOST_ASSERT(! skip_);
|
||||
@@ -240,7 +243,7 @@ loop:
|
||||
if(ec)
|
||||
goto done;
|
||||
state_ = state::body_to_eof;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case state::body_to_eof:
|
||||
BOOST_ASSERT(! skip_);
|
||||
@@ -254,7 +257,7 @@ loop:
|
||||
if(ec)
|
||||
goto done;
|
||||
state_ = state::chunk_header;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case state::chunk_header:
|
||||
parse_chunk_header(p, n, ec);
|
||||
@@ -931,5 +934,6 @@ do_field(field f,
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+9
-5
@@ -4,15 +4,18 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_CHUNK_ENCODE_IPP
|
||||
#define BEAST_HTTP_IMPL_CHUNK_ENCODE_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_CHUNK_ENCODE_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_CHUNK_ENCODE_IPP
|
||||
|
||||
#include <beast/core/detail/varint.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/detail/rfc7230.hpp>
|
||||
#include <boost/beast/core/detail/varint.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/detail/rfc7230.hpp>
|
||||
#include <algorithm>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -699,5 +702,6 @@ end() const ->
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,9 +4,11 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_ERROR_IPP
|
||||
#define BEAST_HTTP_IMPL_ERROR_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_ERROR_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_ERROR_IPP
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
@@ -20,6 +22,7 @@ struct is_error_code_enum<beast::http::error>
|
||||
} // system
|
||||
} // boost
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -113,5 +116,6 @@ make_error_code(error ev)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_FIELD_IPP
|
||||
#define BEAST_HTTP_IMPL_FIELD_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_FIELD_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_FIELD_IPP
|
||||
|
||||
#include <beast/core/string.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include <boost/assert.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -553,5 +556,6 @@ string_to_field(string_view s)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,29 +4,32 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_FIELDS_IPP
|
||||
#define BEAST_HTTP_IMPL_FIELDS_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_FIELDS_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_FIELDS_IPP
|
||||
|
||||
#include <beast/core/buffer_cat.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/static_string.hpp>
|
||||
#include <beast/core/detail/buffers_ref.hpp>
|
||||
#include <beast/http/verb.hpp>
|
||||
#include <beast/http/rfc7230.hpp>
|
||||
#include <beast/http/status.hpp>
|
||||
#include <beast/http/chunk_encode.hpp>
|
||||
#include <boost/beast/core/buffer_cat.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/static_string.hpp>
|
||||
#include <boost/beast/core/detail/buffers_ref.hpp>
|
||||
#include <boost/beast/http/verb.hpp>
|
||||
#include <boost/beast/http/rfc7230.hpp>
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <boost/beast/http/chunk_encode.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 60000
|
||||
// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56437
|
||||
#ifndef BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#define BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#ifndef BOOST_BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#define BOOST_BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -999,7 +1002,7 @@ set_chunked_impl(bool value)
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#ifdef BOOST_BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56437
|
||||
std::string s;
|
||||
#else
|
||||
@@ -1036,7 +1039,7 @@ set_chunked_impl(bool value)
|
||||
}
|
||||
catch(std::length_error const&)
|
||||
{
|
||||
#ifdef BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#ifdef BOOST_BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56437
|
||||
std::string s;
|
||||
#else
|
||||
@@ -1093,7 +1096,7 @@ set_keep_alive_impl(
|
||||
}
|
||||
catch(std::length_error const&)
|
||||
{
|
||||
#ifdef BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
#ifdef BOOST_BEAST_HTTP_NO_FIELDS_BASIC_STRING_ALLOCATOR
|
||||
// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56437
|
||||
std::string s;
|
||||
#else
|
||||
@@ -1364,5 +1367,6 @@ swap(basic_fields& other, std::false_type)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
+12
-8
@@ -4,17 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_FILE_BODY_WIN32_IPP
|
||||
#define BEAST_HTTP_IMPL_FILE_BODY_WIN32_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_FILE_BODY_WIN32_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_FILE_BODY_WIN32_IPP
|
||||
|
||||
#if BEAST_USE_WIN32_FILE
|
||||
#if BOOST_BEAST_USE_WIN32_FILE
|
||||
|
||||
#include <beast/core/async_result.hpp>
|
||||
#include <beast/core/bind_handler.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/clamp.hpp>
|
||||
#include <beast/http/serializer.hpp>
|
||||
#include <boost/beast/core/async_result.hpp>
|
||||
#include <boost/beast/core/bind_handler.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/clamp.hpp>
|
||||
#include <boost/beast/http/serializer.hpp>
|
||||
#include <boost/asio/basic_stream_socket.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
@@ -26,6 +28,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -575,6 +578,7 @@ async_write_some(
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,16 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_MESSAGE_IPP
|
||||
#define BEAST_HTTP_IMPL_MESSAGE_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_MESSAGE_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_MESSAGE_IPP
|
||||
|
||||
#include <beast/core/error.hpp>
|
||||
#include <beast/core/detail/type_traits.hpp>
|
||||
#include <boost/beast/core/error.hpp>
|
||||
#include <boost/beast/core/detail/type_traits.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -411,5 +414,6 @@ swap(
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_PARSER_IPP
|
||||
#define BEAST_HTTP_IMPL_PARSER_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_PARSER_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_PARSER_IPP
|
||||
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -47,5 +50,6 @@ parser(parser<isRequest, OtherBody, Allocator>&& other,
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,18 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_READ_IPP_HPP
|
||||
#define BEAST_HTTP_IMPL_READ_IPP_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_READ_IPP_HPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_READ_IPP_HPP
|
||||
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/parser.hpp>
|
||||
#include <beast/http/read.hpp>
|
||||
#include <beast/core/bind_handler.hpp>
|
||||
#include <beast/core/handler_ptr.hpp>
|
||||
#include <beast/core/read_size.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/parser.hpp>
|
||||
#include <boost/beast/http/read.hpp>
|
||||
#include <boost/beast/core/bind_handler.hpp>
|
||||
#include <boost/beast/core/handler_ptr.hpp>
|
||||
#include <boost/beast/core/read_size.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
#include <boost/asio/handler_invoke_hook.hpp>
|
||||
@@ -24,6 +26,7 @@
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -788,5 +791,6 @@ async_read(
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_RFC7230_IPP
|
||||
#define BEAST_HTTP_IMPL_RFC7230_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_RFC7230_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_RFC7230_IPP
|
||||
|
||||
#include <beast/http/detail/rfc7230.hpp>
|
||||
#include <boost/beast/http/detail/rfc7230.hpp>
|
||||
#include <iterator>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -563,6 +566,7 @@ validate_list(detail::basic_parsed_list<
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
|
||||
+22
-18
@@ -4,17 +4,20 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_SERIALIZER_IPP
|
||||
#define BEAST_HTTP_IMPL_SERIALIZER_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_SERIALIZER_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_SERIALIZER_IPP
|
||||
|
||||
#include <beast/core/detail/buffers_ref.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/status.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/beast/core/detail/buffers_ref.hpp>
|
||||
#include <boost/beast/http/error.hpp>
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <ostream>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -83,7 +86,7 @@ next(error_code& ec, Visit&& visit)
|
||||
if(chunked_)
|
||||
goto go_init_c;
|
||||
s_ = do_init;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_init:
|
||||
@@ -106,7 +109,7 @@ next(error_code& ec, Visit&& visit)
|
||||
frd_->get(),
|
||||
result->first};
|
||||
s_ = do_header;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_header:
|
||||
@@ -122,7 +125,7 @@ next(error_code& ec, Visit&& visit)
|
||||
|
||||
case do_body:
|
||||
s_ = do_body + 1;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case do_body + 1:
|
||||
{
|
||||
@@ -134,7 +137,7 @@ next(error_code& ec, Visit&& visit)
|
||||
more_ = result->second;
|
||||
v_ = cb3_t{result->first};
|
||||
s_ = do_body + 2;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_body + 2:
|
||||
@@ -160,7 +163,7 @@ next(error_code& ec, Visit&& visit)
|
||||
if(! result)
|
||||
goto go_header_only_c;
|
||||
more_ = result->second;
|
||||
#ifndef BEAST_NO_BIG_VARIANTS
|
||||
#ifndef BOOST_BEAST_NO_BIG_VARIANTS
|
||||
if(! more_)
|
||||
{
|
||||
// do it all in one buffer
|
||||
@@ -187,7 +190,7 @@ next(error_code& ec, Visit&& visit)
|
||||
result->first,
|
||||
chunk_crlf{}};
|
||||
s_ = do_header_c;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_header_c:
|
||||
@@ -203,7 +206,7 @@ next(error_code& ec, Visit&& visit)
|
||||
|
||||
case do_body_c:
|
||||
s_ = do_body_c + 1;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case do_body_c + 1:
|
||||
{
|
||||
@@ -213,7 +216,7 @@ next(error_code& ec, Visit&& visit)
|
||||
if(! result)
|
||||
goto go_final_c;
|
||||
more_ = result->second;
|
||||
#ifndef BEAST_NO_BIG_VARIANTS
|
||||
#ifndef BOOST_BEAST_NO_BIG_VARIANTS
|
||||
if(! more_)
|
||||
{
|
||||
// do it all in one buffer
|
||||
@@ -238,14 +241,14 @@ next(error_code& ec, Visit&& visit)
|
||||
result->first,
|
||||
chunk_crlf{}};
|
||||
s_ = do_body_c + 2;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
}
|
||||
|
||||
case do_body_c + 2:
|
||||
do_visit<pcb5_t, cb5_t>(ec, visit);
|
||||
break;
|
||||
|
||||
#ifndef BEAST_NO_BIG_VARIANTS
|
||||
#ifndef BOOST_BEAST_NO_BIG_VARIANTS
|
||||
go_body_final_c:
|
||||
s_ = do_body_final_c;
|
||||
case do_body_final_c:
|
||||
@@ -267,7 +270,7 @@ next(error_code& ec, Visit&& visit)
|
||||
boost::asio::const_buffers_1{nullptr, 0},
|
||||
chunk_crlf{}};
|
||||
s_ = do_final_c + 1;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case do_final_c + 1:
|
||||
do_visit<pcb8_t, cb8_t>(ec, visit);
|
||||
@@ -382,7 +385,7 @@ consume(std::size_t n)
|
||||
s_ = do_final_c;
|
||||
break;
|
||||
|
||||
#ifndef BEAST_NO_BIG_VARIANTS
|
||||
#ifndef BOOST_BEAST_NO_BIG_VARIANTS
|
||||
case do_body_final_c:
|
||||
{
|
||||
auto& b = boost::get<cb6_t>(v_);
|
||||
@@ -433,5 +436,6 @@ consume(std::size_t n)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,13 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_STATUS_IPP
|
||||
#define BEAST_HTTP_IMPL_STATUS_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_STATUS_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_STATUS_IPP
|
||||
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -25,7 +28,7 @@ int_to_status(unsigned v)
|
||||
case status::continue_:
|
||||
case status::switching_protocols:
|
||||
case status::processing:
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
// 2xx
|
||||
case status::ok:
|
||||
@@ -38,7 +41,7 @@ int_to_status(unsigned v)
|
||||
case status::multi_status:
|
||||
case status::already_reported:
|
||||
case status::im_used:
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
// 3xx
|
||||
case status::multiple_choices:
|
||||
@@ -49,7 +52,7 @@ int_to_status(unsigned v)
|
||||
case status::use_proxy:
|
||||
case status::temporary_redirect:
|
||||
case status::permanent_redirect:
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
// 4xx
|
||||
case status::bad_request:
|
||||
@@ -81,7 +84,7 @@ int_to_status(unsigned v)
|
||||
case status::connection_closed_without_response:
|
||||
case status::unavailable_for_legal_reasons:
|
||||
case status::client_closed_request:
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
// 5xx
|
||||
case status::internal_server_error:
|
||||
@@ -244,5 +247,6 @@ operator<<(std::ostream& os, status v)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,17 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_VERB_IPP
|
||||
#define BEAST_HTTP_IMPL_VERB_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_VERB_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_VERB_IPP
|
||||
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -156,7 +159,7 @@ string_to_verb(string_view v)
|
||||
return verb::connect;
|
||||
if(eq(v, "PY"))
|
||||
return verb::copy;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -217,7 +220,7 @@ string_to_verb(string_view v)
|
||||
case 'O':
|
||||
if(eq(v, "VE"))
|
||||
return verb::move;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -261,7 +264,7 @@ string_to_verb(string_view v)
|
||||
return verb::purge;
|
||||
if(eq(v, "T"))
|
||||
return verb::put;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
default:
|
||||
break;
|
||||
@@ -329,5 +332,6 @@ string_to_verb(string_view s)
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_IMPL_WRITE_IPP
|
||||
#define BEAST_HTTP_IMPL_WRITE_IPP
|
||||
#ifndef BOOST_BEAST_HTTP_IMPL_WRITE_IPP
|
||||
#define BOOST_BEAST_HTTP_IMPL_WRITE_IPP
|
||||
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <beast/core/bind_handler.hpp>
|
||||
#include <beast/core/ostream.hpp>
|
||||
#include <beast/core/handler_alloc.hpp>
|
||||
#include <beast/core/handler_ptr.hpp>
|
||||
#include <beast/core/type_traits.hpp>
|
||||
#include <beast/core/detail/config.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/beast/core/bind_handler.hpp>
|
||||
#include <boost/beast/core/ostream.hpp>
|
||||
#include <boost/beast/core/handler_alloc.hpp>
|
||||
#include <boost/beast/core/handler_ptr.hpp>
|
||||
#include <boost/beast/core/type_traits.hpp>
|
||||
#include <boost/beast/core/detail/config.hpp>
|
||||
#include <boost/asio/handler_alloc_hook.hpp>
|
||||
#include <boost/asio/handler_continuation_hook.hpp>
|
||||
#include <boost/asio/handler_invoke_hook.hpp>
|
||||
@@ -24,6 +26,7 @@
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
namespace detail {
|
||||
@@ -289,7 +292,7 @@ operator()(error_code ec)
|
||||
|
||||
case 2:
|
||||
state_ = 3;
|
||||
BEAST_FALLTHROUGH;
|
||||
BOOST_BEAST_FALLTHROUGH;
|
||||
|
||||
case 3:
|
||||
{
|
||||
@@ -882,5 +885,6 @@ operator<<(std::ostream& os,
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#endif
|
||||
@@ -4,17 +4,19 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_MESSAGE_HPP
|
||||
#define BEAST_HTTP_MESSAGE_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_MESSAGE_HPP
|
||||
#define BOOST_BEAST_HTTP_MESSAGE_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/http/fields.hpp>
|
||||
#include <beast/http/verb.hpp>
|
||||
#include <beast/http/status.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <beast/core/string.hpp>
|
||||
#include <beast/core/detail/integer_sequence.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/http/fields.hpp>
|
||||
#include <boost/beast/http/verb.hpp>
|
||||
#include <boost/beast/http/status.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/beast/core/string.hpp>
|
||||
#include <boost/beast/core/detail/integer_sequence.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <memory>
|
||||
@@ -23,6 +25,7 @@
|
||||
#include <tuple>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -40,7 +43,7 @@ namespace http {
|
||||
|
||||
A `header` includes the start-line and header-fields.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<bool isRequest, class Fields = fields>
|
||||
struct header : Fields
|
||||
|
||||
@@ -56,7 +59,7 @@ struct header<true, Fields> : Fields
|
||||
"Fields requirements not met");
|
||||
|
||||
/// Indicates if the header is a request or response.
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
using is_request = std::integral_constant<bool, isRequest>;
|
||||
#else
|
||||
using is_request = std::true_type;
|
||||
@@ -171,7 +174,7 @@ struct header<true, Fields> : Fields
|
||||
not convertible to @ref header, @ref verb, or
|
||||
@ref status.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class... Args>
|
||||
explicit
|
||||
header(Args&&... args);
|
||||
@@ -356,7 +359,7 @@ struct header<false, Fields> : Fields
|
||||
reason(string_view s);
|
||||
|
||||
private:
|
||||
#if ! BEAST_DOXYGEN
|
||||
#if ! BOOST_BEAST_DOXYGEN
|
||||
template<bool, class, class>
|
||||
friend struct message;
|
||||
|
||||
@@ -479,7 +482,7 @@ struct message : header<isRequest, Fields>
|
||||
|
||||
@note This function is only available when `isRequest == true`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
message(verb method, string_view target, unsigned version);
|
||||
#else
|
||||
template<class Version,
|
||||
@@ -500,7 +503,7 @@ struct message : header<isRequest, Fields>
|
||||
|
||||
@note This function is only available when `isRequest == true`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class BodyArg>
|
||||
message(verb method, string_view target,
|
||||
unsigned version, BodyArg&& body_arg);
|
||||
@@ -526,7 +529,7 @@ struct message : header<isRequest, Fields>
|
||||
|
||||
@note This function is only available when `isRequest == true`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class BodyArg, class FieldsArg>
|
||||
message(verb method, string_view target, unsigned version,
|
||||
BodyArg&& body_arg, FieldsArg&& fields_arg);
|
||||
@@ -546,7 +549,7 @@ struct message : header<isRequest, Fields>
|
||||
|
||||
@note This member is only available when `isRequest == false`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
message(status result, unsigned version);
|
||||
#else
|
||||
template<class Version,
|
||||
@@ -565,7 +568,7 @@ struct message : header<isRequest, Fields>
|
||||
|
||||
@note This member is only available when `isRequest == false`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class BodyArg>
|
||||
message(status result, unsigned version, BodyArg&& body_arg);
|
||||
#else
|
||||
@@ -587,7 +590,7 @@ struct message : header<isRequest, Fields>
|
||||
|
||||
@note This member is only available when `isRequest == false`.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class BodyArg, class FieldsArg>
|
||||
message(status result, unsigned version,
|
||||
BodyArg&& body_arg, FieldsArg&& fields_arg);
|
||||
@@ -809,7 +812,7 @@ using response = message<false, Body, Fields>;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
/** Swap two header objects.
|
||||
|
||||
@par Requirements
|
||||
@@ -835,7 +838,8 @@ swap(
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/message.ipp>
|
||||
#include <boost/beast/http/impl/message.ipp>
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,16 @@
|
||||
// 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)
|
||||
//
|
||||
// Official repository: https://github.com/boostorg/beast
|
||||
//
|
||||
|
||||
#ifndef BEAST_HTTP_PARSER_HPP
|
||||
#define BEAST_HTTP_PARSER_HPP
|
||||
#ifndef BOOST_BEAST_HTTP_PARSER_HPP
|
||||
#define BOOST_BEAST_HTTP_PARSER_HPP
|
||||
|
||||
#include <beast/config.hpp>
|
||||
#include <beast/http/basic_parser.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <boost/beast/config.hpp>
|
||||
#include <boost/beast/http/basic_parser.hpp>
|
||||
#include <boost/beast/http/message.hpp>
|
||||
#include <boost/beast/http/type_traits.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <boost/throw_exception.hpp>
|
||||
#include <functional>
|
||||
@@ -19,6 +21,7 @@
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
namespace boost {
|
||||
namespace beast {
|
||||
namespace http {
|
||||
|
||||
@@ -106,7 +109,7 @@ public:
|
||||
resolution only if the first argument is not a
|
||||
@ref parser.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class... Args>
|
||||
explicit
|
||||
parser(Args&&... args);
|
||||
@@ -150,7 +153,7 @@ public:
|
||||
@note This function participates in overload resolution only
|
||||
if the other parser uses a different body type.
|
||||
*/
|
||||
#if BEAST_DOXYGEN
|
||||
#if BOOST_BEAST_DOXYGEN
|
||||
template<class OtherBody, class... Args>
|
||||
#else
|
||||
template<class OtherBody, class... Args,
|
||||
@@ -426,7 +429,8 @@ using response_parser = parser<false, Body, Allocator>;
|
||||
|
||||
} // http
|
||||
} // beast
|
||||
} // boost
|
||||
|
||||
#include <beast/http/impl/parser.ipp>
|
||||
#include <boost/beast/http/impl/parser.ipp>
|
||||
|
||||
#endif
|
||||
Loaded 100 of 375 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user