PluginBuilder
A utility class to build an ApplicationPlugin instance.
Functions
Link copied to clipboard
Link copied to clipboard
Specifies the block handler for every incoming ApplicationCall.
Link copied to clipboard
fun onCallReceive(block: suspend OnCallReceiveContext<PluginConfig>.(call: ApplicationCall) -> Unit)
fun onCallReceive(block: suspend OnCallReceiveContext<PluginConfig>.(call: ApplicationCall, body: Any) -> Unit)
Link copied to clipboard
fun onCallRespond(block: suspend OnCallRespondContext<PluginConfig>.(call: ApplicationCall) -> Unit)
fun onCallRespond(block: suspend OnCallRespondContext<PluginConfig>.(call: ApplicationCall, body: Any) -> Unit)
Specifies the block handler that allows you to transform data before sending it to the client. This handler is executed when the call.respond
function is invoked in a route handler.