
implementation("io.ktor:ktor-server-http-redirect:3.4.1")Redirects all HTTP requests to their HTTPS counterparts, enhancing security by enforcing encrypted connections. Configurable to specify the HTTPS port and choose between permanent (301) or temporary (302) redirects.