Description
WebServer configuration bean.
Usages
Configuration options
| Key | Kind | Type | Default Value | Description |
|---|---|---|---|---|
backlog | VALUE | Integer | 1024 | Accept backlog |
bind-address | VALUE | i.h.w.W.ListenerCustomMethods | The address to bind to | |
concurrency-limit | VALUE | i.h.c.c.l.Limit | Concurrency limit to use to limit concurrent execution of incoming requests | |
concurrency-limit-discover-services | VALUE | Boolean | false | Whether to enable automatic service discovery for concurrency-limit |
connection-options | VALUE | i.h.c.s.SocketOptions | Options for connections accepted by this listener | |
content-encoding | VALUE | i.h.h.e.ContentEncodingContext | Configure the listener specific io.helidon.http.encoding.ContentEncodingContext | |
enable-proxy-protocol | VALUE | Boolean | false | Enable proxy protocol support for this socket |
error-handling | VALUE | i.h.w.ErrorHandling | Configuration for this listener's error handling | |
features | LIST | i.h.w.s.ServerFeature | Server features allow customization of the server, listeners, or routings | |
features-discover-services | VALUE | Boolean | true | Whether to enable automatic service discovery for features |
host | VALUE | String | 0.0.0.0 | Host of the default socket |
idle-connection-period | VALUE | Duration | PT2M | How often should we check for #idleConnectionTimeout() |
idle-connection-timeout | VALUE | Duration | PT5M | How long should we wait before closing a connection that has no traffic on it |
ignore-invalid-named-routing | VALUE | Boolean | If set to true, any named routing configured that does not have an associated named listener will NOT cause an exception to be thrown (default behavior is to throw an exception) | |
max-concurrent-requests | VALUE | Integer | -1 | Limits the number of requests that can be executed at the same time (the number of active virtual threads of requests) |
max-in-memory-entity | VALUE | Integer | 131072 | 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 |
max-payload-size | VALUE | Long | -1 | Maximal number of bytes an entity may have |
max-tcp-connections | VALUE | Integer | -1 | Limits the number of connections that can be opened at a single point in time |
media-context | VALUE | i.h.h.m.MediaContext | Configure the listener specific io.helidon.http.media.MediaContext | |
name | VALUE | String | @default | Name of this socket |
port | VALUE | Integer | 0 | Port of the default socket |
protocols | LIST | i.h.w.s.ProtocolConfig | Configuration of protocols | |
protocols-discover-services | VALUE | Boolean | true | Whether to enable automatic service discovery for protocols |
requested-uri-discovery | VALUE | i.h.h.RequestedUriDiscoveryContext | Requested URI discovery context | |
restore-response-headers | VALUE | Boolean | true | Copy and restore response headers before and after passing a request to Jersey for processing |
shutdown-grace-period | VALUE | Duration | PT0.5S | Grace period in ISO 8601 duration format to allow running tasks to complete before listener's shutdown |
shutdown-hook | VALUE | Boolean | true | When true the webserver registers a shutdown hook with the JVM Runtime |
smart-async-writes | VALUE | Boolean | false | 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 |
sockets | MAP | i.h.w.ListenerConfig | Socket configurations | |
tls | VALUE | i.h.c.t.Tls | Listener TLS configuration | |
use-nio | VALUE | Boolean | true | If set to true, use NIO socket channel, instead of a socket |
write-buffer-size | VALUE | Integer | 4096 | Initial buffer size in bytes of java.io.BufferedOutputStream created internally to write data to a socket connection |
write-queue-length | VALUE | Integer | 0 | Number of buffers queued for write operations |
Deprecated Options
| Key | Kind | Type | Description |
|---|---|---|---|
connection-config | VALUE | i.h.w.ConnectionConfig | Configuration of a connection (established from client against our server) |
receive-buffer-size | VALUE | Integer | Listener receive buffer size |
See the manifest for all available types.