next method

void next(
  1. RequestOptions requestOptions
)

Deliver the requestOptions to the next interceptor.

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

Implementation

void next(RequestOptions requestOptions) {
  _throwIfCompleted();
  _completer.complete(InterceptorState<RequestOptions>(requestOptions));
  _processNextInQueue?.call();
}