actionpack / kales.actionpack / ApplicationController

ApplicationController

abstract class ApplicationController

Constructors

<init>

ApplicationController(call: ApplicationCall)

Properties

bindings

var bindings: ViewModel?

call

val call: ApplicationCall

Functions

receiveParameters

suspend fun receiveParameters(): Parameters

RoutingApplicationCall wraps another (inner) call (our Kales call), so we need to unwrap it and cast it to KalesApplicationCall in order to benefit from the memoized receiveParameters implementation.

redirectTo

fun redirectTo(action: KFunction<*>): RedirectResult

Redirects to the action specified by the action function parameter. The redirection is purely server-side, there is no round-trip to the client browser and it's seen strictly as a single request from the client's perspective.