onSuccess

val onSuccess: (data: ByteArray) -> Unit

Callback function which is called if the request was sent and the data was successfully received.