Skip to content
This repository has been archived by the owner. It is now read-only.
Ring server built with Undertow
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/ring/adapter
test
.gitignore
LICENSE
Makefile
README.md
project.clj

README.md

ring-undertow-adapter

ring-undertow-adapter is a Ring server built with Undertow.

I'm not really spending a lot of time on this, and I think you should look at using immutant-web rather than this code. It's probably going to be better. :)

Installation

Put this in :dependencies vector of your project.clj:

[ring-undertow-adapter latest version] (https://clojars.org/ring-undertow-adapter)

Tracking Undertow versions

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"]

Usage

(require '[ring.adapter.undertow :refer [run-undertow]])

(defn handler [req]
  {:status 200
   :body "Hello world"})

(run-undertow handler {:port 8080})

License

Distributed under ISC License.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.