CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.
MIT License
134 stars 67 forks source link

Question: Retry policy #28

Closed smedic closed 4 years ago

smedic commented 4 years ago

Thanks for this great addition to http lib.

I have a question: do we have to call synchronous function to get new token after 401 in RetryPolicy? I saw dio enables us to call refresh in async so it's convenient for Futures.

Thanks!

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.90. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

CodingAleCR commented 4 years ago

Hi yes at the moment but not in the future, there's already code in develop branch that will allow async call to the method and will help out. Release will be out this weekend and you will be able to try it out soon 🙌🏼

smedic commented 4 years ago

Awesome! Thanks!