OnCallReceiveContext

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

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun transformBody(transform: suspend TransformBodyContext.(body: ByteReadChannel) -> 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.