pub enum Target {
Connect {
host: String,
port: u16,
},
Http {
host: String,
port: u16,
head: Vec<u8>,
},
}Expand description
What the client asked the proxy to reach.
Variants§
Connect
CONNECT host:port: a tunnel, checked by the TLS SNI it then carries.
Http
One plain-HTTP request, rewritten for the upstream.
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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