keenlabs / KeenClient-Java

Official Java client for the Keen IO API. Build analytics features directly into your Java apps.
https://keen.io/docs
MIT License
74 stars 43 forks source link

Add proxy support, for sending events via a CNAME #86

Open josephwegner opened 7 years ago

masojus commented 7 years ago

HTTP Proxy support via KeenClient.setProxy() is available as of commits 4613656 and bfb7cad. Is there more that needs to be done here?

masojus commented 7 years ago

We need to support setting the root authority to something other than https://api.keen.io. Adding support for true HTTP proxying to query functionality and clearing up authenticated proxy support in the docs should/will be a separate issues. But, using an alternate base address is already supported for KeenClient via the setBaseUrl() method. It needs testing, and possibly work to make sure it applies to the KeenQueryClient as appropriate. This way a given client can leverage the custom SSL domains feature. This should work with HTTP proxying as well, of course.