pub type Upgrade = Upgrade<BoxedTransport>;Expand description
A HTTP protocol upgrade
This exists to erase the generic transport for convenience using a
BoxedTransport. See
Upgrade for additional documentation
Aliased Type§
struct Upgrade {
pub request_headers: Headers,
pub path: String,
pub method: Method,
pub state: StateSet,
pub transport: BoxedTransport,
pub buffer: Option<Vec<u8>>,
pub stopper: Stopper,
}Fields§
§request_headers: HeadersThe http request headers
path: StringThe request path
method: MethodThe http request method
state: StateSetAny state that has been accumulated on the Conn before negotiating the upgrade
transport: BoxedTransportThe underlying io (often a TcpStream or similar)
buffer: Option<Vec<u8>>Any bytes that have been read from the underlying tcpstream already. It is your responsibility to process these bytes before reading directly from the transport.
stopper: StopperA [Stopper] which can and should be used to gracefully shut
down any long running streams or futures associated with this
upgrade