
implementation("io.ktor:ktor-server-http-redirect:3.3.2")Redirects all HTTP requests to their HTTPS counterparts, enhancing security by enforcing encrypted connections. Allows configuration of the target HTTPS port and choice between permanent (301) or temporary (302) redirects.