Commit Graph
43 Commits
Author SHA1 Message Date
Seth Michael LarsonandSeth Michael Larson e893facb97 [7.x] Apply Black 20.8b1 formatting 2020-08-27 10:52:30 -05:00
Seth Michael LarsonandGitHub b13c7c6217 [7.x] Switch to long Apache-2.0 license header 2020-07-02 13:15:25 -05:00
Seth Michael LarsonandSeth Michael Larson 8e1798cf31 Apply license header changes and API gen 2020-04-23 14:10:49 -05:00
Seth Michael LarsonandGitHub f0280d9302 [7.x] Decode HTTP response body with "surrogatepass" 2020-04-23 09:21:34 -05:00
Seth Michael LarsonandGitHub 7f07f1f728 [7.x] Surface deprecation warnings from Elasticsearch 2020-03-31 14:44:20 -05:00
Seth Michael LarsonandGitHub ae74e1d0e6 [7.x] Update Cloud ID default port, parsing of Cloud ID 2020-03-12 07:02:04 -05:00
Seth Michael LarsonandGitHub 9219c92779 [7.x] Add support for X-Opaque-Id 2020-03-11 16:33:15 -05:00
Seth Michael LarsonandGitHub 04403ffb1d [7.x] Refactor cloud_id, api_key, headers, and http_compress 2020-03-04 13:07:07 -06:00
Seth Michael LarsonandGitHub b0bc6418e3 [7.x] Add HTTP compression to RequestsHttpConnection 2020-03-03 10:17:58 -06:00
Honza Král cc461fdc3c Disable urllib3 warningns if not ssl_show_warn 2019-12-12 23:43:16 +01:00
Alvaro OlmedoandHonza Král c3fd04b5db Disable InsecureRequestWarning from urllib3's connectionpool with ssl_show_warn option 2019-12-12 22:25:49 +01:00
Philip KraussandHonza Král c4bc2e420d API key Authentication (#1010) 2019-09-20 14:01:31 +01:00
Philip KraussandHonza Král 28920b5d59 Ensure a custom User-Agent header is not overwritten (#992) 2019-08-12 14:20:10 +02:00
Nick LangandGitHub 60d254860b Add support for using cloud_id when instantiating conections (#957)
* add cloud_id

* adding doc strings

* update changelog

* adding some tests to check for cloud_id

* update the read me
2019-05-21 21:21:34 -05:00
Nick LangandGitHub 206f5e2754 Black (#948) 2019-05-10 09:16:33 -06:00
Alvaro Olmedo RodriguezandNick Lang 51ad5d3617 ssl_show_warn option added (#913)
* ssl_show_warn option added

* Typo fixed
2019-03-28 13:20:16 -06:00
Joshua Carp 073db90ae8 Set application/x-ndjson content type on bulk requests.
Resolves #609
2017-10-04 16:07:55 -04:00
Honza Král d336c571b9 [WIP] remove scheme checking 2017-05-15 22:01:54 +02:00
Honza Král c318f7fa63 Make sure environment settings are merged in for requests
Fixes #557
2017-04-17 21:59:03 +02:00
Honza Král d862c8a799 Add content-type default headers with application/json 2017-02-08 20:50:50 +01:00
Honza Král b9ba12977f Refactored connection error handling 2016-12-15 16:46:05 +11:00
Javier AguirreandHonza Král 8e69b98844 Fix UnboundLocalError response (#476) (#481) 2016-12-06 18:10:44 +01:00
Honza Král 8b96556769 Change the trace logger to also include failed requests 2016-10-19 15:28:31 +02:00
Honza Král 8314f7b25c Set verify_certs default to True
If certifi is installed use it as default for ca_certs value
Closes #403
2016-10-17 14:16:56 +02:00
Honza Král 311ac7c814 Allow specifying custom http headers 2016-07-12 18:13:48 +02:00
Honza Král c51b8fdeef Refactored sniff_hosts for easier implementation of AsyncTransport 2016-03-14 22:23:04 +01:00
Will McGinnis b0d3de0ada requested changes. 2016-03-03 19:50:17 -05:00
Will McGinnis 8a18e4c743 added close methods to everything below transport 2016-03-03 19:31:31 -05:00
Honza Král 5dfd6985e5 Only pass in cert to request.session if client_cert specified 2016-02-29 22:39:58 +01:00
Rich MegginsonandHonza Král fe6e9a7f5c Urllib3HttpConnection should have separate client_cert and client_key arguments #344
https://github.com/elastic/elasticsearch-py/issues/344
Add a client_key parameter to complement the client_cert parameter.  If
client_key is used, it is assumed that client_cert will contain only the
certificate, not the combined cert and key in a single file.

Closes #344
2016-02-29 22:35:40 +01:00
Darryl RingandHonza Král a9b8f86547 Log response body for failed requests
Addresses #346
2016-02-01 09:32:43 +01:00
Honza Král 453fe64987 Add docs for the http_auth parameter of RequestsHttpConnection 2015-03-27 10:46:30 +01:00
Honza Král aa2d4f079c Adding tests for advanced auth options for requests 2015-03-26 14:17:10 +01:00
Georges Toth fc98b5d352 Modify test for http_auth to allow for passing custom authentication methods as well 2015-03-26 12:39:09 +01:00
Honza Král 271fc4d232 Warn when people using insecure options. 2015-01-29 23:46:01 +01:00
Honza Král 03a817690d Added support for client SSL certificates for https
Thanks almer-fuel for the inital patch!
2014-11-14 15:31:49 +01:00
Honza Král fedcfafe7e Proper SSL implementation, including optional certificate verification 2014-11-11 03:20:16 +01:00
Honza Král ecfeb93a6f Introducing a ConnectionTimeout as a subclass of ConnectionError
This is to enable #128 to work
2014-10-03 18:49:07 +02:00
Honza Král a54d7035bb Compatibility with python 3.2
Now all the python 2/3 compatibility code is in elasticsearch.compat
Fixes #52
2014-02-21 16:59:13 +01:00
Honza Král e2ab7ea80d Adding a third return value from connection.perform_request - headers
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král c5c98dcaac Add logging of body as INFO on connection error 2013-12-03 01:55:32 +01:00
Honza Kral e6e1fd060e Make requests an optional dependency 2013-10-14 23:33:16 +02:00
Honza Kral a2b89e0b84 Moved RequestsHttpConnection to it's own module 2013-10-04 15:47:56 +02:00