go-resty / resty

Simple HTTP and REST client library for Go
MIT License
9.68k stars 681 forks source link

SetRetryCount() on request? #752

Open arvenil opened 8 months ago

arvenil commented 8 months ago

I know that I can add retry conditions per request with client.R().AddRetryCondition(), however there are other request on that client that I don't want to be retried. How this can be achieved?

Currently if I just add retry conditions on request, then nothing happens unless I also set retry count on client with SetRetryCount(n). That however means other requests, that I don't want to be retried - will be retried.

jeevatkm commented 4 months ago

@arvenil Thanks for reaching out. I will add it to the v3.