pub struct ProxyConfig<A> {
pub addr: A,
pub replace_host: Option<Cow<'static, str>>,
}
Expand description
Configuration for the reverse proxy.
Fields§
§addr: A
The address to connect to. For example example.com:80
.
replace_host: Option<Cow<'static, str>>
If Some
, the Host
header will be replaced with this value.
Trait Implementations§
Source§impl<A: Clone> Clone for ProxyConfig<A>
impl<A: Clone> Clone for ProxyConfig<A>
Source§fn clone(&self) -> ProxyConfig<A>
fn clone(&self) -> ProxyConfig<A>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<A> Freeze for ProxyConfig<A>where
A: Freeze,
impl<A> RefUnwindSafe for ProxyConfig<A>where
A: RefUnwindSafe,
impl<A> Send for ProxyConfig<A>where
A: Send,
impl<A> Sync for ProxyConfig<A>where
A: Sync,
impl<A> Unpin for ProxyConfig<A>where
A: Unpin,
impl<A> UnwindSafe for ProxyConfig<A>where
A: UnwindSafe,
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