rainier-http-client
The outbound HTTP client for the Rainier
framework — a fluent Http:: facade, with a fake that makes an outbound call
assertable.
let response = post
.json?
.timeout
.retry
.send
.await?;
fake;
notify_application.await?;
assert_sent;
Without the fake, asserting that an outbound call happened means standing up a real server in a test — so nobody does, and the code that signs the webhook is the code nothing exercises.
See the documentation.
Licence
MIT OR Apache-2.0.