summaryrefslogtreecommitdiffhomepage
path: root/http.h
blob: 226490ebcc1ec5ac40e103224e20415238dd359d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);