summaryrefslogtreecommitdiffstats
path: root/server/src/http_client.cpp
blob: 0f3d9e61e07435c4da4d88653e4d5d584b39c468 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module;

#include <boost/asio/ssl.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>

module routemon:http.client$impl;

import :http.client;

namespace routemon::http {

client::client(net::io_context& ioc) : ioc_{ioc}, resolver_{ioc}
{
  sslc_.set_default_verify_paths();
  sslc_.set_verify_mode(
      net::ssl::verify_peer | net::ssl::verify_fail_if_no_peer_cert);
}

} // namespace routemon::http