Helper functions to work with Undertow$Builder
.
Helper functions to work with `Undertow$Builder`.
(add-listener builder [port config])
(add-listener builder port config)
Adds listener given builder instance or configuration map.
Configuration options:
:host
The host name string, default "localhost".
:https
HTTPS configuration map with options:
:key-managers
The instance of javax.net.ssl.KeyManager[]
.:trust-managers
The instance of javax.net.ssl.TrustManager[]
.:ssl-context
The instance of javax.net.ssl.SSLContext
.:handler
The listener HttpHandler to be used on the port.
See strojure.undertow.server/start
for details.
:socket-options
The map of socket options for the listener.
:undertow/enable-http2
. If HTTP2 protocol enabled, boolean.server
namespace.:use-proxy-protocol
boolean.
:https
enables HTTPS protocol for the listener.Adds listener given builder instance or configuration map. Configuration options: - `:host` The host name string, default "localhost". - `:https` HTTPS configuration map with options: - `:key-managers` The instance of `javax.net.ssl.KeyManager[]`. - `:trust-managers` The instance of `javax.net.ssl.TrustManager[]`. - `:ssl-context` The instance of `javax.net.ssl.SSLContext`. - `:handler` The listener HttpHandler to be used on the port. See [[strojure.undertow.server/start]] for details. - `:socket-options` The map of socket options for the listener. - `:undertow/enable-http2`. If HTTP2 protocol enabled, boolean. + Other option keywords can be found in `server` namespace. + Undertow option constants. - `:use-proxy-protocol` boolean. + The `:https` enables HTTPS protocol for the listener. + Declaration of AJP protocol is not supported.
(build builder)
Builds and returns Undertow instance.
Builds and returns Undertow instance.
(configure builder
{:keys [port handler buffer-size io-threads worker-threads
direct-buffers server-options socket-options
worker-options]})
Applies configuration map options to the Undertow builder instance.
Applies configuration map options to the Undertow builder instance.
(set-server-option builder [option value])
(set-server-option builder option value)
Sets server option.
Sets server option.
(set-socket-option builder [option value])
(set-socket-option builder option value)
Sets socket option.
Sets socket option.
(set-worker-option builder [option value])
(set-worker-option builder option value)
Sets worker options.
Sets worker options.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close