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.
Create new Connected
type with empty metadata.
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:
GET /guide HTTP/1.1
GET http://hyper.rs/guide HTTP/1.1
Default is false
.
Set extra connection information to be set in the extensions of every Response
.
Set that the connected transport negotiated HTTP/2 as it's
next protocol.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static