HttpClientWithInterceptor.build constructor

HttpClientWithInterceptor.build({
  1. required List<InterceptorContract> interceptors,
  2. Duration? requestTimeout,
  3. RetryPolicy? retryPolicy,
  4. bool badCertificateCallback(
    1. X509Certificate,
    2. String,
    3. int
    )?,
  5. String findProxy(
    1. Uri
    )?,
  6. Client? client,
})

Implementation

factory HttpClientWithInterceptor.build({
  required List<InterceptorContract> interceptors,
  Duration? requestTimeout,
  RetryPolicy? retryPolicy,
  bool Function(X509Certificate, String, int)? badCertificateCallback,
  String Function(Uri)? findProxy,
  Client? client,
}) =>
    HttpClientWithInterceptor._internal(
      interceptors: interceptors,
      requestTimeout: requestTimeout,
      retryPolicy: retryPolicy,
      badCertificateCallback: badCertificateCallback,
      findProxy: findProxy,
      client: client,
    );