| Crates.io | hyper-mock-client |
| lib.rs | hyper-mock-client |
| version | 0.1.3 |
| created_at | 2022-10-11 19:04:10.881784+00 |
| updated_at | 2022-10-11 19:22:24.422902+00 |
| description | hyper::client mock to test tower::services such as axum::router |
| homepage | https://github.com/chbm/hyper-mock-client |
| repository | https://github.com/chbm/hyper-mock-client |
| max_upload_size | |
| id | 685532 |
| size | 6,492 |
A mock of hyper::client to test tower::Services like axum::router.
See the tests of the lib. Create an instance of the Service you want to test and create a new client with MockClient::new(app). The MockClient has an interface similar to hyper::client with MockClient::request(hyper::Request) being your main method but returning a simple Future<Response<Body>>.
This project is licensed under the MIT license.