async-native-tls
TLS implementation for asnync. Based on tokio-tls.
Installation
Example
// First up, resolve google.com
let addr = "google.com:443".to_socket_addrs.unwrap.next.unwrap;
let socket = connect.await.unwrap;
// Send off the request by first negotiating an SSL handshake, then writing
// of our request, then flushing, then finally read off the response.
let builder = builder;
let connector = builder.build.unwrap;
let connector = from;
let mut socket = connector.connect.await;
socket.write_all.await.unwrap;
let mut data = Vec new;
socket.read_to_end.await.unwrap;
// any response code is fine
assert!;
let data = String from_utf8_lossy;
let data = data.trim_end;
assert!;
Contributing
Want to join us? Check out our "Contributing" guide and take a look at some of these issues: