This is a wrapper around the Apache HttpAsyncClient library providing some extra functionality for configuring SSL in a way compatible with Puppet.
Add the following dependency to your project.clj
file:
Async versions of the http methods are exposed in puppetlabs.http.client.async, and synchronous versions are in puppetlabs.http.client.sync. For information on using these namespaces, see the page on making requests with clojure clients.
Additionally, this library allows you to make requests using Java clients. For information on how to do this, see the page on making requests with java clients.
The tests require pki files in the dev-resources/ssl/
directory of:
ca.pem
: a CA cert with the CN of "puppet"key.pem
: a node private keycert.pem
: a cert signed by ca.pem
for the private key at key.pem
with a CN of "localhost"alternate-ca.pem
: a valid but untrusted CA certThe repo contains these files needed for testing, though if needed you may
want to read dev-resources/gen-pki.sh
for the commands to generate additional
sets of files.
We use the Trapperkeeper project on JIRA for tickets on clj-http-client, although Github issues are welcome too.
Can you improve this documentation? These fine people already did:
Patrick Carlisle, Robert Roland, Justin Stoller, Jeremy Barlow, Kevin Corcoran, Preben Ingvaldsen, Ruth Linehan & Chris PriceEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close