How to override http.Client{} with custom one?
Glavic opened this issue · 3 comments
Glavic commented
If API consumer needs to change timeouts, proxy, or what ever else on http.Client{}
he cannot do this atm.
I would suggest to make KrakenApi struct
public and that would probably solve all problems?
For example: https://github.com/Glavic/kraken-go-api-client/commit/b60b3819bce6afb919764e87c90eccb06aecff43
Any other ideas?
beldur commented
What about a new Method krakenapi.NewWithClient(key, secret, yourOwnHTTPClient). Would that help?
Glavic commented
Yes, that would also solve the problem.