class OnCallRespondContext<PluginConfig : Any> : CallContext<PluginConfig>

A context associated with the call.respond() action. Allows you to transform the response body. OnCallRespondContext is a receiver for PluginBuilder.onCallRespond handler of your PluginBuilder.

See also


Link copied to clipboard
suspend fun transformBody(transform: suspend TransformBodyContext.(body: Any) -> Any)

Specifies how to transform a response body that is being sent to a client.


Link copied to clipboard
val pluginConfig: PluginConfig