ResponseInterceptor typedef
ResponseInterceptor =
FutureOr<Response> Function(Response response)
Interceptor callback that transforms an incoming http.Response before returning to callers.
Example:
http.Response logResponse(http.Response res) {
print('Received status: ${res.statusCode}');
return res;
}
Implementation
typedef ResponseInterceptor = FutureOr<http.Response> Function(http.Response response);