summaryrefslogtreecommitdiffstats
path: root/server/src/http/core/client.cpp
blob: c0143b0ab74680acbecf0be5a815eb968d73dfad (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.core.client$impl;

import :http.core.client;

namespace routemon::http::core {

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::core