transformResponse abstract method

Future transformResponse(
  1. RequestOptions options,
  2. ResponseBody responseBody
)

transformResponse allows changes to the response data before it is passed to ResponseInterceptor.

Note: As an agreement, you must return the responseBody when the Options.responseType is ResponseType.stream.

Implementation

// TODO(AlexV525): Add generic type for the method in v6.0.0.
Future transformResponse(RequestOptions options, ResponseBody responseBody);