HttpClientWithInterceptor.build constructor
HttpClientWithInterceptor.build({
- required List<
InterceptorContract> interceptors, - Duration? requestTimeout,
- RetryPolicy? retryPolicy,
- bool badCertificateCallback()?,
- String findProxy()?,
- 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,
);