pub enum Host {
None,
Auto,
Force(HeaderValue),
Fallback(HeaderValue),
}Available on crate feature
client only.Expand description
Layer for inserting Host into the request header.
Variants§
None
Do not insert Host into the request headers.
Auto
If there is no Host in request headers, the layer will generate it through target
address.
Force(HeaderValue)
Forcely use the given value as Host in request headers, it will override the previous
one.
Fallback(HeaderValue)
If there is no Host in request headers, the Host will be set to the given value.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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