onCallRespond
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.
Parameters
block
An action that needs to be executed when your server is sending a response to a client.