OnCallReceiveContext
class OnCallReceiveContext<PluginConfig : Any> : CallContext<PluginConfig>
Content copied to clipboard
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)
Content copied to clipboard
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.