ByteBuf responseBodyBuffer = responseBody.getBuffer();
responseBodyBuffer = Unpooled.unreleasableBuffer(responseBodyBuffer.retain());
ReceivedResponse copiedResponse = new DefaultReceivedResponse(
response.getStatus(),
response.getHeaders(),
new ByteBufBackedTypedData(responseBodyBuffer, responseBody.getContentType())
);
setResult(Result.success(copiedResponse));
});
}