onResponse property

Stream<HttpResponse> onResponse

A stream of responses received by this handler.

This includes error & rate limit responses. Since rate limit responses trigger the request to be retried, this means you may receive multiple responses for a single request on this stream.

Implementation

Stream<HttpResponse> get onResponse => _onResponseController.stream;