Feature

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

Feature object for installation

Companion Object Properties

CORS_DEFAULT_MAX_AGE

const val CORS_DEFAULT_MAX_AGE: Long

The default CORS max age value

key

val key: AttributeKey<CORS>

Unique key that identifies a feature

Companion Object Functions

install

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

Feature installation script