shouldInterceptRequest method

  1. @override
Future<HttpClientResponse?> shouldInterceptRequest(
  1. HttpClientRequest request
)
override

Implementation

@override
Future<HttpClientResponse?> shouldInterceptRequest(HttpClientRequest request) {
  HttpClientInterceptor? customHttpClientInterceptor = _customHttpClientInterceptor;
  if (customHttpClientInterceptor != null) {
    return customHttpClientInterceptor.shouldInterceptRequest(request);
  } else {
    return Future.value(null);
  }
}