reitit/examples/http/README.md

22 lines
581 B
Markdown
Raw Normal View History

2018-08-25 13:30:16 +00:00
# reitit-http example
2018-08-20 15:48:22 +00:00
## Usage
```clj
> lein repl
(start)
```
2018-08-25 13:28:57 +00:00
Go with browser to:
* http://localhost:3000/api/sync - synchronous
2018-09-03 09:35:28 +00:00
* http://localhost:3000/api/async - with [core.async](https://github.com/clojure/core.async) channels
* http://localhost:3000/api/future - with [futures](https://clojuredocs.org/clojure.core/future)
* http://localhost:3000/api/deferred - with [manifold](https://github.com/ztellman/manifold) deferred
* http://localhost:3000/api/promesa - with [promesa](http://funcool.github.io/promesa/latest/) promises
2018-08-25 13:28:57 +00:00
2018-08-20 15:48:22 +00:00
## License
Copyright © 2018 Metosin Oy