transformBody

suspend fun transformBody(transform: suspend TransformBodyContext.(body: Any) -> Any)

Specifies how to transform a response body that is being sent to a client.