2023-11-18 23:19:03 +01:00

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
}
}
}