Trait actix_http::client::Connection[][src]

pub trait Connection {
    type Io: AsyncRead + AsyncWrite + Unpin;
    fn send_request<B, H>(
        self,
        head: H,
        body: B
    ) -> LocalBoxFuture<'static, Result<(ResponseHead, Payload), SendRequestError>>
    where
        B: MessageBody + 'static,
        H: Into<RequestHeadType> + 'static
;
fn open_tunnel<H: Into<RequestHeadType> + 'static>(
        self,
        head: H
    ) -> LocalBoxFuture<'static, Result<(ResponseHead, Framed<Self::Io, ClientCodec>), SendRequestError>>; }

Associated Types

Loading content...

Required methods

fn send_request<B, H>(
    self,
    head: H,
    body: B
) -> LocalBoxFuture<'static, Result<(ResponseHead, Payload), SendRequestError>> where
    B: MessageBody + 'static,
    H: Into<RequestHeadType> + 'static, 
[src]

Send request and body

fn open_tunnel<H: Into<RequestHeadType> + 'static>(
    self,
    head: H
) -> LocalBoxFuture<'static, Result<(ResponseHead, Framed<Self::Io, ClientCodec>), SendRequestError>>
[src]

Send request, returns Response and Framed

Loading content...

Implementors

Loading content...