OnCallReceiveContext

class OnCallReceiveContext<PluginConfig : Any> : CallContext<PluginConfig>

A context associated with the call.receive() action. Allows you to transform the received body. OnCallReceiveContext is a receiver for PluginBuilder.onCallReceive handler of your PluginBuilder.

See also

Functions

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

Specifies how to transform a request body that is being received from a client. If another plugin has already made the transformation, then your transformBody handler is not executed.

Properties

Link copied to clipboard
val pluginConfig: PluginConfig