Integrant multimethods for running a Jetty server for the Duct framework.
Add the following dependency to your deps.edn file:
org.duct-framework/server.http.jetty {:mvn/version "0.3.5"}
Or to your Leiningen project file:
[org.duct-framework/server.http.jetty "0.3.5"]
The multimethods dispatch off the :duct.server.http/jetty key, which
is derived from :duct.server/http. The corresponding value is a map
of options for the Ring Jetty Adapter, plus a :handler key that
takes a handler function.
For example:
{:duct.server.http/jetty
{:port 3000
:handler #ig/ref :app.example/handler}
:app.example/handler {}}
A :logger key may also be specified, which is be used to log when the
server starts and when it stops. The value of the key should be an
implementation of the duct.logger/Logger protocol from the
duct.logger library.
Copyright © 2026 James Reeves
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |