Skip to content

Commit d61cfa5

Browse files
committed
Updated README and CHANGELOG
1 parent bbea0e4 commit d61cfa5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.3.1
4+
5+
* Fixed: Retry Policy's `shouldAttemptRetryOnResponse` was synchronous which would not allow async token updates.
6+
* Fixed: Retry Policy would only trigger once when using `HttpClientWithInterceptor`.
7+
* Fixed: Retry Policy would use the `http` Response class, which would force plugin users to add http plugin separately.
8+
* Experimental: `badCertificateCallback` allows you to use self-signing certificates.
9+
310
## 0.3.0
411

512
* Added: RetryPolicy. It allows to attempt retries on a request when an exception occurs or when a condition from the response is met.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class WeatherRepository {
148148
```dart
149149
class ExpiredTokenRetryPolicy extends RetryPolicy {
150150
@override
151-
Future<bool> shouldAttemptRetryOnResponse(Response response) async {
151+
Future<bool> shouldAttemptRetryOnResponse(ResponseData response) async {
152152
if (response.statusCode == 401) {
153153
// Perform your token refresh here.
154154

0 commit comments

Comments
 (0)