OnCallRespondContext
class OnCallRespondContext<PluginConfig : Any> : CallContext<PluginConfig>
Content copied to clipboard
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)
Content copied to clipboard
Specifies how to transform a response body that is being sent to a client.