Expand description
HTTP client abstraction for dependency injection.
This module provides an HTTP client trait that can be mocked for testing,
along with a default implementation using reqwest.
§Example
ⓘ
// Using the default client
let client = ReqwestHttpClient::new();
// Or in tests, use the mock
let mock = MockHttpClient::new()
.with_response(HttpResponse::ok(b"response body".to_vec()));Structs§
- Http
Response - HTTP response from a request.
- Mock
Http Client - Mock HTTP client for testing.
- Mock
Request - A recorded HTTP request made to the mock client.
- Reqwest
Http Client - Default HTTP client implementation using
reqwest.
Traits§
- Http
Client - HTTP client trait for making web requests.