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