[−][src]Trait actix_http::client::Connection
Associated Types
type Io: AsyncRead + AsyncWrite + Unpin[src]
type Future: Future<Output = Result<(ResponseHead, Payload), SendRequestError>>[src]
type TunnelFuture: Future<Output = Result<(ResponseHead, Framed<Self::Io, ClientCodec>), SendRequestError>>[src]
Required methods
pub fn protocol(&self) -> Protocol[src]
pub fn send_request<B: MessageBody + 'static, H: Into<RequestHeadType>>(
self,
head: H,
body: B
) -> Self::Future[src]
self,
head: H,
body: B
) -> Self::Future
Send request and body
pub fn open_tunnel<H: Into<RequestHeadType>>(
self,
head: H
) -> Self::TunnelFuture[src]
self,
head: H
) -> Self::TunnelFuture
Send request, returns Response and Framed