Sniff and replay HTTP requests and responses — perfect for mocking APIs during testing.
Rust 100.0%
11 2 0

Clone this repository

https://tangled.org/tsiry-sandratraina.com/replay
git@tangled.org:tsiry-sandratraina.com/replay

For self-hosted knots, clone URLs may differ based on your setup.

README.md

Replay#

ci downloads crates

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

Preview

🚚 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#

  1. Run your app through the proxy once to record real API interactions.
  2. Save the recorded sessions.
  3. Switch to mock mode for testing — no real API calls needed.