A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
a11::net::Http2TlsOptions Struct Reference

TLS settings for an HTTP/2 client or server (certificates, peer verification). More...

#include <cpp/a11/net/http2.h>

Public Member Functions

absl::Status Validate () const
 Validate certificate/key combinations before opening a socket.
 

Public Attributes

bool enabled = false
 Negotiate TLS instead of clear-text HTTP/2.
 
bool verify_peer = true
 Validate the remote certificate and hostname.
 
std::string certificate_pem_file
 Local certificate chain, if needed.
 
std::string key_pem_file
 Private key matching the local certificate.
 
std::string ca_certificate_pem_file
 Optional custom trust roots.
 

Detailed Description

TLS settings for an HTTP/2 client or server (certificates, peer verification).

Member Function Documentation

◆ Validate()

absl::Status a11::net::Http2TlsOptions::Validate ( ) const

Validate certificate/key combinations before opening a socket.

Member Data Documentation

◆ ca_certificate_pem_file

std::string a11::net::Http2TlsOptions::ca_certificate_pem_file

Optional custom trust roots.

◆ certificate_pem_file

std::string a11::net::Http2TlsOptions::certificate_pem_file

Local certificate chain, if needed.

◆ enabled

bool a11::net::Http2TlsOptions::enabled = false

Negotiate TLS instead of clear-text HTTP/2.

◆ key_pem_file

std::string a11::net::Http2TlsOptions::key_pem_file

Private key matching the local certificate.

◆ verify_peer

bool a11::net::Http2TlsOptions::verify_peer = true

Validate the remote certificate and hostname.


The documentation for this struct was generated from the following files: