Available on crate feature
test-utils only.Expand description
HTTP client doubles for tests of code that sends through an
HttpClientExt.
Structs§
- Captured
Http Request - Request data captured by
RecordingHttpClient. - Http
Error Streaming Client - An
HttpClientExtimplementation whosesend_streamingfails immediately with a non-success HTTP status and response body. - Mock
Streaming Client - A mock HTTP client that returns pre-built SSE bytes from
send_streaming. - NonSuccess
Streaming Client - An
HttpClientExtwhosesend_streaminghands a non-success reply back as anOkresponse — the fourth non-success cell: a custom transport that does not reject on status, so the driver must. - Recording
Http Client - An
HttpClientExtimplementation that records unary requests and returns a fixed response. - Sequenced
Http Client - An
HttpClientExtimplementation that records requests and returns one scripted response per request. A streamed request’s reply body arrives as one chunk. - Sequenced
Streaming Http Client - An
HttpClientExtimplementation that returns one scripted stream of byte chunks fromsend_streaming.
Enums§
- Mock
Http Response - Response scripted for
RecordingHttpClient.