Add forward declaration headers

This commit is contained in:
Mohammad Nejati
2024-10-15 12:12:48 +00:00
committed by Mohammad Nejati
parent 225a25b57c
commit 0078272001
51 changed files with 694 additions and 57 deletions

View File

@@ -16,31 +16,43 @@ add_executable (tests-beast-http
${EXTRAS_FILES}
Jamfile
any_completion_handler.cpp
message_fuzz.hpp
test_parser.hpp
basic_dynamic_body_fwd.cpp
basic_dynamic_body.cpp
basic_file_body_fwd.cpp
basic_file_body.cpp
basic_parser.cpp
buffer_body_fwd.cpp
buffer_body.cpp
chunk_encode.cpp
deferred.cpp
dynamic_body_fwd.cpp
dynamic_body.cpp
empty_body_fwd.cpp
empty_body.cpp
error.cpp
field.cpp
field_compiles.cpp
field.cpp
fields_fwd.cpp
fields.cpp
file_body_fwd.cpp
file_body.cpp
message_fwd.cpp
message_generator_fwd.cpp
message_generator.cpp
message.cpp
parser_fwd.cpp
parser.cpp
read.cpp
rfc7230.cpp
serializer_fwd.cpp
serializer.cpp
span_body_fwd.cpp
span_body.cpp
status.cpp
string_body_fwd.cpp
string_body.cpp
type_traits.cpp
vector_body_fwd.cpp
vector_body.cpp
verb.cpp
write.cpp

View File

@@ -9,28 +9,43 @@
local SOURCES =
any_completion_handler.cpp
basic_dynamic_body_fwd.cpp
basic_dynamic_body.cpp
basic_file_body_fwd.cpp
basic_file_body.cpp
basic_parser.cpp
buffer_body_fwd.cpp
buffer_body.cpp
chunk_encode.cpp
deferred.cpp
dynamic_body_fwd.cpp
dynamic_body.cpp
empty_body_fwd.cpp
empty_body.cpp
error.cpp
field.cpp
field_compiles.cpp
field.cpp
fields_fwd.cpp
fields.cpp
file_body_fwd.cpp
file_body.cpp
message_fwd.cpp
message_generator_fwd.cpp
message_generator.cpp
message.cpp
parser_fwd.cpp
parser.cpp
read.cpp
rfc7230.cpp
serializer_fwd.cpp
serializer.cpp
span_body_fwd.cpp
span_body.cpp
status.cpp
string_body_fwd.cpp
string_body.cpp
type_traits.cpp
vector_body_fwd.cpp
vector_body.cpp
verb.cpp
write.cpp

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/basic_dynamic_body_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/basic_file_body_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/buffer_body_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/dynamic_body_fwd.hpp>

View File

@@ -10,6 +10,8 @@
// Test that header file is self-contained.
#include <boost/beast/http/empty_body.hpp>
#include <boost/beast/http/type_traits.hpp>
namespace boost {
namespace beast {
namespace http {

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/empty_body_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/fields_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/file_body_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/message_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/message_generator_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/parser_fwd.hpp>

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/serializer_fwd.hpp>

View File

@@ -10,9 +10,10 @@
// Test that header file is self-contained.
#include <boost/beast/http/span_body.hpp>
#include <boost/beast/_experimental/unit_test/suite.hpp>
#include <boost/beast/core/buffer_traits.hpp>
#include <boost/beast/http/message.hpp>
#include <boost/beast/_experimental/unit_test/suite.hpp>
#include <boost/beast/http/type_traits.hpp>
namespace boost {
namespace beast {

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/span_body_fwd.hpp>

View File

@@ -10,6 +10,8 @@
// Test that header file is self-contained.
#include <boost/beast/http/string_body.hpp>
#include <boost/beast/http/type_traits.hpp>
namespace boost {
namespace beast {
namespace http {

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/string_body_fwd.hpp>

View File

@@ -11,6 +11,7 @@
#include <boost/beast/http/type_traits.hpp>
#include <boost/beast/http/empty_body.hpp>
#include <boost/beast/http/message.hpp>
#include <boost/beast/http/string_body.hpp>
#include <boost/beast/core/buffer_traits.hpp>
#include <boost/beast/core/buffers_cat.hpp>

View File

@@ -9,6 +9,9 @@
// Test that header file is self-contained.
#include <boost/beast/http/vector_body.hpp>
#include <boost/beast/http/type_traits.hpp>
#include <cstddef>
namespace boost {

View File

@@ -0,0 +1,11 @@
//
// Copyright (c) 2024 Mohammad Nejati
//
// 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
//
// Test that header file is self-contained.
#include <boost/beast/http/vector_body_fwd.hpp>