Jetty 9 is the default container used with Pedestal 0.6.
The following table lists the container options supported by Jetty.
Key | Value type | Description |
---|---|---|
| Boolean | Use daemon threads. Defaults to |
| Integer | The maximum number of threads to use. Defaults to |
| Boolean | Reuse the socket address. Defaults to |
| A ThreadPool instance. | Override the Jetty thread pool (ignores max-threads) |
| Function | A function called with the |
| Function | A function called with the |
| Boolean | Allows connections over HTTPS. |
| Integer | Port to use for TLS listener. Defaults to |
| Boolean | HTTP/2 cleartext support. Allows upgrading connections from HTTP/1.1 to the Http/2 protocol. Defaults to |
| Boolean | HTTP/2 TLS support. When |
| Vector of Functions | A vector of functions that take the options map and
an |
| An SslContextFactory instance. | The |
| String or | Used for TLS. Path to keystore file or a |
| String | Used for TLS. Keystore password. Not used if :ssl-context-factory is set. |
| String or | Used for TLS. Path to keystore file or a |
| String | Used for TLS. Trust store password. Not used if :ssl-context-factory is set. |
| String | SSL client certificate authenticate, may be set to :need, :want or :none. Defaults to :none. |
| String | Java Security Provider name. Refer to the Jetty ConfiguringSSL/TLS documentation. Not used if :ssl-context-factory is set. |
| An HttpConfiguration instance. | The |
The default HttpConfiguration is:
SendDateHeader
is set to true
SendXPoweredBy
is set to false
SendServerVersion
is set to false
An instance of org.eclipse.jetty.server.SecureRequestCustomizer
is
added via addCustomizer
When :ssl?, :ssl-port or h2?
is provided,
securePort
is set to the value of :ssl-port and secureScheme
is set to "https"
.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close