Skip to main content

Crate cassetter

Crate cassetter 

Source
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 reqwest client integration.
tonic
Explicit tonic transport integration for unary calls.

Structs§

Compare
What verify mode compares. The status is always compared; everything not listed here is ignored.
HttpResponse
Recorder
A concurrency-safe cassette shared by injected HTTP and gRPC transports.
RecorderBuilder
Configures a Recorder.

Enums§

Error
An error produced while recording or replaying traffic.
RecordMode
Controls whether a cassette replays or records requests.

Type Aliases§

Result
The result type returned by this crate.