io.helidon.webserver.staticcontent.StaticContentFeature
Description
Configuration of Static content feature
Configuration options
| Key | Type | Default | Description |
|---|---|---|---|
pre- | Boolean | false | Whether pre-compressed sidecar resources should be selected by default for feature-registered directory and classpath handlers; this is disabled by default and does not apply to file system handlers configured with a single file, which require handler-level opt-in |
path | List< | List of file system based static content handlers | |
pre- | Boolean | false | Whether classpath sidecar resources may be sourced from a different classpath origin than the logical resource by default for feature-registered handlers |
temporary- | Temporary | Temporary storage to use across all classpath handlers | |
content- | Map< | Maps a filename extension to the response content type | |
pre- | Map< | Pre-compressed content coding to file suffix mappings; defaults include br to br and gzip to gz, handler-level mappings replace these mappings rather than merging with them, an explicit empty map disables sidecar lookups by default, codings must be unique concrete valid HTTP tokens other than identity and *, and suffixes have leading dots ignored and must not contain path separators | |
classpath | List< | List of classpath based static content handlers | |
memory- | Memory | Memory cache shared by the whole feature | |
weight | Double | 95. | Weight of the static content feature |
sockets | List< | Sockets names (listeners) that will host static content handlers, defaults to all configured sockets | |
welcome | String | Welcome-file name | |
enabled | Boolean | true | Whether this feature is enabled, defaults to true |
Usages
See the manifest for all available types.