From 02e1eae883e68502d64355797f29bb2e0f1f3675 Mon Sep 17 00:00:00 2001 From: Derek Briggs Date: Fri, 16 Sep 2022 00:36:12 -0400 Subject: [PATCH] import caching headers. --- build.gradle | 5 +++-- src/main/kotlin/kweb/client/HttpRequestInfo.kt | 2 +- src/main/kotlin/kweb/config/KwebConfiguration.kt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 604a3940e3..308e18d8f4 100644 --- a/build.gradle +++ b/build.gradle @@ -56,10 +56,11 @@ dependencies { //////////////////// // Ktor dependencies //////////////////// - compile "io.ktor:ktor-server-default-headers:$ktor_version" - compile "io.ktor:ktor-server-compression:$ktor_version" compile "io.ktor:ktor-server-jetty:$ktor_version" compile "io.ktor:ktor-server-websockets:$ktor_version" + compile "io.ktor:ktor-server-default-headers:$ktor_version" + compile "io.ktor:ktor-server-compression:$ktor_version" + compile "io.ktor:ktor-server-caching-headers:$ktor_version" compile "io.ktor:ktor-network-tls-certificates:$ktor_version" compile 'io.mola.galimatias:galimatias:0.2.1' diff --git a/src/main/kotlin/kweb/client/HttpRequestInfo.kt b/src/main/kotlin/kweb/client/HttpRequestInfo.kt index e2aedeb55a..c41cc60e46 100755 --- a/src/main/kotlin/kweb/client/HttpRequestInfo.kt +++ b/src/main/kotlin/kweb/client/HttpRequestInfo.kt @@ -1,7 +1,7 @@ package kweb.client import io.ktor.server.plugins.origin -import io.ktor.request.ApplicationRequest +import io.ktor.server.request.ApplicationRequest /** * @param request This is the raw [ApplicationRequest](https://api.ktor.io/1.3.2/io.ktor.request/-application-request/index.html) diff --git a/src/main/kotlin/kweb/config/KwebConfiguration.kt b/src/main/kotlin/kweb/config/KwebConfiguration.kt index d4786409d6..cfd2148655 100644 --- a/src/main/kotlin/kweb/config/KwebConfiguration.kt +++ b/src/main/kotlin/kweb/config/KwebConfiguration.kt @@ -2,7 +2,7 @@ package kweb.config import io.ktor.server.application.* import io.ktor.http.* -import io.ktor.response.* +import io.ktor.server.response.* import kweb.Kweb import mu.KotlinLogging import java.time.Duration