Expand description
Async HTTP and gRPC recording and replay for Rust.
Recorder owns one cassette lifecycle. Inject reqwest::Client or
tonic::GrpcService explicitly into the client under test, then call
Recorder::finish so persistence and incomplete recordings cannot be
silently ignored.
Re-exports§
pub use reqwest::Client as ReqwestClient;pub use tonic::GrpcService;
Modules§
- reqwest
- Explicit
reqwestclient integration. - tonic
- Explicit
tonictransport integration for unary calls.
Structs§
- Compare
- What verify mode compares. The status is always compared; everything not listed here is ignored.
- Http
Response - Recorder
- A concurrency-safe cassette shared by injected HTTP and gRPC transports.
- Recorder
Builder - Configures a
Recorder.
Enums§
- Error
- An error produced while recording or replaying traffic.
- Record
Mode - Controls whether a cassette replays or records requests.
Type Aliases§
- Result
- The result type returned by this crate.