respondRedirect

suspend fun ApplicationCall.respondRedirect(url: String, permanent: Boolean = false)
suspend fun ApplicationCall.respondRedirect(url: Url, permanent: Boolean = false)

Responds to a client with a 301 Moved Permanently or 302 Found redirect.

See also


inline suspend fun ApplicationCall.respondRedirect(permanent: Boolean = false, block: URLBuilder.() -> Unit)

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.

See also