pub struct HeaderForwardingConfig {
pub enabled: bool,
pub deny: Vec<String>,
}Expand description
Client-to-upstream header forwarding (forward_client_headers /
forward_header_deny). The proxy rebuilds the upstream request, so this
decides which of the client’s own headers ride along.
Fields§
§enabled: boolForward client headers to the upstream at all (default true). false
relays only the proxy-managed headers (content type, trace).
deny: Vec<String>Extra headers to drop (case-insensitive), on top of the mandatory
hop-by-hop/framing set. E.g. authorization to keep the client credential
off the cluster. Empty by default (pass-all).
Trait Implementations§
Source§impl Clone for HeaderForwardingConfig
impl Clone for HeaderForwardingConfig
Source§fn clone(&self) -> HeaderForwardingConfig
fn clone(&self) -> HeaderForwardingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderForwardingConfig
impl Debug for HeaderForwardingConfig
Source§impl Default for HeaderForwardingConfig
impl Default for HeaderForwardingConfig
impl Eq for HeaderForwardingConfig
Source§impl PartialEq for HeaderForwardingConfig
impl PartialEq for HeaderForwardingConfig
Source§fn eq(&self, other: &HeaderForwardingConfig) -> bool
fn eq(&self, other: &HeaderForwardingConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderForwardingConfig
Auto Trait Implementations§
impl Freeze for HeaderForwardingConfig
impl RefUnwindSafe for HeaderForwardingConfig
impl Send for HeaderForwardingConfig
impl Sync for HeaderForwardingConfig
impl Unpin for HeaderForwardingConfig
impl UnsafeUnpin for HeaderForwardingConfig
impl UnwindSafe for HeaderForwardingConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more