pub trait HttpStream: Write {
type Request: HttpRequest;
type Response;
type Error: From<Error> + From<<Self::Request as HttpRequest>::Error>;
// Required method
fn finish(self) -> Result<Self::Response, Self::Error>;
}Expand description
A trait describing an open HTTP stream that can be written to.
Required Associated Types§
Sourcetype Request: HttpRequest
type Request: HttpRequest
The request type that opened this stream.
Required Methods§
Implementations on Foreign Types§
Source§impl HttpStream for Sink
impl HttpStream for Sink
Implementors§
Source§impl HttpStream for HttpBuffer
Available on crate feature client only.
impl HttpStream for HttpBuffer
Available on crate feature
client only.