Commit Graph

31 Commits

Author SHA1 Message Date
e77430ac4e [Backport 7.x] Updated default http agent configuration (#1250)
Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
2020-07-09 09:01:45 +02:00
24961869cc Reorganized test and force 100% code coverage (#1226) 2020-06-15 08:38:46 +02:00
51169d5efa Support for Elasticsearch 7.7 (#1192) 2020-05-14 09:55:54 +02:00
a9a905409e [Backport 7.x] ApiKey should take precedence over basic auth (#1117)
* ApiKey should take precedence over basic auth

* Updated docs

* Updated test

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
2020-03-13 13:41:57 +01:00
8c78f47ac3 Support for Elasticsearch 7.3 (#928) 2019-08-01 10:09:16 +02:00
060d4ae5fc Remove auth data from inspect and toJSON in connection class (#887)
* Remove auth data from inspect and toJSON in connection class

* Updated test
2019-07-04 14:43:01 +02:00
bb0ff22fd2 Support for non-friendly chars in url username and password (#858)
* Support for non-friendly chars in url username and password
- Added auth option to Connection class
- Updated pool.addConnection

* Updated test
2019-05-20 17:10:17 +02:00
96a103b305 Added toJSON method to Connection class (#849)
* Added toJSON method to Connection class

* Updated test

* Updated typings
2019-05-14 12:01:21 -04:00
064807c5a9 Fix 843 (#845)
* Fix #843

* Updated test
2019-05-10 10:56:06 +02:00
ef3126b361 Custom http agent support (#810) 2019-04-10 11:42:51 +02:00
1d61cba014 Inspect Connection (#784)
Handles `console.log` and `utils.inspect` invocations for a better debugging experience.

`agent` and `ssl` are hidden since they made the logs very hard to read.
The user can still access them with `instance.agent` and `instance.ssl`.
2019-03-19 09:53:43 +01:00
cae38e6b2b License (#773)
- Added license header
- Added license checker
- Fixed tap
2019-03-08 07:47:24 +01:00
f175f83d34 Workaround for keepAlive false 2019-03-01 09:02:31 +01:00
36163f4822 Use a safe default for keep alive maxSockets (#770) 2019-02-28 16:08:14 +01:00
ecb2ba47a8 Small fixes 2019-02-11 17:37:29 +01:00
55fc8d7388 Handle unescaped characters 2019-01-28 11:27:21 +01:00
88c9fa8546 Consistent roles handling 2019-01-21 16:49:08 +01:00
fc6d12ad3e Updated closing logic 2018-12-19 19:49:29 +01:00
32e674f26c Added protocol validation 2018-12-18 17:28:25 +01:00
a9e621721e WIP: initial prototype
- Added client.close API
- Added resurrect event
- Improved resurrect ping strategy
- Updated types
2018-12-10 20:15:42 +01:00
fd738f8425 WIP: initial prototype
- Standardized event emitters
- Refactored transport.request to have a better handling of the state
- Added sniff event
- Improved abort handling
2018-12-03 18:11:43 +01:00
79b4187f30 WIP: initial prototype
- Hide auth data from Node ID
- Added support for sending streams
2018-11-20 18:51:23 +01:00
020165168c WIP: initial prototype
- Expose connection info inside events
- Fixed minor bugs
2018-11-19 11:33:40 +01:00
11b0d50751 WIP: initial prototype
- Added asStream option
- Better handling of request object
2018-11-15 17:50:56 +01:00
3dd4f01370 WIP: initial prototype
- Renamed host configuration, now we use node(s)
- Updated Connection internals
- Added custom headers for Connection
2018-11-09 17:15:29 +01:00
d77d97d301 WIP: initial prototype
- Use plain node http.request
- WIP: connection closing procedure
- Updated ConnectionPool.getConnection
- Removed Selector class and expose a single configuration parameter
- Added compression handling
- Improved code documentation
2018-11-05 19:19:39 +01:00
51e6c76511 WIP: initial prototype
- Added querystring support
- Added support for already serialized bodies
2018-10-26 19:04:45 +02:00
3c8aaaecd1 WIP: initial prototype
- Added more sniffing options
- Added support for different resurrection strategies
- Fixed url resolving
2018-10-24 15:52:11 +02:00
cef4e2dfc1 WIP: initial prototype
- Added support for request timeout
- Improved deserializer
- Fixed minor bugs
- Fixed typos
2018-10-22 16:50:17 +02:00
68cca6069b WIP: initial prototype
- Added keep-alive Agent
- Added support for HTTPS
- Added log events
2018-10-19 15:04:07 +02:00
e1b80882af Initial prototype 2018-10-18 17:27:31 +02:00