onResponse method

void onResponse(
  1. ResponseContext context,
  2. ResponseHandler handler
)

Called after a response is received (any status code). You may call handler.reject to convert a response into an error.

Implementation

void onResponse(ResponseContext context, ResponseHandler handler) =>
    handler.next(context);