[][src]Trait multipart::client::HttpStream

pub trait HttpStream: Write {
    type Request: HttpRequest;
    type Response;
    type Error: From<Error> + From<<Self::Request as HttpRequest>::Error>;
    fn finish(self) -> Result<Self::Response, Self::Error>;
}

A trait describing an open HTTP stream that can be written to.

Associated Types

The request type that opened this stream.

The response type that will be returned after the request is completed.

The error type for this stream. Must be compatible with io::Error as well as Self::Request::Error.

Required Methods

Finalize and close the stream and return the response object, or any error otherwise.

Implementations on Foreign Types

impl HttpStream for Request<Streaming>
[src]

impl HttpStream for Sink
[src]

Implementors

impl HttpStream for HttpBuffer
[src]

Returns Ok(self).

impl<R: HttpRequest> HttpStream for SizedRequest<R> where
    <R::Stream as HttpStream>::Error: From<R::Error>, 
[src]