databricks-sdk-java icon indicating copy to clipboard operation
databricks-sdk-java copied to clipboard

[FEATURE] Support to add HttpInterceptors to DatabricksConfig HttpClient

Open costichiulan opened this issue 1 year ago • 0 comments

We're trying to pass a header User-Agent to http requests for ISV product integration I had to copy entire CommonsHttpClient class and change only the makeClosableHttpClient implementation to allow me to add httpInterceptors.

Proposed Solution V1 - In DatabricksConfig we should be able to pass/set a List of HttpInterceptor in order to add custom headers to http requests.

V2 -> Change CommonsHttpClient.makeClosableHttpClient method access modifier to protected, as this would allow us to add custom HttpInterceptors to HttpClient, without having to keep in sync the other methods.

costichiulan avatar Aug 06 '24 12:08 costichiulan