HttpProxyAdapter constructor

HttpProxyAdapter({
  1. String ipAddr = 'localhost',
  2. int port = 8888,
})

Implementation

HttpProxyAdapter({this.ipAddr = 'localhost', this.port = 8888}) {
  onHttpClientCreate = (client) {
    var proxy = '$ipAddr:$port';
    client.findProxy = (url) {
      return 'PROXY $proxy';
    };

    client.badCertificateCallback =
        (X509Certificate cert, String host, int port) => true;
  };
}