1 unstable release
Uses new Rust 2024
| 0.1.0 | Nov 3, 2025 |
|---|
#1405 in Debugging
24KB
465 lines
Request Logging Proxy
A proxy server that forwards requests and responses and logs them to stdout.
Building
cargo build --workspace --all-targets
Running
cargo run -- --target-url http://localhost:8484
This starts the proxy server on port 8123 forwarding requests to http://localhost:8484.
It logs requests and responses to stdout in the "vscode" format.
You can customize the target URL, port, and logger format:
cargo run -- \
--target-url http://localhost:8484 \
--port 8123 \
--logger vscode
Testing
cargo test --workspace
Installing
cargo install --path .
request-logging-proxy --target-url http://localhost:8484
Logger Formats
vscode: Logs requests and responses in a format compatible with VSCode's REST (.http) extension.
If you want other formats, feel free to open an issue or a pull request.
License
This project is licensed under the Apache License Version 2.0. See the LICENSE file for details.
Dependencies
~12–27MB
~253K SLoC