Jetty 11
Jetty 11 is the default container used with Pedestal.
Container Options
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 |
Default HttpConfiguration
The default HttpConfiguration is:
-
SendDateHeader
is set totrue
-
SendXPoweredBy
is set tofalse
-
SendServerVersion
is set tofalse
-
An instance of
org.eclipse.jetty.server.SecureRequestCustomizer
is added viaaddCustomizer
-
When :ssl?, :ssl-port or
h2?
is provided,securePort
is set to the value of :ssl-port andsecureScheme
is set to"https"
.