static-content
This type provides the following service implementations:
-
io.helidon.webserver.spi.ServerFeatureProvider
Configuration options
| key | type | default value | description |
|---|---|---|---|
|
|
List of classpath based static content handlers. |
|
|
Map<string, MediaType> |
|
Maps a filename extension to the response content type. To have a system-wide configuration, you can use the service loader SPI io.helidon.common.media.type.spi.MediaTypeDetector. This method can override io.helidon.common.media.type.MediaTypes detection for a specific static content handler. Handler will use a union of configuration defined here, and on the handler here when used from configuration. |
|
boolean |
|
Whether this feature is enabled, defaults to |
|
|
Memory cache shared by the whole feature. If not configured, files are not cached in memory (except for explicitly marked files/resources in each section). |
|
|
|
List of file system based static content handlers. |
|
|
string[] |
|
Sockets names (listeners) that will host static content handlers, defaults to all configured sockets.
Default socket name is This configures defaults for all handlers. |
|
|
Temporary storage to use across all classpath handlers. If not defined, a default one will be created. |
|
|
double |
|
Weight of the static content feature. Defaults to StaticContentFeature.WEIGHT. |
|
string |
|
Welcome-file name. Default for all handlers. By default, we do not serve default files. |