client_async_tls_with_config

Function client_async_tls_with_config 

Source
pub async fn client_async_tls_with_config<R, S>(
    request: R,
    stream: S,
    connector: Option<TlsConnector>,
    config: impl Into<Config>,
) -> Result<(WebSocketStream<MaybeTlsStream<S>>, Response<Option<Vec<u8>>>), Error>
where R: IntoClientRequest, S: AsyncRead + AsyncWrite + Unpin + 'static,
Available on crate feature ws only.
Expand description

Similar to client_async_tls() but the one can specify a websocket configuration, and an optional connector.