From f75ead77f34766af0f4bf39835af663bb9bb8301 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 30 Mar 2024 20:32:27 +0800 Subject: [PATCH] feat: v0.2.0-rc, optimize code --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fa806f9..2dac075 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,10 @@ ## Introduction -`proxy-inspector` is a HTTP/HTTPS proxy based on `pingora`, `proxy-inspector` can issue certificate just in time, `proxy-inspector` can dump HTTP/HTTPS request and response. +`proxy-inspector` is a HTTP/HTTPS proxy based on `pingora`, `proxy-inspector` can issue certificate just in +time, `proxy-inspector` can dump HTTP/HTTPS request and response. -## Configure +## Configuration `proxy_config.json` sample config: @@ -57,11 +58,9 @@ $ cargo r --example generate_self_signed_ca When generate success, cert and key will write to files `cert.pem`, `cert.key`, fail if any file is existed. -## Example +## Run Example -Proxy example: - -Edit `/etc/hosts` add: +Edit `/etc/hosts` add line: ```text 127.0.0.1 www.baidu.com @@ -119,7 +118,7 @@ $ curl https://www.baidu.com/not-found -v ``` -Log from proxy-inspector: +Log from `proxy-inspector` console: ```text [2024-03-30T12:21:28Z INFO proxy_inspector::service] SNI provided: www.baidu.com @@ -152,7 +151,7 @@ Log from proxy-inspector: ]]] ``` -proxy-inspector did the follow steps: +`proxy-inspector` do the follow steps: 1. issue certificate for `www.baidu.com` 2. receive request `GET /not-found`, print request to log