coursera / metrics-datadog

metrics-datadog
Other
187 stars 105 forks source link

Customize the HttpClient used by HttpTransport #68

Closed fxbonnet closed 7 years ago

fxbonnet commented 7 years ago

For now there is no way to customize the HttpClient used by HttpTransport. HttpTransport is using method org.apache.http.client.fluent.Request.execute() which uses the default HttpClient of class org.apache.http.client.fluent.Executor

I suggest that instead we create an Executor instance and we expose a method Builder.withExecutor(Executor)

In my case I need this feature because I have to use a proxy that requires NTLM authentication.