client_tls

Function client_tls 

pub fn client_tls<R, S>(
    request: R,
    stream: S,
) -> Result<(WebSocket<MaybeTlsStream<S>>, Response<Option<Vec<u8>>>), HandshakeError<ClientHandshake<MaybeTlsStream<S>>>>
where R: IntoClientRequest, S: Read + Write,
Expand description

Creates a WebSocket handshake from a request and a stream, upgrading the stream to TLS if required.