ky icon indicating copy to clipboard operation
ky copied to clipboard

feat(retry): allow respecting Retry-After for user-defined status codes

Open Kenneth-Sills opened this issue 1 year ago • 1 comments

Implemented as recommended in related issue, with appropriate testing and documentation.

The included test is just a copy of the existing 413 one, but with a 500 and required config instead.

Closes #473.

Kenneth-Sills avatar Jun 25 '24 02:06 Kenneth-Sills

You also need to update https://github.com/sindresorhus/ky/blob/e044626ad8163f00a1fd3834558c1a13d5c2b2de/source/types/options.ts#L118-L142

sindresorhus avatar Jun 26 '24 13:06 sindresorhus

Thanks for the review! I haven't had a lot of free time this past week, but I hope to get to this soon. Feel free to bump me if it gets stale, I do check notifications.

Kenneth-Sills avatar Jul 02 '24 03:07 Kenneth-Sills