Comments (6)
Hi, I think there's no way to asynchronously wait a few seconds before retrying at the moment.
This makes me think I should make shouldAttemptRetryOnException
into a Future<bool>
so that it supports this kind of behaviors and then you could maybe use Future.delayed
in these cases (that might make the request stay "loading" until it is either resolved or rejected, which is something to look out for).
from http_interceptor.
Hi, I think there's no way to asynchronously wait a few seconds before retrying at the moment.
This makes me think I should make
shouldAttemptRetryOnException
into aFuture<bool>
so that it supports this kind of behaviors and then you could maybe useFuture.delayed
in these cases (that might make the request stay "loading" until it is either resolved or rejected, which is something to look out for).
So when can we have this feature available :)
from http_interceptor.
It should be available in beta.6, which is already in the automation pipeline as I'm writing this.
from http_interceptor.
It's now out 🎉 I'm closing this but feel free to comment if it does not work as you expected 😉
from http_interceptor.
@all-contributors add @ntimesc for ideas
from http_interceptor.
I've put up a pull request to add @ntimesc! 🎉
from http_interceptor.
Related Issues (20)
- Exclude specific calls from being intercepted/retried -- HeaderSanitizerContract proposal HOT 9
- Unhandled Exception: FormatException: Unexpected extension byte (at offset 1) HOT 3
- headers are not getting updated upon retry HOT 13
- How to test http client with interceptor? TimeoutException after ... Future not completed HOT 7
- HandshakeException HOT 8
- It is possible to decode all responses to UTF-8 using interceptResponse? HOT 7
- Body is set to empty string when it should be null HOT 4
- Using interceptors on multipart request HOT 9
- Ability to edit Response body in interceptor HOT 5
- How to use with WebSockets HOT 1
- Upgrade http dependency to 1.0.0 HOT 2
- Problem while logging request and response HOT 7
- type 'Response' is not a subtype of type 'StreamedResponse' in type cast
- refreshToken called multiple times HOT 1
- How should i handle shouldInterceptRequest when you have interceptRequest HOT 1
- interceptRequest method HOT 3
- Why is no new version on pub.dev? HOT 2
- Release version HOT 4
- Allow 'maxRetryAttempts' to be flexible according to response status HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http_interceptor.