PluginBuilder
A utility class to build an ApplicationPlugin instance.
Inheritors
Properties
Link copied to clipboard
A reference to the Application where the plugin is installed.
Link copied to clipboard
A configuration of your current application (incl. host, port and anything else you can define in application.conf).
Link copied to clipboard
Allows you to access the environment of the currently running application where the plugin is installed.
Link copied to clipboard
A configuration of the current plugin.
Functions
Link copied to clipboard
Link copied to clipboard
Specifies the block handler for every incoming PipelineCall.
Link copied to clipboard
fun onCallReceive(block: suspend OnCallReceiveContext<PluginConfig>.(call: PipelineCall, body: Any) -> Unit)
Link copied to clipboard
fun onCallRespond(block: suspend OnCallRespondContext<PluginConfig>.(call: PipelineCall, 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.