Closed nam-truong-le closed 2 years ago
Currently the http.DefaultClient is used.
// NewHTTPClient returns a new httpClient func NewHTTPClient(apiKeyPublic, apiKeyPrivate string) *HTTPClient { return &HTTPClient{ apiKeyPublic: apiKeyPublic, apiKeyPrivate: apiKeyPrivate, client: http.DefaultClient, } }
Changing the http.DefaultClient might affect other libs. It will be nice if it's possible to provide custom http.Client.
What about (HTTPClient) SetClient(client http.Client)?
Thank you. I missed this information.
Currently the http.DefaultClient is used.
Changing the http.DefaultClient might affect other libs. It will be nice if it's possible to provide custom http.Client.