modifyRequest<T> method

Future<Request<T>> modifyRequest<T>(
  1. Request<T> request
)

Implementation

Future<Request<T>> modifyRequest<T>(Request<T> request) async {
  var newRequest = request;
  if (_requestModifiers.isNotEmpty) {
    for (var interceptor in _requestModifiers) {
      newRequest = await interceptor(newRequest) as Request<T>;
    }
  }

  return newRequest;
}