@@ -17,23 +17,14 @@ http.Client createHttpClientWithNoSSL() {
17
17
class HttpClientManager {
18
18
static final HttpClientManager _instance = HttpClientManager ._internal ();
19
19
static const int _maxCancelledRequests = 100 ;
20
- final Map <String , clientWrapper > _clients = {};
20
+ final Map <String , http. Client > _clients = {};
21
21
final Queue <String > _cancelledRequests = Queue ();
22
22
23
23
factory HttpClientManager () {
24
24
return _instance;
25
25
}
26
26
27
27
HttpClientManager ._internal ();
28
-
29
- WebSocketClient createWebSocketClient (
30
- String requestId, {
31
- bool noSSL = false ,
32
- }) {
33
- final client = WebSocketClient ();
34
- _clients[requestId] = WebSocketClientWrapper (client);
35
- return client;
36
- }
37
28
38
29
http.Client createClient (
39
30
String requestId, {
@@ -42,7 +33,7 @@ class HttpClientManager {
42
33
43
34
final client =
44
35
(noSSL && ! kIsWeb) ? createHttpClientWithNoSSL () : http.Client ();
45
- _clients[requestId] = HttpClientWrapper ( client) ;
36
+ _clients[requestId] = client;
46
37
return client;
47
38
}
48
39
@@ -73,10 +64,4 @@ class HttpClientManager {
73
64
bool hasActiveClient (String requestId) {
74
65
return _clients.containsKey (requestId);
75
66
}
76
-
77
- clientWrapper? getClient (String requestId) {
78
- return _clients[requestId];
79
- }
80
-
81
-
82
67
}
0 commit comments