[][src]Trait drogue_http_client::Source

pub trait Source {
    type Error;
    fn pipe_data<IN, R>(
        &mut self,
        request: &mut Request<IN, R>
    ) -> Result<(), Self::Error>
    where
        IN: ArrayLength<u8>,
        R: ResponseHandler
; }

A source of data for the HTTP response

Associated Types

type Error

Loading content...

Required methods

fn pipe_data<IN, R>(
    &mut self,
    request: &mut Request<IN, R>
) -> Result<(), Self::Error> where
    IN: ArrayLength<u8>,
    R: ResponseHandler

This will block, and forward data from this source to the request, until the request is completed or a read error occurred.

Loading content...

Implementors

impl<'tcp, T> Source for TcpSocketSinkSource<'tcp, T> where
    T: TcpStack
[src]

type Error = T::Error

Loading content...