WebResourcesConfig

class WebResourcesConfig constructor

Web resources serve configuration

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun exclude(predicate: (path: String) -> Boolean)

Add predicate exclusion rule to excludes

Link copied to clipboard
fun include(predicate: (path: String) -> Boolean)

Properties

Link copied to clipboard

Path predicates to be excluded. By default WEB-INF directory is excluded. A path provided to a predicate is always slash-separated (/).

Link copied to clipboard

Path predicates to be included. All files will be served if no include rules specified. A path provided to a predicate is always slash-separated (/).

Link copied to clipboard

Content-type resolution, uses defaultForFileExtension by default