ring-undertow-adapter is a Ring server built with Undertow.
Put this in :dependencies
vector of your project.clj
:
[] (https://clojars.org/ring-undertow-adapter)
If you find that ring-undertow-adapter
has a dependency on an older Undertow,
you can override that in your own project.clj
by putting those lines inside of
:dependencies
:
; Replace "x.y.z" with your version of ring-undertow-adapter
[ring-undertow-adapter "x.y.z" :exclusions [io.undertow/undertow-core]]
[io.undertow/undertow-core "Version-You-Want"]
(require '[ring.adapter.undertow :refer [run-undertow]])
(defn handler [req]
{:status 200
:body "Hello world"})
(run-undertow handler {:port 8080})
Distributed under ISC License.