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

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

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

Associated Types

type Request: HttpRequest[src]

The request type that opened this stream.

type Response[src]

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

type Error: From<Error> + From<<Self::Request as HttpRequest>::Error>[src]

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

Loading content...

Required methods

pub fn finish(self) -> Result<Self::Response, Self::Error>[src]

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

Loading content...

Implementations on Foreign Types

impl HttpStream for Request<Streaming>[src]

type Request = Request<Fresh>

type Response = Response

type Error = HyperError

impl HttpStream for Sink[src]

type Request = ()

type Response = ()

type Error = Error

Loading content...

Implementors

impl HttpStream for HttpBuffer[src]

type Request = ClientRequest

type Response = HttpBuffer

type Error = Error

pub fn finish(self) -> Result<Self, Error>[src]

Returns Ok(self).

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

type Request = Self

type Response = <<R as HttpRequest>::Stream as HttpStream>::Response

type Error = <<R as HttpRequest>::Stream as HttpStream>::Error

Loading content...