Adapter for the Undertow webserver.
Adapter for the Undertow webserver.
(run-undertow handler options)Start an Undertow webserver using given handler and the supplied options:
:configurator - a function called with the Undertow Builder instance :host - the hostname to listen on :http? - flag to enable http (defaults to true) :port - the port to listen on (defaults to 80) :ssl-port - a number, requires either :ssl-context, :keystore, or :key-managers :keystore - the filepath (a String) to the keystore :key-password - the password for the keystore :truststore - if separate from the keystore :trust-password - if :truststore passed :ssl-context - a valid javax.net.ssl.SSLContext :key-managers - a valid javax.net.ssl.KeyManager [] :trust-managers - a valid javax.net.ssl.TrustManager [] :client-auth - SSL client authentication mode. Can be :want/:requested or :need/:required :http2? - flag to enable http2 :concurrent-requests - maximum number of requests processed concurrently (default: nil, unlimited) :queue-size - maximum queued requests when limit is reached (default: nil, unlimited). Requires :concurrent-requests :io-threads - # threads handling IO, defaults to available processors :worker-threads - # threads invoking handlers, defaults to :concurrent-requests if set, else (* io-threads 8) :buffer-size - a number, defaults to 16k for modern servers :direct-buffers? - boolean, defaults to true :dispatch? - dispatch handlers off the I/O threads (default: true) :websocket? - built-in handler support for websocket callbacks :async? - ring async flag. When true, expect a ring async three arity handler function :handler-proxy - an optional custom handler proxy function taking handler as single argument :max-entity-size - maximum size of a request entity :session-manager? - initialize undertow session manager (default: true) :custom-manager - custom implementation that extends the io.undertow.server.session.SessionManager interface :max-sessions - maximum number of undertow session, for use with InMemorySessionManager (default: -1) :server-name - for use in session manager, for use with InMemorySessionManager (default: "ring-undertow") :graceful-shutdown-timeout - timeout in milliseconds for graceful shutdown :gzip? - flag to enable gzip compression (default: false)
Returns an UndertowWrapper server instance. To stop call (.stop server). To get the original Undertow instance call (.getUndertow server).
Start an Undertow webserver using given handler and the supplied options: :configurator - a function called with the Undertow Builder instance :host - the hostname to listen on :http? - flag to enable http (defaults to true) :port - the port to listen on (defaults to 80) :ssl-port - a number, requires either :ssl-context, :keystore, or :key-managers :keystore - the filepath (a String) to the keystore :key-password - the password for the keystore :truststore - if separate from the keystore :trust-password - if :truststore passed :ssl-context - a valid javax.net.ssl.SSLContext :key-managers - a valid javax.net.ssl.KeyManager [] :trust-managers - a valid javax.net.ssl.TrustManager [] :client-auth - SSL client authentication mode. Can be :want/:requested or :need/:required :http2? - flag to enable http2 :concurrent-requests - maximum number of requests processed concurrently (default: nil, unlimited) :queue-size - maximum queued requests when limit is reached (default: nil, unlimited). Requires :concurrent-requests :io-threads - # threads handling IO, defaults to available processors :worker-threads - # threads invoking handlers, defaults to :concurrent-requests if set, else (* io-threads 8) :buffer-size - a number, defaults to 16k for modern servers :direct-buffers? - boolean, defaults to true :dispatch? - dispatch handlers off the I/O threads (default: true) :websocket? - built-in handler support for websocket callbacks :async? - ring async flag. When true, expect a ring async three arity handler function :handler-proxy - an optional custom handler proxy function taking handler as single argument :max-entity-size - maximum size of a request entity :session-manager? - initialize undertow session manager (default: true) :custom-manager - custom implementation that extends the io.undertow.server.session.SessionManager interface :max-sessions - maximum number of undertow session, for use with InMemorySessionManager (default: -1) :server-name - for use in session manager, for use with InMemorySessionManager (default: "ring-undertow") :graceful-shutdown-timeout - timeout in milliseconds for graceful shutdown :gzip? - flag to enable gzip compression (default: false) Returns an UndertowWrapper server instance. To stop call (.stop server). To get the original Undertow instance call (.getUndertow server).
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 |