Liking cljdoc? Tell your friends :D

ring.adapter.undertow

Adapter for the Undertow webserver.

Adapter for the Undertow webserver.
raw docstring

RespondBodycljprotocol

respondclj

(respond _ exchange)
source

run-undertowclj

(run-undertow handler
              {:keys [host port dispatch?]
               :or {host "localhost" port 80 dispatch? true}
               :as options})

Start an Undertow webserver to serve the given handler according to the supplied options:

:configurator - a function called with the Undertow Builder instance :port - the port to listen on (defaults to 80) :host - the hostname to listen on :io-threads - number of threads to use for I/O (default: number of cores) :worker-threads - number of threads to use for processing (default: io-threads * 8) :dispatch? - dispatch handlers off the I/O threads (default: true)

Returns an Undertow server instance. To stop call (.stop server).

Start an Undertow webserver to serve the given handler according to the
supplied options:

:configurator   - a function called with the Undertow Builder instance
:port           - the port to listen on (defaults to 80)
:host           - the hostname to listen on
:io-threads     - number of threads to use for I/O (default: number of cores)
:worker-threads - number of threads to use for processing (default: io-threads * 8)
:dispatch?      - dispatch handlers off the I/O threads (default: true)

Returns an Undertow server instance. To stop call (.stop server).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close