checkpoint

This commit is contained in:
2025-11-25 17:05:08 -05:00
parent bbcd6d9bf7
commit d46ac9dc14
17 changed files with 705 additions and 193 deletions
+14
View File
@@ -0,0 +1,14 @@
import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:http/io_client.dart';
class HttpClientFactory {
static http.Client createClient({bool allowSelfSigned = false}) {
if (allowSelfSigned) {
final ioClient = HttpClient()
..badCertificateCallback = (X509Certificate cert, String host, int port) => true;
return IOClient(ioClient);
}
return http.Client();
}
}