Struct hyper::http::h1::Http11Message
[−]
[src]
pub struct Http11Message { // some fields omitted }
An implementation of the HttpMessage
trait for HTTP/1.1.
Methods
impl Http11Message
fn into_inner(self) -> Box<NetworkStream + Send>
Consumes the Http11Message
and returns the underlying NetworkStream
.
fn get_ref(&self) -> &NetworkStream + Send
Gets a mutable reference to the underlying NetworkStream
, regardless of the state of the
Http11Message
.
fn get_mut(&mut self) -> &mut NetworkStream + Send
Gets a mutable reference to the underlying NetworkStream
, regardless of the state of the
Http11Message
.
fn with_stream(stream: Box<NetworkStream + Send>) -> Http11Message
Creates a new Http11Message
that will use the given NetworkStream
for communicating to
the peer.
fn flush_outgoing(&mut self) -> Result<()>
Flushes the current outgoing content and moves the stream into the stream
property.
TODO It might be sensible to lift this up to the HttpMessage
trait itself...