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
inline suspend fun ApplicationCall.respondRedirect(permanent: Boolean = false, block: URLBuilder.() -> 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 URL based on current call using block function