sh
$ cargo add async-native-tls
```rust use asyncstd::prelude::*; use asyncstd::net::TcpStream;
let stream = TcpStream::connect("google.com:443").await?; let mut stream = asyncnativetls::connect("google.com", stream).await?; stream.write_all(b"GET / HTTP/1.0\r\n\r\n").await?;
let mut res = Vec::new(); stream.readtoend(&mut res).await?; println!("{}", String::fromutf8lossy(&res)); ```
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.