Seth Michael Larson and GitHub
a728aaa491
[7.x] Sort imports with isort and regenerate APIs
2021-01-13 14:21:04 -06:00
fe5367382b
[7.x] Move client meta header logic to Transport
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-12-17 15:25:08 -06:00
58b376159c
[7.x] Handle Python pre-releases properly in meta header
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-12-15 16:32:27 -06:00
b894e359df
[7.x] Add the 'X-Elastic-Client-Meta' header
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-12-14 17:50:14 -06:00
876bf90943
[7.x] Support IPv6 braces in Connection.host
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-12-01 17:42:50 -06:00
52a7cfe3fb
[7.x] Fix Connection.log_*() body parameter type
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-10-05 11:38:13 -05:00
39e49b7a81
[7.x] Update Cloud ID format tests
...
Co-authored-by: Seth Michael Larson <[email protected] >
2020-08-31 15:29:45 -05:00
Seth Michael Larson and Seth Michael Larson
e893facb97
[7.x] Apply Black 20.8b1 formatting
2020-08-27 10:52:30 -05:00
Seth Michael Larson and Seth Michael Larson
8ab07f44b8
[7.x] Add support for 'url_prefix' to AIOHttpConnection
...
(cherry picked from commit 64e81434feddb37a271a31c4b9bc7576e2500008)
Co-authored-by: Seth Michael Larson <[email protected] >
2020-08-20 13:13:47 -05:00
Seth Michael Larson and GitHub
b13c7c6217
[7.x] Switch to long Apache-2.0 license header
2020-07-02 13:15:25 -05:00
Seth Michael Larson and Seth Michael Larson
a3e103b00e
[7.x] Add test suite for async API
2020-05-21 11:36:21 -05:00
Seth Michael Larson and GitHub
9cc48b3e66
Update new APIs in 7.x
2020-05-08 16:07:52 -05:00
Seth Michael Larson and Seth Michael Larson
8e1798cf31
Apply license header changes and API gen
2020-04-23 14:10:49 -05:00
Seth Michael Larson and GitHub
f0280d9302
[7.x] Decode HTTP response body with "surrogatepass"
2020-04-23 09:21:34 -05:00
Seth Michael Larson and GitHub
7f07f1f728
[7.x] Surface deprecation warnings from Elasticsearch
2020-03-31 14:44:20 -05:00
Seth Michael Larson and GitHub
7b6a12f2e5
Remove opaque_id from the client constructor
2020-03-19 13:23:52 -05:00
Seth Michael Larson and GitHub
ae74e1d0e6
[7.x] Update Cloud ID default port, parsing of Cloud ID
2020-03-12 07:02:04 -05:00
Seth Michael Larson and GitHub
9219c92779
[7.x] Add support for X-Opaque-Id
2020-03-11 16:33:15 -05:00
Seth Michael Larson and Seth Michael Larson
210fae23d0
Run Black+Flake8 on project
2020-03-09 13:54:47 -05:00
Seth Michael Larson and GitHub
04403ffb1d
[7.x] Refactor cloud_id, api_key, headers, and http_compress
2020-03-04 13:07:07 -06:00
Seth Michael Larson and GitHub
b0bc6418e3
[7.x] Add HTTP compression to RequestsHttpConnection
2020-03-03 10:17:58 -06:00
Seth Michael Larson and GitHub
1bda6aca8a
[7.x] Don't issue warning when using 'ssl_context'
2020-02-26 15:57:30 -06:00
Philip Krauss and Honza Král
c4bc2e420d
API key Authentication ( #1010 )
2019-09-20 14:01:31 +01:00
Philip Krauss and Honza Král
28920b5d59
Ensure a custom User-Agent header is not overwritten ( #992 )
2019-08-12 14:20:10 +02:00
Nick Lang and GitHub
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 Lang and GitHub
206f5e2754
Black ( #948 )
2019-05-10 09:16:33 -06:00
Alvaro Olmedo Rodriguez and Nick Lang
51ad5d3617
ssl_show_warn option added ( #913 )
...
* ssl_show_warn option added
* Typo fixed
2019-03-28 13:20:16 -06:00
robgil and Nick Lang
64c125d34c
Adding GZip support to urllib3 ( #704 )
...
* Adding GZip support to urllib3
* Adding compression documentation and example
* Convert to lowercase for consistency
* Moving header manipulation to __init__()
* Validating headers for compression
* Moving body compression out of the headers block
* Don't compress if there is no body
* Infer true
2018-03-13 10:34:25 -06:00
Nick Lang and GitHub
058d38f0ae
Use use ssl_context or don't but don't mix ( #714 )
...
* Use original SSL process and add SSLContext
Not going to deprecate and replace with SSLContext.
But instead give option for using SSLContext next to the original way of
handling SSL.
2018-03-04 15:09:40 -08:00
Nick Lang
bf1d64e88d
Updates to SSL Context changes,
...
Bug with OSX made breaking changes to the way certifi was being imported
and used.
Unable to reproduce with Linux.
Found improper logic. Fixed now.
Also changing removing the flag for checking `verify_certs` as
it is `True` by default. Don't want to make users flag that as
`False` just to make things work.
A connection to an SSL instance should be:
es = Elasticsearch("https://host:port ", http_auth=(user,pass))
* If using Elastic Cloud or some other publicly recognized certificate
that certifi can recognize.
2017-12-27 20:26:23 -07:00
Nick Lang and Honza Král
37490e223f
When _just_ using an SSL context we don't want breaking behavior ( #673 )
...
Also don't want to break backwards compat. So when chcking for depreicated values ignore
the check on verify_certs. Since it's True. the verify certs will be default true
in the ssl_context. And can be turned off in the SSL context when using it.
2017-11-28 22:01:20 +01:00
Nick Lang and GitHub
5c537deca4
Merge pull request #635 from fxdgear/nick/ssl_context
...
Nick/ssl context
2017-10-06 11:35:23 -06:00
Nick Lang
7339a272b5
Add SSL context for versions of Python that support SSL Context.
...
Instead of passing parameters manually, you can construct an SSL
context. This allows for greater flexibility in using self signed certs.
2017-10-06 11:27:15 -06:00
Joshua Carp
3045516738
Clean up custom headers.
2017-10-04 16:07:55 -04:00
Honza Král
597bf7ade9
Log proper headers in trace logs
2017-03-05 11:19:01 -08:00
Honza Král
d862c8a799
Add content-type default headers with application/json
2017-02-08 20:50:50 +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
418b93bfec
Do not warn on 404s when using HEAD method
...
Fixes #396
2016-04-27 13:21:47 +02:00
Honza Král
6f7a56964c
Removing ThriftConnection and MemcachedConnection
2015-10-07 17:47:05 +02:00
Honza Král
d328998b36
Add keep_alive headers by default to Urllib3HttpConnection
2015-06-22 20:39:58 +02:00
Honza Král
aa2d4f079c
Adding tests for advanced auth options for requests
2015-03-26 14:17:10 +01:00
Honza Král
271fc4d232
Warn when people using insecure options.
2015-01-29 23:46:01 +01:00
Honza Král
20aa35d791
Urllib3 will fill in the content-length automatically
2014-10-01 16:42:04 +02:00
Honza Král
f10d7f2da2
Body is always sent as utf-8 bytes, reflect it in tests
...
Thanks johbo for the report!
2014-05-09 18:11:50 +02:00
Honza Král
49b7a1aca9
Make sure to include Content-Length header in calls with body
...
Fixes #70
2014-03-31 16:41:08 -07: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
c2611e92eb
Set timeout properly for Requests and Thrift connections
2014-01-23 08:48:42 +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
be9acfad90
Make sure we handle quotes correctly in the trace logger
2013-12-11 14:41:42 +01:00