Package io.quarkus.vertx.http.runtime
Class StaticResourcesConfig
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.StaticResourcesConfig
-
public class StaticResourcesConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Duration
cacheEntryTimeout
Set the cache entry timeout.boolean
cachingEnabled
Set whether cache handling is enabled.boolean
enableRangeSupport
Set whether range requests (resumable downloads; media streaming) should be enabled.boolean
includeHidden
Set whether hidden files should be served.String
indexPage
Set the index page when serving static resources.Duration
maxAge
Set value for max age in caching headers.int
maxCacheSize
Set the max cache size.
-
Constructor Summary
Constructors Constructor Description StaticResourcesConfig()
-
-
-
Field Detail
-
indexPage
@ConfigItem(defaultValue="index.html") public String indexPage
Set the index page when serving static resources.
-
includeHidden
@ConfigItem(defaultValue="true") public boolean includeHidden
Set whether hidden files should be served.
-
enableRangeSupport
@ConfigItem(defaultValue="true") public boolean enableRangeSupport
Set whether range requests (resumable downloads; media streaming) should be enabled.
-
cachingEnabled
@ConfigItem(defaultValue="true") public boolean cachingEnabled
Set whether cache handling is enabled.
-
cacheEntryTimeout
@ConfigItem(defaultValue="30S") public Duration cacheEntryTimeout
Set the cache entry timeout. The default is30
seconds.
-
maxAge
@ConfigItem(defaultValue="24H") public Duration maxAge
Set value for max age in caching headers. The default is24
hours.
-
maxCacheSize
@ConfigItem(defaultValue="10000") public int maxCacheSize
Set the max cache size.
-
-