onSuccess

abstract fun onSuccess(response: Response, responseBody: String)

Called when the HTTP request is successful.

Parameters

response

the response returned from the server

responseBody

the response body string returned from the server