diff options
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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); |