https://github.com/luminus-framework/luminus-immutant
Immutant adapter for Luminus
https://github.com/luminus-framework/luminus-immutant
Last synced: 8 months ago
JSON representation
Immutant adapter for Luminus
- Host: GitHub
- URL: https://github.com/luminus-framework/luminus-immutant
- Owner: luminus-framework
- License: epl-1.0
- Created: 2016-01-08T00:22:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T13:00:12.000Z (almost 6 years ago)
- Last Synced: 2025-10-04T14:48:03.761Z (9 months ago)
- Language: Clojure
- Homepage:
- Size: 15.6 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luminus-immutant
[](https://clojars.org/luminus-immutant)
Immutant HTTP adapter for Luminus
## Usage
The library provides three function for managing the server lifecycle.
The server can be started using the `start` function that accepts a Ring
handler and a map of options described in the [official documentation](http://immutant.org/documentation/current/apidoc/immutant.web.html).
```clojure
(require '[luminus.http-server :as http])
(def server (http/start handler {:port 3000}))
```
The server can have multiple handlers, these are appended using the `wrap-handler`
function:
```clojure
(-> server
(http/wrap-handler another-handler {:path "/foo"})
(http/wrap-handler yet-another-handler {:path "/bar"}))
```
The server is stopped using the `stop` function:
```clojure
(http/stop server)
```
## License
Copyright © 2016 Dmitri Sotnikov
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.