resty
resty copied to clipboard
Change noRetryError for temporary errors
- Expose an
Unwrapmethod to leverage go's standard unwrapping - Let the error escape, such that hooks and end-users can access the
Temporaryinformation. - Do not wrap if the error already exposes
Temporary, to honour it.
The main benefit is to leverage net/*'s standard errors; most of them already expose Temporary methods.
@lavoiesl I like your proposal of using errors advantages introduced in go1.13. Currently, resty has minimum support as go1.11. I want to park this improvement to Resty v3 release.