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

Options for trusted_proxies(). More...

#include <TrustedProxies.hpp>

Public Attributes

std::vector< std::string > proxies
 
std::string header = "X-Forwarded-For"
 "X-Forwarded-For" (default) or "Forwarded" (RFC 7239).
 

Detailed Description

Options for trusted_proxies().

Member Data Documentation

◆ header

std::string orbit::middleware::TrustedProxyOptions::header = "X-Forwarded-For"

"X-Forwarded-For" (default) or "Forwarded" (RFC 7239).

◆ proxies

std::vector<std::string> orbit::middleware::TrustedProxyOptions::proxies

Proxies whose forwarding headers are believed: addresses or CIDRs, e.g. {"127.0.0.1", "10.0.0.0/8", "::1"}.


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