Client constructor

Client({
  1. bool verbose = false,
  2. bool verifySSL = true,
  3. String? userAgent,
  4. String? cookiePath,
  5. List<HTTPVersion> httpVersions = const [HTTPVersion.http1, HTTPVersion.http11, HTTPVersion.http2],
  6. String? libPath,
  7. List<HTTPInterceptor> interceptors = const [],
  8. Duration timeout = Duration.zero,
  9. Duration connectTimeout = const Duration(seconds: 300),
  10. String? altSvcCache,
})

Implementation

Client({
  this.verbose = false,
  this.verifySSL = true,
  this.userAgent,
  this.cookiePath,
  this.httpVersions = const [
    HTTPVersion.http1,
    HTTPVersion.http11,
    HTTPVersion.http2,
  ],
  this.libPath,
  this.interceptors = const [],
  this.timeout = Duration.zero,
  this.connectTimeout = const Duration(seconds: 300),
  this.altSvcCache,
});