An open API service indexing awesome lists of open source software.

https://github.com/luminus-framework/luminus-undertow

Undertow wrapper for Luminus
https://github.com/luminus-framework/luminus-undertow

Last synced: 8 months ago
JSON representation

Undertow wrapper for Luminus

Awesome Lists containing this project

README

          

# luminus-undertow

Undertow HTTP adapter for Luminus

[![Clojars Project](https://img.shields.io/clojars/v/luminus-undertow.svg)](https://clojars.org/luminus-undertow)

### HTTP handler

```clojure
(ns myapp.core
(:require
[luminus.http-server :as http]))

(defn http-handler [request]
{:status 200
:headers {"Content-Type" "text/plain"}
:body (:remote-addr request)})

(http/start
{:handler http-handler
:port 3000})
```

## License

Copyright © 2016 Dmitri Sotnikov

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.