summaryrefslogtreecommitdiffhomepage
path: root/http.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-12 15:50:15 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-12 15:50:15 +0100
commit2bb0d2ab46bf8104ab6e0b96fdefbeb20aa4c9e4 (patch)
tree7bd0e7104d687206422d2d882592cd70b35ea80b /http.h
parent7472e4e8e4897adc90f9e9030bb35ea07ded8b32 (diff)
Move https.* to http.*
Diffstat (limited to 'http.h')
-rw-r--r--http.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/http.h b/http.h
new file mode 100644
index 0000000..226490e
--- /dev/null
+++ b/http.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <boost/asio/steady_timer.hpp>
+#include <boost/beast/version.hpp>
+
+#include <memory>
+#include <string>
+#include <unordered_map>
+
+#include <boost/asio/dispatch.hpp>
+#include <boost/asio/strand.hpp>
+#include <boost/beast/ssl.hpp>
+#include <boost/asio/ssl.hpp>
+
+#include "config.h"
+#include "server.h"
+
+// plain / http
+void make_listener(boost::asio::io_context& ioc, boost::asio::ip::address address, unsigned short port, Server& server);
+
+// ssl / https
+void make_listener(boost::asio::io_context& ioc, boost::asio::ssl::context& ctx, boost::asio::ip::address address, unsigned short port, Server& server);