Commit graph

254 commits

Author SHA1 Message Date
Jenkins CI
b21b595aee Version 0.4.4-SNAPSHOT 2015-03-20 12:43:09 -07:00
Jenkins CI
964ba2d9c2 Version 0.4.3 2015-03-20 12:43:05 -07:00
Justin May
587318d8d9 Merge pull request #38 from camlow325/maint/master/clj-http-client-0.4.3-release
(MAINT) Updated CHANGELOG.md for clj-http-client 0.4.3 release
2015-03-20 11:25:56 -07:00
Jeremy Barlow
15b5e532e9 (MAINT) Updated CHANGELOG.md for clj-http-client 0.4.3 release
This commit updates the CHANGELOG.md for the clj-http-client 0.4.3
release.
2015-03-20 11:22:12 -07:00
Justin May
b04c03334f Merge pull request #37 from camlow325/maint/master/fixup-timeout-test-names
(MAINT) Fix timeout test names and testing strings
2015-03-20 10:52:21 -07:00
Jeremy Barlow
a4c8994189 (MAINT) Fix timeout test names and testing strings
This commit has a couple of cosmetic fixes to the names and testing
strings for a few tests introduced by TK-134.
2015-03-19 21:25:55 -07:00
Justin May
c60f816d3c Merge pull request #36 from camlow325/feature/master/TK-134-connection-timeouts
(TK-134) Add connect and socket timeout client configuration
2015-03-19 11:10:26 -07:00
Jeremy Barlow
6520abfb1d (TK-134) Updated connection tests to handle Connect or SocketTimeout
This commit updates the short connect timeout tests to tolerate either a
ConnectException or SocketTimeoutException as a success condition.
Connections could fail with either exception depending upon timing or
network setup.
2015-03-16 22:46:07 -07:00
Jeremy Barlow
9b55ed31b6 (TK-134) Add connect and socket timeout client configuration
This commit enables http clients to optionally configure a connect
and/or socket timeout for requests.  For persistent clients, the
timeout values can only be configured at the client and not a
per-request level.  Non-persistent client requests support the
configuration of these timeouts.

This commit also bumps a few dependencies - tk-jetty9 to 1.2.0,
trapperkeeper to 1.10, ssl-utils to 0.8.0, and clojure to 1.6.0 -
and adds the 'test' tk-jetty9 library as a dev dependency for
testing.
2015-03-16 12:22:35 -07:00
Kevin Corcoran
b90dec2f22 update CHANGELOG.md with 0.4.2 release notes 2015-02-13 15:47:35 -08:00
Jenkins CI
09dd79741a lein-release plugin: bumped version from 0.4.2 to 0.4.3-SNAPSHOT for next development cycle 2015-02-13 15:32:02 -08:00
Jenkins CI
0cfa80ba64 lein-release plugin: preparing 0.4.2 release 2015-02-13 15:31:41 -08:00
Jeremy Barlow
d6be7d1d86 Merge pull request #34 from KevinCorcoran/fix-charset
(TK-145) fix application of default charset
2015-02-13 12:25:24 -08:00
Kevin Corcoran
95a88286ce (TK-145) fix default charset in Java client
Fix a bug in which a default charset of UTF-8 would be added to the
Content-Type header for certain requests.  This change restricts that
behavior to cases in which the body is a string and there is no charset
provided by the caller.
2015-02-13 11:32:04 -08:00
Kevin Corcoran
2967c63473 (maint) add pom.xml to .gitignore
pom.xml is generated during 'lein install'.
2015-02-13 10:53:12 -08:00
Kevin Corcoran
583b71a556 (TK-145) fix application of default charset
Fix a bug in which a default charset of UTF-8 would be added to the
Content-Type header for certain requests.  This change restricts that
behavior to cases in which the body is a string and there is no charset
provided by the caller.
2015-02-13 10:53:12 -08:00
Kevin Corcoran
ad93e3822f (maint) nothing to see here, move along.
* add an exclusion on a dev dependency in project.clj to make Cursive
  happy.
* clean up imports
2015-02-13 10:53:11 -08:00
Chris Price
86edcfb993 Merge pull request #35 from nwolfe/bug/master/tk143-allow-sslv3-in-tests
(TK-143) Allow SSLv3 in tests
2015-02-13 08:59:38 -08:00
Nate Wolfe
c45d4471a9 (MAINT) Improve travisci file
Add the :all test selector and set -e because they won't hurt, and we
were bit by the lack of these in other projects recently.
2015-02-12 17:12:05 -08:00
Nate Wolfe
60030a3b30 (TK-143) Allow SSLv3 during unit tests
This commit enables all algorithms (by disabling none) during unit
testing so that our SSLv3 unit tests can work properly.
2015-02-12 17:05:06 -08:00
Preben Ingvaldsen
bb68868a12 Merge pull request #32 from KevinCorcoran/add-clojars-badge
(maint) add Clojars badge to README - closes #31
2015-02-10 16:21:40 -08:00
Kevin Corcoran
f9384622e4 (maint) add Clojars badge to README - closes #31 2015-02-09 13:29:25 -08:00
Jenkins CI
f9d6f8b200 lein-release plugin: bumped version from 0.4.1 to 0.4.2-SNAPSHOT for next development cycle 2015-01-26 10:56:40 -08:00
Jenkins CI
afb46fb72e lein-release plugin: preparing 0.4.1 release 2015-01-26 10:56:19 -08:00
Jeremy Barlow
84c99b052e Merge pull request #30 from nwolfe/update-changelog
(MAINT) Update CHANGELOG for 0.4.1 release
2015-01-26 10:50:05 -08:00
Nate Wolfe
acfe3f4806 (MAINT) Update CHANGELOG for 0.4.1 release 2015-01-26 10:48:14 -08:00
Jeremy Barlow
1c007767e3 Merge pull request #29 from nwolfe/svr101-update-jvm-ca-dependency
(SERVER-101) Update jvm-ca dependency
2015-01-26 10:41:20 -08:00
Nate Wolfe
e164bb12d7 (SERVER-101) Upgrade jvm-ca dependency to 0.7.0
This commit changes the usages to reflect the new name of the library
and API.
2015-01-23 17:33:02 -08:00
Nate Wolfe
017c950f60 (MAINT) Upgrade trapperkeeper dependency to 1.0.1 2015-01-23 15:10:26 -08:00
Nate Wolfe
e8546660e0 (MAINT) Upgrade kitchensink dependency to 1.0.0 2015-01-23 14:58:23 -08:00
Nate Wolfe
5d5dfa4f7f (MAINT) Add .lein-failures to .gitignore
This file is auto-generated during "lein test" and thus leaves the git
repo dirty after a test run. We can ignore this file.
2015-01-23 14:52:18 -08:00
Jeremy Barlow
3f51098b20 Merge pull request #28 from fpringvaldsen/TK-117-external-api-docs
(TK-117) Add external API docs
2014-12-23 09:01:18 -08:00
Preben Ingvaldsen
4eb10ea549 (TK-117) Address further PR comments
Make a number of minor cosmetic changes to address PR comments.
Document constructors for the SimpleRequestOptions class.
2014-12-19 13:21:36 -08:00
Preben Ingvaldsen
f92ff0396e (TK-117) Add javadoc strings
Add javadoc strings to each of the user-facing Java classes, and
reference those javadoc strings in the documentation on the
Java client.
2014-12-18 12:01:18 -08:00
Preben Ingvaldsen
494f806f14 (TK-117) Address PR comments
Expand discussion of the `close` function for clojure clients and
the `close` method for Java clients. Add examples for making
requests with various types of clients. Fix wording/typos.
2014-12-17 15:15:12 -08:00
Preben Ingvaldsen
8a3a675d3f (TK-117) Add external API docs
Add some external API docs in the doc folder which detail how
to make requests using the Java and clojure clients.
2014-12-16 11:40:25 -08:00
Jenkins CI
91e29aebeb lein-release plugin: bumped version from 0.4.0 to 0.4.1-SNAPSHOT for next development cycle 2014-11-17 15:54:26 -08:00
Jenkins CI
7e5729bffd lein-release plugin: preparing 0.4.0 release 2014-11-17 15:54:04 -08:00
Preben Ingvaldsen
69b8ae6c63 Merge pull request #27 from camlow325/maint/master/clj-http-client-0.4.0-release
(MAINT) Update CHANGELOG and project.clj for 0.4.0 release
2014-11-17 15:25:36 -08:00
Jeremy Barlow
74ef5ee0fc (MAINT) Update CHANGELOG and project.clj for 0.4.0 release 2014-11-17 14:04:56 -08:00
Preben Ingvaldsen
8d0fcdf713 Merge pull request #26 from camlow325/maint/master/TK-103-http-client-close-on-request-complete
(TK-103) Rework client close and remove support for "single request" async APIs
2014-11-17 10:34:02 -08:00
Jeremy Barlow
137ae4bd48 (TK-103) Restored redirect-test-async tests
This commit restores several of the `rediret-test-async` tests, using a
client to make the requests since the client-less single-request async
APIs are no longer available.
2014-11-15 14:37:00 -08:00
Jeremy Barlow
91f679a795 (TK-103) Restored query-params-test-async tests
This commit restores the `query-params-test-async` tests, using a client
to make the requests since the client-less single-request async APIs are
no longer available.
2014-11-14 15:54:02 -08:00
Jeremy Barlow
94379358ac (TK-103) More DRYing up and restored some options documentation
This commit removes the `request-with-reified-client` function in
async.clj in lieu of having clients just call the `request-with-client`
function.

This commit also restores documentation for the client and request
options to the `create-client` and `request-with-client` functions,
respectively.  The documentation includes some updates for newer options
which are supported but not were not included in the code currently on
the master branch.
2014-11-13 16:25:32 -08:00
Jeremy Barlow
22fffaa797 (TK-103) DRYed up Clojure client request
This commit removes some repeated code from the Clojure sync request
function and changes the surrounding try/catch/finally block to make use
of the Clojure `with-open` macro.
2014-11-12 14:42:16 -08:00
Jeremy Barlow
4e56352c44 (TK-103) Restore client close tests
This commit restores some of the client close tests which had been
disabled temporarily per some of the refactoring for TK-108.
2014-11-12 14:20:50 -08:00
Jeremy Barlow
e5f55affd3 (TK-103) Reworked sync single request APOIs to create and close client
For both the Clojure and Java single request APIs, the internal
implementation now creates an http client, makes a request on it, and
calls close on the client when done.  The close at the end avoids
resource leaks.

In support of this, the `JavaClient` class now requires the caller to
create an instance rather than just make a call to the static
`request` method on the `JavaClient` class.

The `coerceBodyType` method on the `JavaClient` class now closes the
body `InputStream` after coercing the stream content into a `String`.
This eliminates a possible resource leak and makes the Java-layer
coerce implementation consistent with the Clojure-layer coerce in
that the latter was already, via the use of the Clojure `slurp`
function, closing the stream content after coercing to `String`.
2014-11-12 14:11:16 -08:00
Jeremy Barlow
c1abea3e37 (TK-103) Remove AsyncClose class and references
This commit removes the `AsyncClose` class and references to it.  These
changes are in preparation for making the close call after the response
has been dereferenced - to be done in a later commit.  The `persistent`
flag/option was also removed from request handling as it will no longer
be used for determining whether or not the client should be closed
following a request.
2014-11-12 11:37:44 -08:00
Jeremy Barlow
d437646203 (TK-103) Remove non-client based async APIs
This commit removes the non-client based APIs for doing async requests.
2014-11-12 11:04:11 -08:00
Jeremy Barlow
5b7c465f4f Merge pull request #25 from fpringvaldsen/TK-108-java-persistent-client
(TK-108) Add support for persistent Java clients
2014-11-12 10:35:09 -08:00