pub struct ForwardedHost { /* private fields */ }Expand description
The host field of a Forwarded header,
representing the original host requested by the client.
Implementations§
Source§impl ForwardedHost
impl ForwardedHost
Sourcepub fn x_forwarded(&self) -> XForwardedHost<'_>
pub fn x_forwarded(&self) -> XForwardedHost<'_>
Create the X-Forwarded header value for the ForwardedHost.
Sourcepub fn parse_bytes(value: &[u8]) -> Result<Self, ParseForwardedError>
pub fn parse_bytes(value: &[u8]) -> Result<Self, ParseForwardedError>
Parse a ForwardedHost from a byte string.
Trait Implementations§
Source§impl Clone for ForwardedHost
impl Clone for ForwardedHost
Source§fn clone(&self) -> ForwardedHost
fn clone(&self) -> ForwardedHost
Returns a duplicate 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 moreSource§impl Debug for ForwardedHost
impl Debug for ForwardedHost
Source§impl FromStr for ForwardedHost
impl FromStr for ForwardedHost
Source§impl Hash for ForwardedHost
impl Hash for ForwardedHost
Source§impl PartialEq for ForwardedHost
impl PartialEq for ForwardedHost
impl Eq for ForwardedHost
impl StructuralPartialEq for ForwardedHost
Auto Trait Implementations§
impl Freeze for ForwardedHost
impl RefUnwindSafe for ForwardedHost
impl Send for ForwardedHost
impl Sync for ForwardedHost
impl Unpin for ForwardedHost
impl UnwindSafe for ForwardedHost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<R> FirstAddrExt for R
impl<R> FirstAddrExt for R
Source§fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
fn first_addr(self) -> FirstAddrResolver<Self>where
Self: Sized,
Convert this resolver into a
FirstAddrResolver. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<S> ServiceBailExt for S
impl<S> ServiceBailExt for S
Source§fn bail<F>(self, preprocessor: F) -> BailService<S, F>
fn bail<F>(self, preprocessor: F) -> BailService<S, F>
Provide a pre-processor which returns either
Ok(req)
with a moditied request, or Err(res) with the desired
immediate response. This pre-processor is synchronous.