HTTP proxy server using the Tokio.rs stack along with the Hyper and Axum crates. It involves handling incoming HTTP requests and processing them such as tracing, authorizing, logging, measuring, and monitoring, and then proxying them to a target server.
cargo runOnce the server is up and running, send a test request to it using the curl command below:
curl -X POST \
'127.0.0.1:3000' \
-H 'content-type: application/json' \
-H 'Content-Type: application/json; charset=utf-8' \
-d '{"test":"test"}'The command sends a POST request to the local server, which then proxies the request to the specified endpoint https://echo.hoppscotch.io/ and returns the response.