mirror of
https://github.com/Noratrieb/tls.git
synced 2026-01-14 16:45:02 +01:00
7 lines
258 B
Rust
7 lines
258 B
Rust
use std::net::TcpStream;
|
|
|
|
// An example program that makes a shitty HTTP/1.1 request.
|
|
fn main() {
|
|
let conn = tls::LoggingWriter(TcpStream::connect(("nilstrieb.dev", 443)).unwrap());
|
|
tls::ClientConnection::establish(conn, "nilstrieb.dev").unwrap();
|
|
}
|