Struct hyper::client::connect::Connected [−][src]
pub struct Connected { /* fields omitted */ }
Extra information about the connected transport.
This can be used to inform recipients about things like if ALPN was used, or if connected to an HTTP proxy.
Methods
impl Connected
[src]
impl Connected
pub fn new() -> Connected
[src]
pub fn new() -> Connected
Create new Connected
type with empty metadata.
pub fn proxy(self, is_proxied: bool) -> Connected
[src]
pub fn proxy(self, is_proxied: bool) -> Connected
Set whether the connected transport is to an HTTP proxy.
This setting will affect if HTTP/1 requests written on the transport
will have the request-target in absolute-form or origin-form (such as
GET http://hyper.rs/guide HTTP/1.1
or GET /guide HTTP/1.1
).
Default is false
.