createHttpClient method
Override HTTP client creation
Implementation
@override
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..findProxy = (uri) {
assert(this.proxyString.isNotEmpty,
'You must set a valid proxy if you enable it!');
return "PROXY " + this.proxyString + ";";
};
/* ..badCertificateCallback = this.allowBadCertificates
? (X509Certificate cert, String host, int port) => true
: null;*/
}