next method

void next(
  1. Response response
)

Deliver the response to the next interceptor.

Typically, the method should be called once interceptors done manipulating the response.

Implementation

void next(Response response) {
  _throwIfCompleted();
  _completer.complete(
    InterceptorState<Response>(response),
  );
  _processNextInQueue?.call();
}