Malloy
Loading...
Searching...
No Matches
malloy::client::http::connection_tls< ConnArgs > Class Template Reference

#include <connection_tls.hpp>

Inheritance diagram for malloy::client::http::connection_tls< ConnArgs >:
Collaboration diagram for malloy::client::http::connection_tls< ConnArgs >:

Public Member Functions

 connection_tls (std::shared_ptr< spdlog::logger > logger, boost::asio::io_context &io_ctx, boost::asio::ssl::context &tls_ctx, const std::uint64_t body_limit)
boost::beast::ssl_stream< malloy::tcp::stream<> > & stream ()
boost::asio::awaitable< void > hook_connected ()
malloy::error_code set_hostname (const std::string_view hostname)
Public Member Functions inherited from malloy::client::http::connection< connection_tls< ConnArgs... >, ConnArgs... >
 connection (std::shared_ptr< spdlog::logger > logger, const std::uint64_t body_limit)
boost::asio::awaitable< request_result< Filter > > run (malloy::http::request< ReqBody > req, Filter filter)

Additional Inherited Members

Protected Member Functions inherited from malloy::client::http::connection< connection_tls< ConnArgs... >, ConnArgs... >
void set_stream_timeout (const std::chrono::duration< Rep, Period > duration)
Protected Attributes inherited from malloy::client::http::connection< connection_tls< ConnArgs... >, ConnArgs... >
std::shared_ptr< spdlog::logger > m_logger

Detailed Description

template<typename... ConnArgs>
class malloy::client::http::connection_tls< ConnArgs >

A TLS (SSL) HTTPS connection.

Member Function Documentation

◆ set_hostname()

template<typename... ConnArgs>
malloy::error_code malloy::client::http::connection_tls< ConnArgs >::set_hostname ( const std::string_view hostname)
inline

Set the hostname.

This is used/needed for:

  • SNI (Server Name Indication) on the server side
  • Hostname certificate verification on the client side

The documentation for this class was generated from the following file: