summaryrefslogtreecommitdiff
path: root/include/security_headers_middleware.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2017-04-03 19:47:01 +0300
committerEd Tanous <ed.tanous@intel.com>2017-04-03 19:47:01 +0300
commit8041f31acacc8404f13b1302bf9030bc047cf452 (patch)
treec80a1be66557106bd46b193ae3521b06bbc1875d /include/security_headers_middleware.hpp
parentb4d29f40923bd2d6af2666e10109469a9e557493 (diff)
downloadbmcweb-8041f31acacc8404f13b1302bf9030bc047cf452.tar.xz
incremental
Diffstat (limited to 'include/security_headers_middleware.hpp')
-rw-r--r--include/security_headers_middleware.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/security_headers_middleware.hpp b/include/security_headers_middleware.hpp
new file mode 100644
index 0000000000..7e8454365a
--- /dev/null
+++ b/include/security_headers_middleware.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <crow/http_request.h>
+#include <crow/http_response.h>
+
+namespace crow {
+
+struct SecurityHeadersMiddleware {
+ struct context {};
+
+ void before_handle(crow::request& req, response& res, context& ctx);
+
+ void after_handle(request& req, response& res, context& ctx);
+};
+} \ No newline at end of file