Commit Graph
36 Commits
Author SHA1 Message Date
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
Honza Král 4bce8a464c Added more detailed error handling
namely being able to detect conflicts and bad requests
2013-11-14 01:12:55 +01:00
Honza Král 68b19ebe55 Fixed test after log format change 2013-11-03 22:44:16 +01:00
Honza Kral cc524e9c9d Python 3 fix fo tests 2013-10-06 17:43:45 +02:00
Honza Kral 92c7dde5e0 Removing redundant code 2013-10-02 01:04:50 +02:00
Njal KarevollandHonza Kral 6a0f5c7646 urllib3: add a test to verify that providing http_auth as a list works 2013-10-02 01:01:30 +02:00
Honza Kral 1a9fd9e105 Remove duplicate test 2013-10-02 01:01:05 +02:00
Njal KarevollandHonza Kral 4037de58d0 requests: add tests to verify that providing http_auth as a list works and that the authorization headers are added to the request 2013-10-02 01:00:11 +02:00
Honza Kral 5fccd1e793 Allow lists for http_auth in RequestsHttpConnection
thanks nkvoll!
2013-10-02 00:42:38 +02:00
Honza Kral b0587071b6 Circumvent prepared requests from RequestsHttpConnection
this is because sesion.send(prepared_request) doesn't pass through auth
info. Thanks nkvoll!

Fixes #8
2013-10-02 00:39:19 +02:00
Honza Kral 33b05bdc62 Thrift SSL support 2013-09-25 21:31:10 +02:00
Honza Kral 490fd237ee rename use_https to use_ssl to make it forwards copatible with thrift 2013-09-25 21:07:29 +02:00
Honza Kral b724288d76 Https support for the http-based transports.
Thanks, nkvoll!
2013-09-24 23:07:14 +02:00
Honza Kral 7a440fda4a Support for HTTP auth. Thanks, nkvoll! 2013-09-24 22:55:04 +02:00
Honza Kral fe7cc106f6 Use unittest2 even for python 2.6 2013-08-28 19:11:28 +02:00
Honza Kral e91ed68bd0 Split individual connection classes 2013-08-25 16:39:56 +02:00
Honza Kral 476b1ca132 expose timeout on Connection class 2013-05-24 01:25:19 +02:00
Honza Kral a70db43abd Enable url_prefix for Connection, do not include it in trace calls 2013-05-23 22:15:55 +02:00
Honza Kral b22012b1a7 Connection's repr test 2013-05-02 15:41:22 +02:00
Honza Kral a7e3b95e01 Make tests pass on sloow machines 2013-05-02 15:36:53 +02:00
Honza Kral 0fd398a0d5 Error logging 2013-05-02 00:41:27 +02:00
Honza Kral ebd6370e59 Add logging on successful request 2013-05-02 00:34:46 +02:00
Honza Kral 71daa6ef14 RequestsHttpConnection class handling the actual http communication 2013-05-01 21:55:44 +02:00