mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 22:07:38 +03:00
parent
8cbd8758a5
commit
83d05d81ef
55 changed files with 1615 additions and 1495 deletions
|
@ -27,7 +27,8 @@ async fn main() -> io::Result<()> {
|
|||
// rustls connector
|
||||
let connector = connect::rustls::Connector::new(config.clone());
|
||||
|
||||
let io = connector.connect("www.rust-lang.org:443").await.unwrap();
|
||||
//let io = connector.connect("www.rust-lang.org:443").await.unwrap();
|
||||
let io = connector.connect("127.0.0.1:8443").await.unwrap();
|
||||
println!("Connected to tls server {:?}", io.query::<PeerAddr>().get());
|
||||
let result = io
|
||||
.send(Bytes::from_static(b"GET /\r\n\r\n"), &codec::BytesCodec)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue