mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 23:04:35 +02:00
Header file tidying
This commit is contained in:
@@ -4,6 +4,7 @@ Version 78:
|
|||||||
* Documentation work
|
* Documentation work
|
||||||
* Use make_unique_noinit
|
* Use make_unique_noinit
|
||||||
* Fix warning in zlib
|
* Fix warning in zlib
|
||||||
|
* Header file tidying
|
||||||
|
|
||||||
HTTP:
|
HTTP:
|
||||||
|
|
||||||
|
@@ -21,7 +21,9 @@
|
|||||||
#include <beast/core/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <beast/core/file.hpp>
|
#include <beast/core/file.hpp>
|
||||||
#include <beast/core/file_base.hpp>
|
#include <beast/core/file_base.hpp>
|
||||||
|
#include <beast/core/file_posix.hpp>
|
||||||
#include <beast/core/file_stdio.hpp>
|
#include <beast/core/file_stdio.hpp>
|
||||||
|
#include <beast/core/file_win32.hpp>
|
||||||
#include <beast/core/flat_buffer.hpp>
|
#include <beast/core/flat_buffer.hpp>
|
||||||
#include <beast/core/handler_alloc.hpp>
|
#include <beast/core/handler_alloc.hpp>
|
||||||
#include <beast/core/handler_ptr.hpp>
|
#include <beast/core/handler_ptr.hpp>
|
||||||
@@ -31,8 +33,8 @@
|
|||||||
#include <beast/core/span.hpp>
|
#include <beast/core/span.hpp>
|
||||||
#include <beast/core/static_buffer.hpp>
|
#include <beast/core/static_buffer.hpp>
|
||||||
#include <beast/core/static_string.hpp>
|
#include <beast/core/static_string.hpp>
|
||||||
#include <beast/core/string_param.hpp>
|
|
||||||
#include <beast/core/string.hpp>
|
#include <beast/core/string.hpp>
|
||||||
|
#include <beast/core/string_param.hpp>
|
||||||
#include <beast/core/type_traits.hpp>
|
#include <beast/core/type_traits.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#ifndef BEAST_CORE_FILE_HPP
|
#ifndef BEAST_CORE_FILE_HPP
|
||||||
#define BEAST_CORE_FILE_HPP
|
#define BEAST_CORE_FILE_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
#include <beast/core/file_base.hpp>
|
#include <beast/core/file_base.hpp>
|
||||||
#include <beast/core/file_posix.hpp>
|
#include <beast/core/file_posix.hpp>
|
||||||
#include <beast/core/file_stdio.hpp>
|
#include <beast/core/file_stdio.hpp>
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#ifndef BEAST_CORE_FILE_BASE_HPP
|
#ifndef BEAST_CORE_FILE_BASE_HPP
|
||||||
#define BEAST_CORE_FILE_BASE_HPP
|
#define BEAST_CORE_FILE_BASE_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
#include <beast/core/string.hpp>
|
#include <beast/core/string.hpp>
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#ifndef BEAST_CORE_FILE_STDIO_HPP
|
#ifndef BEAST_CORE_FILE_STDIO_HPP
|
||||||
#define BEAST_CORE_FILE_STDIO_HPP
|
#define BEAST_CORE_FILE_STDIO_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
#include <beast/core/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <beast/core/file_base.hpp>
|
#include <beast/core/file_base.hpp>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#ifndef BEAST_READ_SIZE_HELPER_HPP
|
#ifndef BEAST_READ_SIZE_HELPER_HPP
|
||||||
#define BEAST_READ_SIZE_HELPER_HPP
|
#define BEAST_READ_SIZE_HELPER_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
#include <beast/core/type_traits.hpp>
|
#include <beast/core/type_traits.hpp>
|
||||||
#include <boost/throw_exception.hpp>
|
#include <boost/throw_exception.hpp>
|
||||||
|
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#ifndef BEAST_STRING_HPP
|
#ifndef BEAST_STRING_HPP
|
||||||
#define BEAST_STRING_HPP
|
#define BEAST_STRING_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
#include <boost/version.hpp>
|
#include <boost/version.hpp>
|
||||||
#ifndef BEAST_NO_BOOST_STRING_VIEW
|
#ifndef BEAST_NO_BOOST_STRING_VIEW
|
||||||
# if BOOST_VERSION >= 106400
|
# if BOOST_VERSION >= 106400
|
||||||
|
@@ -28,8 +28,8 @@
|
|||||||
#include <beast/http/string_body.hpp>
|
#include <beast/http/string_body.hpp>
|
||||||
#include <beast/http/string_view_body.hpp>
|
#include <beast/http/string_view_body.hpp>
|
||||||
#include <beast/http/type_traits.hpp>
|
#include <beast/http/type_traits.hpp>
|
||||||
#include <beast/http/verb.hpp>
|
|
||||||
#include <beast/http/vector_body.hpp>
|
#include <beast/http/vector_body.hpp>
|
||||||
|
#include <beast/http/verb.hpp>
|
||||||
#include <beast/http/write.hpp>
|
#include <beast/http/write.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#ifndef BEAST_HTTP_FILE_BODY_HPP
|
#ifndef BEAST_HTTP_FILE_BODY_HPP
|
||||||
#define BEAST_HTTP_FILE_BODY_HPP
|
#define BEAST_HTTP_FILE_BODY_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
#include <beast/core/error.hpp>
|
#include <beast/core/error.hpp>
|
||||||
#include <beast/core/file.hpp>
|
#include <beast/core/file.hpp>
|
||||||
#include <beast/core/type_traits.hpp>
|
#include <beast/core/type_traits.hpp>
|
||||||
|
@@ -11,6 +11,8 @@
|
|||||||
#include <beast/config.hpp>
|
#include <beast/config.hpp>
|
||||||
|
|
||||||
#include <beast/zlib/deflate_stream.hpp>
|
#include <beast/zlib/deflate_stream.hpp>
|
||||||
|
#include <beast/zlib/error.hpp>
|
||||||
#include <beast/zlib/inflate_stream.hpp>
|
#include <beast/zlib/inflate_stream.hpp>
|
||||||
|
#include <beast/zlib/zlib.hpp>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -4,6 +4,23 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
// 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)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifndef BEAST_ZLIB_DEFLATE_STREAM_HPP
|
||||||
|
#define BEAST_ZLIB_DEFLATE_STREAM_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
|
#include <beast/zlib/error.hpp>
|
||||||
|
#include <beast/zlib/zlib.hpp>
|
||||||
|
#include <beast/zlib/detail/deflate_stream.hpp>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstring>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
namespace beast {
|
||||||
|
namespace zlib {
|
||||||
|
|
||||||
// This is a derivative work based on Zlib, copyright below:
|
// This is a derivative work based on Zlib, copyright below:
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
||||||
@@ -32,22 +49,6 @@
|
|||||||
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BEAST_ZLIB_DEFLATE_STREAM_HPP
|
|
||||||
#define BEAST_ZLIB_DEFLATE_STREAM_HPP
|
|
||||||
|
|
||||||
#include <beast/config.hpp>
|
|
||||||
#include <beast/zlib/error.hpp>
|
|
||||||
#include <beast/zlib/zlib.hpp>
|
|
||||||
#include <beast/zlib/detail/deflate_stream.hpp>
|
|
||||||
#include <algorithm>
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstring>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
namespace beast {
|
|
||||||
namespace zlib {
|
|
||||||
|
|
||||||
/** Raw deflate compressor.
|
/** Raw deflate compressor.
|
||||||
|
|
||||||
This is a port of zlib's "deflate" functionality to C++.
|
This is a port of zlib's "deflate" functionality to C++.
|
||||||
|
@@ -4,6 +4,16 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
// 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)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifndef BEAST_ZLIB_ERROR_HPP
|
||||||
|
#define BEAST_ZLIB_ERROR_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
|
#include <beast/core/error.hpp>
|
||||||
|
|
||||||
|
namespace beast {
|
||||||
|
namespace zlib {
|
||||||
|
|
||||||
// This is a derivative work based on Zlib, copyright below:
|
// This is a derivative work based on Zlib, copyright below:
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
||||||
@@ -32,15 +42,6 @@
|
|||||||
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BEAST_ZLIB_ERROR_HPP
|
|
||||||
#define BEAST_ZLIB_ERROR_HPP
|
|
||||||
|
|
||||||
#include <beast/config.hpp>
|
|
||||||
#include <beast/core/error.hpp>
|
|
||||||
|
|
||||||
namespace beast {
|
|
||||||
namespace zlib {
|
|
||||||
|
|
||||||
/** Error codes returned by the codec.
|
/** Error codes returned by the codec.
|
||||||
*/
|
*/
|
||||||
enum class error
|
enum class error
|
||||||
|
@@ -4,6 +4,13 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
// 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)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifndef BEAST_ZLIB_INFLATE_STREAM_HPP
|
||||||
|
#define BEAST_ZLIB_INFLATE_STREAM_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
|
#include <beast/zlib/detail/inflate_stream.hpp>
|
||||||
|
|
||||||
// This is a derivative work based on Zlib, copyright below:
|
// This is a derivative work based on Zlib, copyright below:
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
||||||
@@ -32,12 +39,6 @@
|
|||||||
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BEAST_ZLIB_INFLATE_STREAM_HPP
|
|
||||||
#define BEAST_ZLIB_INFLATE_STREAM_HPP
|
|
||||||
|
|
||||||
#include <beast/config.hpp>
|
|
||||||
#include <beast/zlib/detail/inflate_stream.hpp>
|
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace zlib {
|
namespace zlib {
|
||||||
|
|
||||||
|
@@ -4,6 +4,14 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
// 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)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#ifndef BEAST_ZLIB_ZLIB_HPP
|
||||||
|
#define BEAST_ZLIB_ZLIB_HPP
|
||||||
|
|
||||||
|
#include <beast/config.hpp>
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
// This is a derivative work based on Zlib, copyright below:
|
// This is a derivative work based on Zlib, copyright below:
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
|
||||||
@@ -32,13 +40,6 @@
|
|||||||
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
(zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BEAST_ZLIB_ZLIB_HPP
|
|
||||||
#define BEAST_ZLIB_ZLIB_HPP
|
|
||||||
|
|
||||||
#include <beast/config.hpp>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
namespace beast {
|
namespace beast {
|
||||||
namespace zlib {
|
namespace zlib {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user