Client constructor
Client({
- bool verbose = false,
- bool verifySSL = true,
- String? userAgent,
- String? cookiePath,
- List<
HTTPVersion> httpVersions = const [HTTPVersion.http1, HTTPVersion.http11, HTTPVersion.http2], - String? libPath,
- List<
HTTPInterceptor> interceptors = const [], - Duration timeout = Duration.zero,
- Duration connectTimeout = const Duration(seconds: 300),
- 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,
});