OnCallRespondContext

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

Functions

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.

Properties

Link copied to clipboard
val pluginConfig: PluginConfig