http-rs / http-rs/http-client

mock support

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Rust
Stars
118
Forks
54
PR merge metrics
No merged PRs in 30d

Description

For testing Surf it'd be great if we could create a mock backend to automatically handle http responses. We could in turn for example use `tide` with the mock frontend to create mock responses.

The benefit of this is that unit tests should become really fast, and we can provide extra methods to assert values, as seen in https://github.com/http-rs/tide/pull/273. Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.