Package io.quarkus.vertx.http.runtime
Interface StaticResourcesConfig
public interface StaticResourcesConfig
-
Method Summary
Modifier and TypeMethodDescriptionSet the cache entry timeout.booleanSet whether cache handling is enabled.Content encoding for text related filesbooleanSet whether directory listing should be enabled.booleanSet whether range requests (resumable downloads; media streaming) should be enabled.booleanSet whether hidden files should be served.Set the index page when serving static resources.maxAge()Set value for max age in caching headers.intSet the max cache size.booleanSet whether theVaryheader should be sent in responses.
-
Method Details
-
indexPage
Set the index page when serving static resources. -
includeHidden
@WithDefault("true") boolean includeHidden()Set whether hidden files should be served. -
enableRangeSupport
@WithDefault("true") boolean enableRangeSupport()Set whether range requests (resumable downloads; media streaming) should be enabled. -
cachingEnabled
@WithDefault("true") boolean cachingEnabled()Set whether cache handling is enabled. -
cacheEntryTimeout
Set the cache entry timeout. The default is30seconds. -
maxAge
Set value for max age in caching headers. The default is24hours. -
maxCacheSize
@WithDefault("10000") int maxCacheSize()Set the max cache size. -
contentEncoding
Content encoding for text related files -
directoryListing
@WithDefault("false") boolean directoryListing()Set whether directory listing should be enabled.When enabled, if a request is made to a path that maps to a directory, the server returns an HTML page listing the directory contents.
-
sendVaryHeader
@WithDefault("true") boolean sendVaryHeader()Set whether theVaryheader should be sent in responses.The
Varyheader indicates to caches that the response may vary based on the value of the specified request headers (e.g.Accept-Encoding).
-