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

leoschwarz/reqwest_mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Provides a mockable wrapper around the reqwest HTTP client for Rust.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages