A Kosmos component for starting a web server. Provides a RingJettyComponent that uses Ring's Jetty adapter.
{:web
{:kosmos/init kosmos.web/RingJettyComponent
:port 1111
:ring-app some-ring-app
:app-init init-fn}}
The some-ring-app
is the app var itself. The init-fn
is a user-supplied function that does any initialization the Ring app such as setting up middleware.
FIXME
Kosmos is distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation? These fine people already did:
Michael Pendergrass & Bridget HillyerEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close