📜  未处理的异常:握手异常:客户端中的握手错误(操作系统错误:-任何代码示例

📅  最后修改于: 2022-03-11 14:55:03.152000             🧑  作者: Mango

代码示例2
class MyHttpOverrides extends HttpOverrides{
  @override
  HttpClient createHttpClient(SecurityContext context){
    return super.createHttpClient(context)
      ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true;
  }
}