You want to install the HttpsRedirect plugin. How can you do it?
Ktor Plugins System
Installing plugin
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}.start(wait = true)
embeddedServer(Netty, port = 8080, host = "0.0.0.0") {
configureRouting()
install(HttpsRedirect)
fun main() {
package com.example
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.