I'm considering adding http client retries to an existing library, owned by someone else, in order to add resiliency to errors such as http 503. I'd like to keep the changes as minimal as possible, with maximum effect, as usual. I'm eyeing http.Client.Transport. Possibly I could use that to wrap the DefaultTransport, intercept responses, check the code against some rules, and retry on failure.
Am I on the right track here? Thanks, Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.