respondRedirect
suspend fun ApplicationCall.respondRedirect(url: String, permanent: Boolean = false)
Content copied to clipboard
Responds to a client with a 301 Moved Permanently
or 302 Found
redirect.
See also
inline suspend fun ApplicationCall.respondRedirect(permanent: Boolean = false, block: <ERROR CLASS>.() -> Unit)
Content copied to clipboard
Responds to a client with a 301 Moved Permanently
or 302 Found
redirect. Unlike the other respondRedirect, it provides a way to build a URL based on current call using the block function.