Closed adreyer closed 8 years ago
@adreyer travis failures on this seem to be legitimate - I get the same when I run locally
ERROR in (persistent-async-client-test) (AFn.java:429)
Uncaught exception, not in assertion.
expected: nil
actual: clojure.lang.ArityException: Wrong number of args (2) passed to: async/eval12700/request-with-client--12705
...
puppetlabs.http.client.async/eval12724/create-client/fn/reify/request async.clj: 466
...
@fpringvaldsen @rlinehan this looks fixed was there anything else todo?
I think it would be good to add some tests - probably to https://github.com/puppetlabs/clj-http-client/blob/master/test/puppetlabs/http/client/async_plaintext_test.clj#L74 and somewhere in https://github.com/puppetlabs/clj-http-client/blob/master/test/puppetlabs/http/client/sync_plaintext_test.clj.
Otherwsie I think I'm :+1:.
After using this I moved the new function to "make-request".
I will soon be blocked on this @rlinehan @fpringvaldsen do either of you have time to review merge?
@camlow325 I think @rlinehan is on PTO today so maybe you could review this since you're already in this repo
The new tests look good and the tests are passing for me locally, so I'm going to go ahead and merge this.
There are a few places where we map request method keywords to http-client function. The http client then maps them back to keywords which is redundant. This adds a general request function to the protocol that accepts a keyword method.
All the other methods could be tweaked to use request. I'm not sure if that's worth it.