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