onResponse

abstract fun onResponse(call: Call<ReqBody, ResBody>, response: ResBody)

Called when the HTTP response was successfully returned by the remote server.

Note that transport-layer success (receiving a HTTP response code, headers and body) does not necessarily indicate application-layer success: response may still indicate an unhappy HTTP response code like 404 or 500.

Parameters

call

The Call object that has success

response

Call object response