Struct httpbis::HttpResponse
[−]
[src]
pub struct HttpResponse(pub HttpFutureSend<(Headers, HttpFutureStreamSend<HttpStreamPart>)>);
Convenient wrapper around async HTTP response future/stream
Methods
impl HttpResponse
[src]
fn new<F>(future: F) -> HttpResponse where
F: Future<Item = (Headers, HttpFutureStreamSend<HttpStreamPart>), Error = HttpError> + Send + 'static,
F: Future<Item = (Headers, HttpFutureStreamSend<HttpStreamPart>), Error = HttpError> + Send + 'static,
fn headers_and_stream<S>(headers: Headers, stream: S) -> HttpResponse where
S: Stream<Item = HttpStreamPart, Error = HttpError> + Send + 'static,
S: Stream<Item = HttpStreamPart, Error = HttpError> + Send + 'static,
fn headers_and_bytes_stream<S>(headers: Headers, content: S) -> HttpResponse where
S: Stream<Item = Bytes, Error = HttpError> + Send + 'static,
S: Stream<Item = Bytes, Error = HttpError> + Send + 'static,
fn headers_and_bytes(header: Headers, content: Bytes) -> HttpResponse
fn from_stream<S>(stream: S) -> HttpResponse where
S: Stream<Item = HttpStreamPart, Error = HttpError> + Send + 'static,
S: Stream<Item = HttpStreamPart, Error = HttpError> + Send + 'static,