transformResponseBody
fun transformResponseBody(block: suspend TransformResponseBodyContext.(response: HttpResponse, content: ByteReadChannel, requestedType: TypeInfo) -> Any?)
Specifies the block transformer for a response body.
This block is invoked for every HttpResponse.body call. Here you should deserialize body into an instance of requestedType or return null
if your transformation is not applicable.
See also
Parameters
block
A transformation of response body.