Commit graph

9 commits

Author SHA1 Message Date
Chris Price
729af72491 (TK-23) Cleanups based on PR feedback 2014-07-03 09:21:42 -07:00
Chris Price
186b226512 (TK-23) Port to apache HttpAsyncClient
* Ports the code over to use the Apache HttpAsyncClient library
  instead of http-kit, as we were getting some weird and inconsistent
  SSL errors from http-kit, and
* Simplify the API (by eliminating a lot of the supported configuration
  options).  Some of these options we'll eventually want to add back in,
  but for now, getting rid of them makes the API less cluttered and
  also gives us the opportunity to do a better job writing tests
  for new options when we do add support for them.

For now it only supports constructing a new client on every request.
I intend to add API for creating a client explicitly, and a protocol
for how to interact with the client.  This will allow users to
re-use an existing client as they see fit... but this hasn't been
implemented yet.
2014-07-03 08:58:46 -07:00
Chris Price
f9a7a9fd49 Cleanup and additional test based on PR feedback 2014-04-11 13:56:09 -07:00
Chris Price
cc3633b428 Support SSLContext configured with only CA cert 2014-04-08 17:21:13 -07:00
Chris Price
d21158f807 (PE-3377) Use certificate-authority lib for ssl instead of KS 2014-04-08 14:26:44 -07:00
Chris Price
db53a75f34 Add integration tests for sync clients
Prior to this commit, we didn't actually have any tests that
started a real web server and made a real request.  This
commit adds tests that do this for the clojure and Java
synchronous clients, using SSL.
2014-03-28 17:33:27 -07:00
Patrick Carlisle
96ad26b054 Reorganize sync and async clients. 2014-03-11 17:59:07 -07:00
Patrick Carlisle
79631d28bd Make SSL configuration more flexible and refactor
This makes it possible to pass in an SSLEngine, SSLContext or set of PEM
files. It also significantly refactors the wrapper and leaves the default
methods async.
2014-03-11 17:19:37 -07:00
Patrick Carlisle
3c5ea542ea Initial commit 2014-03-10 17:24:22 -07:00