Commit graph

106 commits

Author SHA1 Message Date
Preben Ingvaldsen
06636b461e (PE-5623) Add :follow-redirects option clj clients
Add a :follow-redirects option to the clj clients which, when
set to false, will prevent the client from following a redirect.
2014-08-26 16:36:47 -07:00
Preben Ingvaldsen
4bd7d25403 (PE-5623) Add forceRedirects option to Java client
Add a forceRedirects option to the Java client that allows it to
follow redirects on POST and PUT requests.
2014-08-25 11:57:39 -07:00
Preben Ingvaldsen
d9f2f1d0f3 (PE-5623) Add :force-redirects to clj client
Add a :force-redirects option to the clojure client that will
relax the redirect restrictions put on the client for a POST
or PUT method.
2014-08-25 11:15:22 -07:00
Jenkins User
2ac2e11ab5 lein-release plugin: bumped version from 0.2.4 to 0.2.5-SNAPSHOT for next development cycle 2014-08-22 08:08:18 -07:00
Jenkins User
350de616f2 lein-release plugin: preparing 0.2.4 release 2014-08-22 08:07:55 -07:00
Chris Price
0e37f0ea5b Update CHANGELOG for 0.2.4 release 2014-08-22 08:05:38 -07:00
Jeremy Barlow
2a67e0b4b8 Merge pull request #12 from cprice404/bug/master/PE-5567-npe-if-no-charset
(PE-5567) Fix bug if content-type header has no charset
2014-08-22 08:04:47 -07:00
Chris Price
88a6e83d48 (PE-5567) Fix bug if content-type header has no charset
Prior to this commit, the Java client API would throw an NPE if
it got a response from a server where the Content-Type header
did not include a charset.
2014-08-22 08:03:36 -07:00
Jenkins User
98df1ebbb6 lein-release plugin: bumped version from 0.2.3 to 0.2.4-SNAPSHOT for next development cycle 2014-08-21 14:48:39 -07:00
Jenkins User
654265d585 lein-release plugin: preparing 0.2.3 release 2014-08-21 14:48:16 -07:00
Jenkins User
de7259759c lein-release plugin: bumped version from 0.2.2 to 0.2.3-SNAPSHOT for next development cycle 2014-08-19 14:33:00 -07:00
Jenkins User
ea0a709941 lein-release plugin: preparing 0.2.2 release 2014-08-19 14:32:38 -07:00
Chris Price
9bf517ec62 Update CHANGELOG for 0.2.2 2014-08-19 14:31:05 -07:00
Jeremy Barlow
acdf427323 Merge pull request #10 from fpringvaldsen/TK-29-add-query-params
(TK-29) Add support for query parameters
2014-08-12 17:12:24 -07:00
Jenkins User
ba78a4e2e7 lein-release plugin: bumped version from 0.2.1 to 0.2.2-SNAPSHOT for next development cycle 2014-08-12 16:24:58 -07:00
Jenkins User
9cde4b47f4 lein-release plugin: preparing 0.2.1 release 2014-08-12 16:24:38 -07:00
Chris Price
b062b1bccb Update CHANGELOG for 0.2.1 release 2014-08-12 16:22:26 -07:00
Jeremy Barlow
684b55d8da Merge pull request #11 from cprice404/maint/master/upgrade-to-apache-4.0.2
Update to apache 4.0.2
2014-08-12 16:20:14 -07:00
Chris Price
78ae3a8ab3 Update to apache 4.0.2 2014-08-12 16:17:09 -07:00
Preben Ingvaldsen
e4545befe8 (TK-29) Address PR comments
Address PR comments by changing CoercedRequestOptions to use
a URI instead of a String, simplifying HTTP method calls, and
removing unused imports.
2014-08-12 11:35:54 -07:00
Preben Ingvaldsen
606754bc81 (TK-29) Move to URI instead of String
Have the RequestOptions constructor take a URI instead of a
string. Add signature to the HTTP request methods that take
a URI.
2014-08-08 16:32:48 -07:00
Preben Ingvaldsen
fee17ad543 (TK-29) Use :query-params and change variable names
Use :query-params in the query param ring handler instead of
:params. Also change variable names used for testing.
2014-08-07 10:36:03 -07:00
Preben Ingvaldsen
449c677c9e Reformat query-options variable
Reformat the query-options variable to line things up and
increase readability.
2014-08-06 14:33:26 -07:00
Preben Ingvaldsen
b20b7a58b2 (TK-29) Overwrite parameters set in URL
Overwrite parameters set in the URL of a request if query
parameters are specified in the options map. If no parameters are
set in the options map, any query parameters set in the URL will
NOT be overwritten and will be successfully passed as part of the
request.
2014-08-06 14:23:56 -07:00
Preben Ingvaldsen
c439b2ed87 (TK-29) Add query params option to clj client
Add query parameter support to the clojure client. User can now
specify a :query-params option in the options map containing a
map of query parameters.
2014-08-06 14:02:10 -07:00
Preben Ingvaldsen
e1e283d701 (TK-29) Add query params to Java client
Add query params back into the Java client, along with tests
to validate this functionality is working.
2014-08-06 10:49:48 -07:00
Kevin Corcoran
7fe744f49c Merge pull request #9 from rlinehan/update_readme
(doc) Update README to link to Apache HttpAsyncClient
2014-07-28 14:55:22 -07:00
Ruth Linehan
78c17ad97c (doc) Update README to link to Apache HttpAsyncClient
Previously, this library was a wrapper around http-kit, but has since been
updated to use the Apache HttpAsyncClient library instead. This commit updates
the README to link to HttpAsyncClient rather than http-kit.
2014-07-28 14:45:45 -07:00
Jenkins User
8150092217 lein-release plugin: bumped version from 0.2.0 to 0.2.1-SNAPSHOT for next development cycle 2014-07-25 15:09:55 -07:00
Jenkins User
d4237ce263 lein-release plugin: preparing 0.2.0 release 2014-07-25 15:09:36 -07:00
Patrick Carlisle
47ed251dd3 Update changelog for 0.2.0 2014-07-25 15:05:53 -07:00
Chris Price
0466c7592b Merge pull request #8 from fpringvaldsen/TK-27-manage-clients-explicitly
(TK-27) Allow user to manage clients explicitly
2014-07-23 12:14:28 -07:00
Preben Ingvaldsen
6fe97dee92 (TK-27) Add test for sync client close
Add test to make sure that a sync client is closed properly.
2014-07-23 10:20:15 -07:00
Preben Ingvaldsen
ebde2f4737 Separate request options
Seperate the request options in the async request function,
then pass these down to future-callback rather than the
entire list of options.
2014-07-23 09:50:31 -07:00
Preben Ingvaldsen
4c13602b05 Use ok alias for consistency
Change instance of schema/optional-key to use ok alias instead
for consistency with the rest of the file.
2014-07-22 11:14:22 -07:00
Preben Ingvaldsen
24aa1da0c7 Fix test failures
Fix test failures introduced by previous commit by
changing definition of Client protocl back to
CloseableHttpAsyncClient.
2014-07-17 14:35:32 -07:00
Preben Ingvaldsen
1aa3b997d6 (TK-27) Add schema docstrings
Add docstrings to certain schemas. Specifically, they were added
to schemas whose purpose could not be made obvious through their
name.
2014-07-17 14:15:42 -07:00
Preben Ingvaldsen
0aeaf73dd9 (TK-27) Add tests for request-with-client
Add asynchronous and synchronous tests for request-with-client.
2014-07-17 14:03:39 -07:00
Preben Ingvaldsen
e586ea53c8 (TK-27) Add request-with-client functions
Add request-with-client functions to the async and sync
namespaces. These now do all the work of the request functions,
so that the request functions cannot directly be passed a client
by the user.
2014-07-17 13:28:33 -07:00
Preben Ingvaldsen
d7e283df42 (TK-27) Dry up use of defaults
Dry up use of defaults. Now, the second signature of the
request function will pass in nil for the client argument
in the third signature, which will create a default client if no
client was provided.
2014-07-17 11:39:35 -07:00
Preben Ingvaldsen
81cd0eabaf (TK-27) Remove persistent namespaces
Remove persistent-async and persistent-sync namespaces,
moving their contents into async and sync, respectively.
2014-07-17 11:06:13 -07:00
Preben Ingvaldsen
849b209bae (TK-27) Move schemas into common
Combine the schemas and common namespaces.
2014-07-17 10:40:40 -07:00
Preben Ingvaldsen
b807083c5a (TK-27) Refactor client protocols
Refactor the async and sync client protocols into a single
protocol which resides in a new file, common.clj.
2014-07-15 16:46:20 -07:00
Preben Ingvaldsen
0b2755eef5 (TK-27) Add persistent sync client
Add a persistent sync client to the persistent-sync namespace.
With this namespace, a user can now create a persistent
sync client for reuse. Also, add persistent sync client test.
2014-07-15 16:01:36 -07:00
Preben Ingvaldsen
cebaeb9eb6 (TK-27) Move test
Move persistent async client test back into the
async-plaintext-test file.
2014-07-15 15:07:43 -07:00
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
a2ef578c76 (TK-27) Allow clients to persist
Modify the handling of clients such that a client that is
explicitly created by a user will not be closed after receiving
a response.
2014-07-15 14:01:18 -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
Preben Ingvaldsen
3a3e60109d (TK-27) Modify create-client function
Modify create-client function in async.clj to now return a new
client wrapped in the async-client protocol. Make create-client
public. Modify request to make a default client if none is
provided to support these changes.
2014-07-14 13:39:08 -07:00