Commit graph

4 commits

Author SHA1 Message Date
Preben Ingvaldsen
27d5838ce3 (TK-27) Put persistent client in own ns
Put the persistent client in its own namespace. Remove the
persistent- prefix from the front of the persistent client
http request functions.
2014-07-15 15:04:28 -07:00
Preben Ingvaldsen
54fa3d77fd (TK-27) Add test for persistent async client
Add test for persistent async client. This test creates a
persistent async client, then uses it to make each kind of HTTP
request.
2014-07-15 14:06:28 -07:00
Preben Ingvaldsen
f3f3c5b6af Fix typo in test comment
Fix typo in test comment, which was referring to an async client
as a sync client.
2014-07-14 13:45:43 -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