Just a quick PR: I changed the requirement of *http.Client to an interface type of HTTPClient.
This improves testability, by allowing test case/packages to implement their own Do method, whether that's faking/mocking a response from HTTP or intercepting a request before it's sent out.
Just a quick PR: I changed the requirement of
*http.Client
to an interface type ofHTTPClient
.This improves testability, by allowing test case/packages to implement their own
Do
method, whether that's faking/mocking a response from HTTP or intercepting a request before it's sent out.