3 releases
Uses new Rust 2024
0.1.2 | May 5, 2025 |
---|---|
0.1.1 | May 5, 2025 |
0.1.0 | May 4, 2025 |
#404 in Command line utilities
401 downloads per month
185KB
449 lines
Replay
This tool acts as a transparent HTTP proxy that intercepts and records all incoming and outgoing requests and responses. You can later replay these captured interactions to mock the real API without needing live network access โ ideal for:
- End-to-end tests
- CI environments
- Offline development
- Contract testing
๐ Installation
cargo-binstall replay
โจ Features
- ๐งฒ Record HTTP traffic in real time
- ๐งช Replay and mock previously recorded requests
- ๐ ๏ธ Supports REST, GraphQL, and any HTTP-based API
- ๐ฆ Store interactions locally
- โก Fast and lightweight proxy implementation
๐ง Example Use Case
- Run your app through the proxy once to record real API interactions.
- Save the recorded sessions.
- Switch to mock mode for testing โ no real API calls needed.
Dependencies
~18โ32MB
~518K SLoC