withResponseBody

fun withResponseBody(block: T?.() -> T?)(source)

Modifies the response body of this response definition using the provided transformation logic.

Parameters

block

A lambda function that takes the current response body (or null) as an input and returns the modified response body or null.