From 8b7dec44171a23c73b53ba2ad354a79366701e92 Mon Sep 17 00:00:00 2001 From: hatoo Date: Sun, 7 Apr 2024 22:40:01 +0900 Subject: [PATCH] update example --- README.md | 5 +++-- examples/proxy.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 09e7321..43c45d9 100644 --- a/README.md +++ b/README.md @@ -84,14 +84,15 @@ async fn main() { println!(); println!("{}", root_cert_pem); println!(); - println!("Private key"); - println!("{}", root_cert_key); /* Save this cert to ca.crt and use it with curl like this: curl https://www.google.com -x http://127.0.0.1:3003 --cacert ca.crt */ + println!("Private key"); + println!("{}", root_cert_key); + while let Some(comm) = communications.next().await { let uri = comm.request.uri().clone(); // modify the request here if you want diff --git a/examples/proxy.rs b/examples/proxy.rs index 055789b..2f184a9 100644 --- a/examples/proxy.rs +++ b/examples/proxy.rs @@ -71,14 +71,15 @@ async fn main() { println!(); println!("{}", root_cert_pem); println!(); - println!("Private key"); - println!("{}", root_cert_key); /* Save this cert to ca.crt and use it with curl like this: curl https://www.google.com -x http://127.0.0.1:3003 --cacert ca.crt */ + println!("Private key"); + println!("{}", root_cert_key); + while let Some(comm) = communications.next().await { let uri = comm.request.uri().clone(); // modify the request here if you want