PluginBuilder
A utility class to build an ApplicationPlugin instance.
Functions
Link copied to clipboard
Link copied to clipboard
fun onCall(block: suspend OnCallContext<PluginConfig>.(call: ApplicationCall) -> Unit)
Content copied to clipboard
Specifies the block handler for every incoming ApplicationCall.
Link copied to clipboard
fun onCallReceive(block: suspend OnCallReceiveContext<PluginConfig>.(call: ApplicationCall) -> Unit)
Content copied to clipboard
fun onCallReceive(block: suspend OnCallReceiveContext<PluginConfig>.(call: ApplicationCall, body: Any) -> Unit)
Content copied to clipboard
Link copied to clipboard
fun onCallRespond(block: suspend OnCallRespondContext<PluginConfig>.(call: ApplicationCall) -> Unit)
Content copied to clipboard
fun onCallRespond(block: suspend OnCallRespondContext<PluginConfig>.(call: ApplicationCall, body: Any) -> Unit)
Content copied to clipboard
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.
Properties
Link copied to clipboard
A reference to the Application where the plugin is installed.