sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
MIT License
13.62k stars 363 forks source link

Allow to specify timeout for single request in additional for total timeout including retries #497

Open mahnunchik opened 1 year ago

mahnunchik commented 1 year ago

Hi,

I'm migrating from axios and axios-retry module.

I've faced with the issue that I can specify only total timeout including any retries.

It would be helpful to have ability to specify:

axios-retry has shouldResetTimeout option which solves this task https://github.com/softonic/axios-retry/#options