ktor-webjars / io.ktor.webjars / Webjars

Webjars

class Webjars

This feature listens to requests starting with the specified path prefix and responding with static content packaged into webjars. A WebJarAssetLocator is used to look for static files.

Types

Configuration

class Configuration

Feature configuration.

Feature

companion object Feature : ApplicationFeature<ApplicationCallPipeline, Configuration, Webjars>

Feature installation companion.

Constructors

<init>

Webjars(configuration: Configuration)

Companion Object Properties

key

val key: AttributeKey<Webjars>

Companion Object Functions

install

fun install(pipeline: ApplicationCallPipeline, configure: Configuration.() -> Unit): Webjars