pub enum Target<'a> {
Alias {
alias: &'a str,
path: &'a str,
},
Index {
path: &'a str,
},
Direct {
path: &'a str,
},
}Expand description
Which shape of request arrived.
Variants§
Alias
Proxied: the browser asked for http://<alias>.<suffix>/<path>.
Index
Proxied, at the suffix itself: http://<suffix>/, with no alias label.
The front door. The PAC has always routed this — host === "<suffix>" is in the script —
and the https certificate has always covered it, but nothing answered it, so the browser
was sent here and refused. Routing somewhere that refuses is worse than not routing.
Direct
Direct: something reached the loopback listener by address.
Trait Implementations§
impl<'a> Eq for Target<'a>
impl<'a> StructuralPartialEq for Target<'a>
Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnsafeUnpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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