This is a standalone configuration type, prefix from configuration root: server
Configuration options
| key | type | default value | description |
|---|---|---|---|
|
int |
|
Accept backlog. |
|
io.helidon.common.concurrency.limits.Limit (service provider interface) Such as: |
|
Concurrency limit to use to limit concurrent execution of incoming requests. The default is to have unlimited concurrency. Note that if maxConcurrentRequests() is configured, this is ignored. |
|
|
Deprecated Configuration of a connection (established from client against our server). @deprecated use connectionOptions() instead |
|
|
|
Options for connections accepted by this listener. This is not used to setup server connection. |
|
|
|
Configure the listener specific io.helidon.http.encoding.ContentEncodingContext. This method discards all previously registered ContentEncodingContext. If no content encoding context is registered, content encoding context of the webserver would be used. |
|
|
boolean |
|
Enable proxy protocol support for this socket. This protocol is supported by
some load balancers/reverse proxies as a means to convey client information that
would otherwise be lost. If enabled, the proxy protocol header must be present
on every new connection established with your server. For more information,
see
the specification. Default is |
|
|
Configuration for this listener’s error handling. |
|
|
io.helidon.webserver.spi.ServerFeature[] (service provider interface) Such as: |
|
Server features allow customization of the server, listeners, or routings. |
|
string |
|
Host of the default socket. Defaults to all host addresses ( |
|
Duration |
|
How often should we check for idleConnectionTimeout().
Defaults to |
|
Duration |
|
How long should we wait before closing a connection that has no traffic on it.
Defaults to |
|
boolean |
|
If set to |
|
int |
|
Limits the number of requests that can be executed at the same time (the number of active virtual threads of requests).
Defaults to Setting this option will always ignore concurrencyLimit() and will use the io.helidon.common.concurrency.limits.FixedLimit. |
|
int |
|
If the entity is expected to be smaller that this number of bytes, it would be buffered in memory to optimize performance when writing it. If bigger, streaming will be used. Note that for some entity types we cannot use streaming, as they are already fully in memory (String, byte[]), for such cases, this option is ignored. Default is 128Kb. |
|
long |
|
Maximal number of bytes an entity may have.
If io.helidon.http.HeaderNames.CONTENT_LENGTH is used, this is checked immediately,
if io.helidon.http.HeaderValues.TRANSFER_ENCODING_CHUNKED is used, we will fail when the
number of bytes read would exceed the max payload size.
Defaults to unlimited ( |
|
int |
|
Limits the number of connections that can be opened at a single point in time.
Defaults to |
|
|
Configure the listener specific io.helidon.http.media.MediaContext. This method discards all previously registered MediaContext. If no media context is registered, media context of the webserver would be used. |
|
|
string |
|
Name of this socket. Defaults to |
|
int |
|
Port of the default socket.
If configured to |
|
io.helidon.webserver.spi.ProtocolConfig[] (service provider interface) Such as: |
|
Configuration of protocols. This may be either protocol selectors, or protocol upgraders from HTTP/1.1. As the order is not important (providers are ordered by weight by default), we can use a configuration as an object, such as: protocols:
providers:
http_1_1:
max-prologue-length: 8192
http_2:
max-frame-size: 4096
websocket:
....
|
|
int |
|
Deprecated Listener receive buffer size. @deprecated use SocketOptions.socketReceiveBufferSize() instead via connectionOptions(). |
|
|
Requested URI discovery context. |
|
|
boolean |
|
Copy and restore response headers before and after passing a request to Jersey for processing. If Jersey fails to handle the request, and the Webserver continues processing the request, it needs to make sure the original headers are restored. Turn off this flag to avoid the extra overhead of copying headers when no handler executes after Jersey returns. |
|
Duration |
|
Grace period in ISO 8601 duration format to allow running tasks to complete before listener’s shutdown.
Default is |
|
boolean |
|
When true the webserver registers a shutdown hook with the JVM Runtime. Defaults to true. Set this to false such that a shutdown hook is not registered. |
|
boolean |
|
If enabled and writeQueueLength() is greater than 1, then start with async writes but possibly switch to sync writes if async queue size is always below a certain threshold. |
|
|
Socket configurations. Note that socket named WebServer.DEFAULT_SOCKET_NAME cannot be used, configure the values on the server directly. |
|
|
|
Listener TLS configuration. |
|
|
int |
|
Initial buffer size in bytes of java.io.BufferedOutputStream created internally to
write data to a socket connection. Default is |
|
int |
|
Number of buffers queued for write operations. |