Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alyssais/hyper-stub
hyper clients that don't touch the network
https://github.com/alyssais/hyper-stub
http hyper proxy stubbing testing
Last synced: 5 days ago
JSON representation
hyper clients that don't touch the network
- Host: GitHub
- URL: https://github.com/alyssais/hyper-stub
- Owner: alyssais
- License: mpl-2.0
- Created: 2018-06-16T21:24:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-16T21:25:59.000Z (over 6 years ago)
- Last Synced: 2024-10-28T12:56:27.061Z (17 days ago)
- Topics: http, hyper, proxy, stubbing, testing
- Language: Rust
- Homepage: https://crates.io/crates/hyper-stub
- Size: 9.77 KB
- Stars: 11
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hyper-stub
hyper-stub is a Rust library that provides functions to create [hyper][] clients
that convert requests to responses using predefined functions, without doing any
actual networking. This means the entire request/response lifecycle happens in a
single process, and should have performance and stability improvements over,
for example, binding to a port. One potential use case for this is stubbing
HTTP interactions in tests to avoid slow/flakey/absent internet connections.For API reference and usage examples, see the [documentation][].
[hyper]: https://hyper.rs
[documentation]: https://docs.rs/hyper-stub