1#ifndef BOOST_BEAST_HTTP_H_INCLUDED
2#define BOOST_BEAST_HTTP_H_INCLUDED 1
6#if __has_include(<boost/beast/core/tcp_stream.hpp>)
7#define HAS_BOOST_BEAST 1
9#include <boost/asio/io_context.hpp>
10#include <boost/asio/ssl/context.hpp>
13class BoostBeastHttp :
public HttpApi {
14 boost::asio::io_context& io_;
15 boost::asio::ssl::context
mutable ssl_ctx_ =
16 boost::asio::ssl::context{boost::asio::ssl::context::sslv23_client};
19 BoostBeastHttp(boost::asio::io_context&);
20 ~BoostBeastHttp() noexcept
override {}
21 Canceller SendHttpRequest(ReqDesc, OnComplete)
const override;