Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Information Provided
-
None
-
None
-
None
Description
THttpClientOptions (http_client.go) takes a strict http.Client type which disallows developers from customizing http.Client or providing their own implementation. I propose to replace this with an interface such as:
type HttpClient interface {
Do(req *http.Request) (*http.Response, error)
}
Do() is the only function of http.Client that is used (in THttpClient.Flush()).