Skip to content

Sniff and replay HTTP requests and responses — perfect for mocking APIs during testing.

License

Notifications You must be signed in to change notification settings

tsirysndr/replay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sniff and replay HTTP requests and responses — perfect for mocking APIs during testing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages