Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Apr 7, 2024
1 parent 93f7c28 commit 8b7dec4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions examples/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b7dec4

Please sign in to comment.