Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::middleware::ProxyOptions Struct Reference

Options for Proxy middleware. More...

#include <Proxy.hpp>

Public Attributes

std::string target_host
 
int target_port
 
std::string strip_prefix = ""
 
bool use_tls = false
 Connect to the upstream over TLS (also implied by port 443)
 
bool verify_tls = true
 Verify the upstream certificate chain and hostname.
 
std::string ca_file
 Optional PEM CA bundle for upstream verification.
 
bool trust_forwarded_headers = false
 Keep and extend client-supplied X-Forwarded-* headers.
 

Detailed Description

Options for Proxy middleware.

Member Data Documentation

◆ ca_file

std::string orbit::middleware::ProxyOptions::ca_file

Optional PEM CA bundle for upstream verification.

◆ strip_prefix

std::string orbit::middleware::ProxyOptions::strip_prefix = ""

◆ target_host

std::string orbit::middleware::ProxyOptions::target_host

◆ target_port

int orbit::middleware::ProxyOptions::target_port

◆ trust_forwarded_headers

bool orbit::middleware::ProxyOptions::trust_forwarded_headers = false

Keep and extend client-supplied X-Forwarded-* headers.

◆ use_tls

bool orbit::middleware::ProxyOptions::use_tls = false

Connect to the upstream over TLS (also implied by port 443)

◆ verify_tls

bool orbit::middleware::ProxyOptions::verify_tls = true

Verify the upstream certificate chain and hostname.


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