pub enum ProxyMode {
Tcp(EndpointAuthority),
Http(HttpProxyOpts),
}Expand description
Operating mode for the downstream proxy.
Variants§
Tcp(EndpointAuthority)
TCP tunneling mode.
All incoming connections are tunneled to a fixed upstream endpoint and authority without any HTTP parsing. Suitable for non-HTTP protocols or when dynamic routing is not needed.
Http(HttpProxyOpts)
HTTP-aware proxy mode.
Parses HTTP requests to enable dynamic routing based on request content. Supports both HTTP/1.1 and HTTP/2, including CONNECT tunneling.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProxyMode
impl !RefUnwindSafe for ProxyMode
impl Send for ProxyMode
impl Sync for ProxyMode
impl Unpin for ProxyMode
impl UnsafeUnpin for ProxyMode
impl !UnwindSafe for ProxyMode
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