Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.25 KB

reqwest_mock: Discontinued

Thank you for your interest in this project. This project was a proof of concept to create a generic interface for the Rust reqwest crate that would allow users to mock and record and replay HTTP requests for testing purposes.

This project is no longer updated or maintained and this repository will be archived.

The following non-exhaustive list of alternative solutions are recommended instead to mock HTTP requests in Rust (as of 18.5.2023):

Old readme

Crates.io Link

Provides a mockable reqwest-like HTTP client.

Write your code generic over the Client trait, and in production use DirectClient while in testing you can use ReplayClient, which will record a request the first time and replay it every time the exact same request is made in the future.