https://github.com/danpersa/core.async.http.client
https://github.com/danpersa/core.async.http.client
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danpersa/core.async.http.client
- Owner: danpersa
- License: mit
- Created: 2016-08-31T20:10:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T15:25:13.000Z (almost 8 years ago)
- Last Synced: 2025-01-22T04:31:21.831Z (4 months ago)
- Language: Clojure
- Size: 70.3 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# core.async.http.client
core.async.http.client is an HTTP client for clojure and clojurescript.
It uses core.async channels to return the responses.
[](https://travis-ci.org/danpersa/core.async.http.client)
[](https://clojars.org/core.async.http.client)## Installation
core.async.http.client is available from [Clojars](https://clojars.org/groups/core.async.http.client)
With Leiningen/Boot:
```
[core.async.http.client "0.2.0-SNAPSHOT"]
```# Usage examples
## GET```
(http/get "http://www.example.com/resources/id")
```## POST
```
(http/post "http://site.com/resources" {:body "hello"})
```## Inspiration
Got some inspiration from clj-http. I'm trying to keep the API as compatible as possible.
Some more inspiration from httpurr to use protocols for multiple clients.## License
Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php)