File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class WeatherRepository {
148148``` dart
149149class 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
You can’t perform that action at this time.
0 commit comments