Rust

trusted

Module

Which forwarded headers the server believes for the client's address and scheme, when it runs behind a proxy.

Contents

use utopia_http::TrustedHeaders;
Rust
pub struct TrustedHeaders

Headers naming the client address and the scheme it used, read in order; the first usable value wins. Names are lowercased and trimmed, empty ones dropped.

The default trusts no address header and x-forwarded-proto for the scheme.

Also implements Default.