Skip to the content.

EasyHttpMock

Crates.io downloads crates.io Build Status Crates.io MSRV Documentation MIT licensed codecov

EasyHttpMock is a powerful yet simple HTTP mock server designed specifically for testing HTTP clients. Built on top of VeTiS, it provides a clean, intuitive API for creating realistic mock endpoints that simulate real-world API behavior, making your testing workflow faster and more reliable.

Features

Quick Start

Add to your Cargo.toml:

[dependencies]
easyhttpmock = { version = "0.0.9" }

Basic usage:

Please refer to easyhttpmock-vetis-smol or easyhttpmock-vetis-tokio for usage examples.

Crates

Crate Description Documentation
easyhttpmock Core HTTP server library docs.rs
easyhttpmock-vetis-smol Smol runtime support docs.rs
easyhttpmock-vetis-tokio Tokio runtime support docs.rs

Examples

Check out the examples for complete examples of how to use EasyHttpMock in your projects.

Create project from template

You can create a new project from the template using cargo generate:

cargo generate ararog/easyhttpmock-templates

Documentation

Other Projects

License

This project is licensed under the MIT License.

Author

Rogerio Pereira Araujo rogerio.araujo@gmail.com