Skip to content

Commit 1d2e13f

Browse files
feat: helmet middleware implementation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
1 parent 08339fe commit 1d2e13f

34 files changed

+1364
-2758
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ set(BOOST_HTTP_PROTO_DEPENDENCIES
5959
Boost::capy
6060
Boost::config
6161
Boost::core
62+
Boost::json
6263
Boost::mp11
6364
Boost::static_assert
6465
Boost::system
@@ -122,7 +123,7 @@ if (BOOST_HTTP_PROTO_IS_ROOT)
122123
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${BOOST_SRC_DIR}/tools/cmake/include")
123124
else ()
124125
# From Boost Package
125-
find_package(Boost REQUIRED COMPONENTS buffers filesystem url)
126+
find_package(Boost REQUIRED COMPONENTS buffers filesystem json url)
126127
foreach (BOOST_INCLUDE_LIBRARY ${BOOST_INCLUDE_LIBRARIES})
127128
if (NOT TARGET Boost::${BOOST_INCLUDE_LIBRARY})
128129
add_library(Boost::${BOOST_INCLUDE_LIBRARY} ALIAS Boost::headers)

build/Jamfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ lib boost_http_proto
4141
: requirements
4242
<library>/boost//buffers
4343
<library>/boost//capy
44+
<library>/boost/json//boost_json/<warnings-as-errors>off
4445
<library>/boost//url
4546
<include>../
4647
<define>BOOST_HTTP_PROTO_SOURCE
4748
: usage-requirements
4849
<library>/boost//buffers
4950
<library>/boost//capy
51+
<library>/boost/json//boost_json/<warnings-as-errors>off
5052
<library>/boost//url
5153
;
5254

include/boost/http_proto.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <boost/http_proto/field.hpp>
1515
#include <boost/http_proto/fields.hpp>
1616
#include <boost/http_proto/fields_base.hpp>
17-
#include <boost/http_proto/file.hpp>
18-
#include <boost/http_proto/file_mode.hpp>
1917
#include <boost/http_proto/file_sink.hpp>
2018
#include <boost/http_proto/file_source.hpp>
2119
#include <boost/http_proto/header_limits.hpp>

include/boost/http_proto/detail/file_posix.hpp

Lines changed: 0 additions & 116 deletions
This file was deleted.

include/boost/http_proto/detail/file_stdio.hpp

Lines changed: 0 additions & 92 deletions
This file was deleted.

include/boost/http_proto/detail/file_win32.hpp

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)