mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Watcher: Use Apache HttpClient for internal Watcher HttpClient The current implementation based on URLConnection has several drawbacks. * If server returned HTTP header but then got stuck, no timeout would help, the connection remained stuck * GET requests with a body were not supported, the method was silently changed to POST * More complex handling of input/error stream handling, the body could not be read from a single input stream NOTE: This is a BWC breaker. From now on every part of the URL needs to be encoded properly before it is configured in the requeust builder. This requires an upgrade of all watches. Closes elastic/elasticsearch#1141 Original commit: elastic/x-pack-elasticsearch@bbc8f85dd8