GetHttpClient constructor
GetHttpClient({
- String userAgent = 'getx-client',
- Duration timeout = const Duration(seconds: 8),
- bool followRedirects = true,
- int maxRedirects = 5,
- bool sendUserAgent = false,
- int maxAuthRetries = 1,
- bool allowAutoSignedCert = false,
- String? baseUrl,
- List<
TrustedCertificate> ? trustedCertificates, - bool withCredentials = false,
- String findProxy(
- Uri url
Implementation
GetHttpClient({
this.userAgent = 'getx-client',
this.timeout = const Duration(seconds: 8),
this.followRedirects = true,
this.maxRedirects = 5,
this.sendUserAgent = false,
this.maxAuthRetries = 1,
bool allowAutoSignedCert = false,
this.baseUrl,
List<TrustedCertificate>? trustedCertificates,
bool withCredentials = false,
String Function(Uri url)? findProxy,
}) : _httpClient = platform.HttpRequestImpl(
allowAutoSignedCert: allowAutoSignedCert,
trustedCertificates: trustedCertificates,
withCredentials: withCredentials,
findProxy: findProxy,
),
_modifier = GetModifier();