dioOnHttpClientCreate function

void dioOnHttpClientCreate (
  1. HttpClient client
)

Implementation

void dioOnHttpClientCreate(HttpClient client) {
  client.badCertificateCallback = (X509Certificate cert, String host, int port) => true;
//  if (isDebugMode())
//    client.findProxy = (uri) {
//      //proxy all request to localhost:8888
//      return "PROXY 10.0.2.2:9091";
//    };
}