Liking cljdoc? Tell your friends :D

strojure.undertow.api.builder

Helper functions to work with Undertow$Builder.

Helper functions to work with `Undertow$Builder`.
raw docstring

add-listenerclj

(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.
    • 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.
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.
sourceraw docstring

buildclj

(build builder)

Builds and returns Undertow instance.

Builds and returns Undertow instance.
sourceraw docstring

configureclj

(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.
sourceraw docstring

set-server-optionclj

(set-server-option builder [option value])
(set-server-option builder option value)

Sets server option.

Sets server option.
sourceraw docstring

set-socket-optionclj

(set-socket-option builder [option value])
(set-socket-option builder option value)

Sets socket option.

Sets socket option.
sourceraw docstring

set-worker-optionclj

(set-worker-option builder [option value])
(set-worker-option builder option value)

Sets worker options.

Sets worker options.
sourceraw docstring

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

× close