Lines Matching +full:rustls +full:- +full:version
37 /// similar to `std::net::TcpStream`. If you want a non-blocking or other
40 /// This function uses `native_tls` or `rustls` to do TLS depending on the feature flags enabled. If
42 /// the `*-tls` features if you don't call `connect` since it's the only function that uses them.
44 /// [readme]: https://github.com/snapview/tungstenite-rs/#features
49 ) -> Result<(WebSocket<MaybeTlsStream<TcpStream>>, Response)> { in connect_with_config()
53 ) -> Result<(WebSocket<MaybeTlsStream<TcpStream>>, Response)> { in connect_with_config()
57 let host = if host.starts_with('[') { &host[1..host.len() - 1] } else { host }; in connect_with_config()
66 #[cfg(not(any(feature = "native-tls", feature = "__rustls-tls")))] in connect_with_config()
68 #[cfg(any(feature = "native-tls", feature = "__rustls-tls"))] in connect_with_config()
77 fn create_request(parts: &Parts, uri: &Uri) -> Request { in connect_with_config()
79 Request::builder().uri(uri.clone()).method(parts.method.clone()).version(parts.version); in connect_with_config()
111 /// To support wss:// URLs, feature `native-tls` or `rustls-tls` must be turned on.
114 /// similar to `std::net::TcpStream`. If you want a non-blocking or other
117 /// This function uses `native_tls` or `rustls` to do TLS depending on the feature flags enabled. If
119 /// the `*-tls` features if you don't call `connect` since it's the only function that uses them.
122 ) -> Result<(WebSocket<MaybeTlsStream<TcpStream>>, Response)> { in connect()
126 fn connect_to_some(addrs: &[SocketAddr], uri: &Uri) -> Result<TcpStream> { in connect_to_some()
139 /// in non-blocking algorithms or for use with TLS libraries other than `native_tls` or `rustls`.
140 pub fn uri_mode(uri: &Uri) -> Result<Mode> { in uri_mode()
158 ) -> StdResult<(WebSocket<Stream>, Response), HandshakeError<ClientHandshake<Stream>>> in client_with_config()
174 ) -> StdResult<(WebSocket<Stream>, Response), HandshakeError<ClientHandshake<Stream>>> in client()
188 /// a regular string containing the URL in which case `tungstenite-rs` will take care for generating
192 fn into_client_request(self) -> Result<Request>; in into_client_request()
196 fn into_client_request(self) -> Result<Request> { in into_client_request()
202 fn into_client_request(self) -> Result<Request> { in into_client_request()
208 fn into_client_request(self) -> Result<Request> { in into_client_request()
214 fn into_client_request(self) -> Result<Request> { in into_client_request()
220 fn into_client_request(self) -> Result<Request> { in into_client_request()
236 .header("Sec-WebSocket-Version", "13") in into_client_request()
237 .header("Sec-WebSocket-Key", generate_key()) in into_client_request()
245 fn into_client_request(self) -> Result<Request> { in into_client_request()
251 fn into_client_request(self) -> Result<Request> { in into_client_request()
257 fn into_client_request(self) -> Result<Request> { in into_client_request()
263 fn into_client_request(self) -> Result<Request> { in into_client_request()