Skip to main content

Module http_client

Module http_client 

Source
Expand description

Outbound JSON HTTP client.

HttpClient wraps reqwest with Rustls TLS for JSON GET/POST calls. Responses with non-success status codes surface as errors.

let client = HttpClient::new();
let dto: MyDto = client.get("https://example.com/api").await?;

Structs§

HttpClient
Thin reqwest-backed client that sends and receives JSON.