ktor-server-test-host / io.ktor.server.testing / cookiesSession

cookiesSession

fun TestApplicationEngine.cookiesSession(callback: () -> Unit): Unit

Keep cookies between requests inside the callback.

This processes HttpHeaders.SetCookie from the responses and produce HttpHeaders.Cookie in subsequent requests.