Skip to content

Commit 0715054

Browse files
Minimalistic support for HTTP request retries
1 parent d6d1967 commit 0715054

File tree

6 files changed

+378
-139
lines changed

6 files changed

+378
-139
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,25 @@
22

33
## v0.60.0 (in development)
44

5-
No changes yet.
5+
### Enhancements
6+
7+
* HTTP request retry support. Both `ClientBuilder` implementations now allow for minimalistic retry behavior configuration:
8+
the number of retry attempts and the fixed delay between them.
9+
10+
```rust
11+
use rabbitmq_http_client::api::{ClientBuilder, RetrySettings};
12+
13+
let client = ClientBuilder::new()
14+
.with_endpoint("http://localhost:15672/api")
15+
.with_basic_auth_credentials("user", "pass")
16+
.with_retry_settings(RetrySettings {
17+
// 2 retry attempts (+ 1 initial = 3 total attempts)
18+
max_attempts: 2,
19+
// a fixed wait of 500 ms between retries
20+
delay_ms: 500,
21+
})
22+
.build();
23+
```
624

725
## v0.59.0 (Sep 26, 2025)
826

0 commit comments

Comments
 (0)