RouteScopedPluginBuilder
abstract class RouteScopedPluginBuilder<PluginConfig : Any>(key: AttributeKey<PluginInstance>) : PluginBuilder<PluginConfig>
Utility class to build a RouteScopedPlugin instance.
Constructors
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.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A Route to which this plugin was installed. Can be null
if plugin in installed into Application.