Skip to main content

Module client

Module client 

Source
Expand description

Outbound HTTP client contract.

Structs§

ClientRequest
Outbound HTTP request (apps build this; clients send it).
ClientResponse
Outbound HTTP response.
HttpClientService
Newtype so client trait objects can be stored in the container.
MockHttpClient
In-memory HttpClient that returns scripted responses.
RegisterDefaultHttpClientPass
Seeds DEFAULT_HTTP_CLIENT_SERVICE with a crate::ReqwestHttpClient when missing.
ReqwestHttpClient
Production HttpClient using reqwest + rustls.

Enums§

ClientMethod
HTTP method for ClientRequest.
HttpClientError
Failure while building or sending an outbound request.

Constants§

DEFAULT_HTTP_CLIENT_SERVICE
Container id of the default outbound client when registered by the pass.
HTTP_CLIENT_TAG
Service tag applied to outbound HTTP client definitions.

Traits§

DynHttpClient
Object-safe sibling of HttpClient for container storage.
HttpClient
Outbound HTTP client (Symfony HttpClientInterface analogue).