pub struct Route { /* private fields */ }Implementations§
Source§impl Route
impl Route
pub fn new(target: Url, proxy: Option<Url>) -> Self
pub fn resolve(&self) -> TransportRequest
Sourcepub fn proxy_tls(&self) -> Option<TransportRequest>
pub fn proxy_tls(&self) -> Option<TransportRequest>
For an https:// proxy, the TLS upgrade to the proxy itself. It comes
first, right after the connection is established: the CONNECT tunnel or
the absolute-form request then runs inside it, and an https target’s
own TLS session nests within that tunnel.
pub fn connect_head(&self, authorization: Option<&[u8]>) -> Option<Head>
Sourcepub fn request_head(
&self,
request: &Request,
authorization: Option<&[u8]>,
) -> Head
pub fn request_head( &self, request: &Request, authorization: Option<&[u8]>, ) -> Head
Serialize origin-form for direct/tunnel traffic and absolute-form for HTTP proxies. Proxy credentials are never forwarded inside an HTTPS tunnel.
pub fn tunnel_response(&mut self, status: u16) -> Result<TransportRequest>
pub fn connected(&self) -> Option<TransportRequest>
Auto Trait Implementations§
impl Forget for Route
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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