createBypassSslHttpClient function
BaseClient?
createBypassSslHttpClient()
Returns an IOClient that accepts all TLS certificates,
including self-signed and expired ones.
Implementation
BaseClient? createBypassSslHttpClient() {
final httpClient = HttpClient()
..badCertificateCallback = (_, __, ___) => true;
return IOClient(httpClient);
}