kean / Get

Web API client built using async/await
MIT License
937 stars 74 forks source link

Suggestion - adding the URLRequest to the delegate method shouldClientRetry #22

Closed pkrusek closed 2 years ago

pkrusek commented 2 years ago

In the signature of the delegate method func shouldClientRetry(_ client: APIClient, withError error: Error) async throws -> Bool might be useful to add URLRequest.

This could be useful for handling situations where multiple requests fail.

Or can you please show an example or hint how you handle this situation?

kean commented 2 years ago

I agree, I think it's a good idea to add it. PRs are welcome.

pkrusek commented 2 years ago

OK, I'll set up a PR. Thanks.

pkrusek commented 2 years ago

PR created.

kean commented 2 years ago

Released in 0.6.0