17 lines
328 B
Kotlin
17 lines
328 B
Kotlin
package amine.bou.plugins
|
|
|
|
import io.ktor.server.application.*
|
|
import io.ktor.server.plugins.compression.*
|
|
|
|
fun Application.configureHTTP() {
|
|
install(Compression) {
|
|
gzip {
|
|
priority = 1.0
|
|
}
|
|
deflate {
|
|
priority = 10.0
|
|
minimumSize(1024) // condition
|
|
}
|
|
}
|
|
}
|