dio_essentials: أربعة interceptors لـ Dio للدمج وإعادة المحاولة وتجديد الـ token والتسجيل
by Abdeldjalil Chougui dev.to
5 min read
كثير من التطبيقات التي تستعمل Dio تنتهي بنفس الـ interceptors الأربعة (المعترِضات التي تمرّ بها الطلبات والردود). واحد يعيد محاولة الطلبات الفاشلة. واحد يضيف الـ access token ويجدّده عند 401. واحد يسجّل (log). ثم يضيف أحدهم رابعًا ليمنع نفس طلب GET من الانطلاق ثلاث مرات حين تُبنى ثلاثة widgets معًا. تُكتب هذه عادةً باليد وعلى عجل، وتميل إلى حمل نفس الأخطاء. تأخير إعادة المحاولة خطّي ويساوي صفرًا …
Topics Dio and networking
More like this
ArticleDio vs HTTP in Flutter — Why and How to Use Dio Efficiently
by
Akash Senthil
, on Flutter Pro
Akash Senthil
@akashsenthil 🇮🇳 India
Available for hire
Mobile engineer who ships Flutter apps that scale, with 10+ live on the App Store and Play Store. I own the full lifecycle: architecture, testing, CI/CD (Fastla...
View Akash on Flutter Pro📝 Dio vs HTTP in Flutter — Why and How to Use Dio Efficiently 🧠 IntroductionWhen building Flutter apps that interact with APIs, two packages dominate the conversation: http and dio.Both can send net...
Read on medium.com- Article 6 min read
dio_essentials: four Dio interceptors for dedup, retry, token refresh and logging
by Abdeldjalil Chougui
Many apps that use Dio end up with the same four interceptors. One retries failed requests. One attaches the access token and refreshes it on a 401. One logs. And at some point someone adds a fourth t...
Read on dev.to
Video 11 minUne faille sur Dio (Flutter) ⚠️ Rebondissements chez Docker 🤦♂️ Nouveautés Android 🤖 DevCafé 27/03
DevCafé ☕️ résume tous les matins les principales informations à retenir autour de l’actualité du développement. Dans ce numéro, nous verrons que GitHub a malencontreusement publié sa clé privée RSA,...
Watch on YouTube- Package 160 pts · 3 likes
alice_dio
by hasoft.pl
Dio interceptor and network logger for Alice. Inspect, log, and debug Dio HTTP requests and responses in a native Flutter UI.
View on pub.dev