@@ -139,7 +139,11 @@ import Testing
139
139
configuration. protocolClasses = [ MockURLProtocol . self]
140
140
141
141
let transport = HTTPClientTransport (
142
- endpoint: testEndpoint, configuration: configuration, streaming: false , logger: nil )
142
+ endpoint: testEndpoint,
143
+ configuration: configuration,
144
+ streaming: false ,
145
+ logger: nil
146
+ )
143
147
144
148
try await transport. connect ( )
145
149
await transport. disconnect ( )
@@ -151,7 +155,11 @@ import Testing
151
155
configuration. protocolClasses = [ MockURLProtocol . self]
152
156
153
157
let transport = HTTPClientTransport (
154
- endpoint: testEndpoint, configuration: configuration, streaming: false , logger: nil )
158
+ endpoint: testEndpoint,
159
+ configuration: configuration,
160
+ streaming: false ,
161
+ logger: nil
162
+ )
155
163
try await transport. connect ( )
156
164
157
165
let messageData = #"{"jsonrpc":"2.0","method":"initialize","id":1}"# . data ( using: . utf8) !
@@ -189,7 +197,11 @@ import Testing
189
197
configuration. protocolClasses = [ MockURLProtocol . self]
190
198
191
199
let transport = HTTPClientTransport (
192
- endpoint: testEndpoint, configuration: configuration, streaming: false , logger: nil )
200
+ endpoint: testEndpoint,
201
+ configuration: configuration,
202
+ streaming: false ,
203
+ logger: nil
204
+ )
193
205
try await transport. connect ( )
194
206
195
207
let messageData = #"{"jsonrpc":"2.0","method":"initialize","id":1}"# . data ( using: . utf8) !
@@ -219,7 +231,11 @@ import Testing
219
231
configuration. protocolClasses = [ MockURLProtocol . self]
220
232
221
233
let transport = HTTPClientTransport (
222
- endpoint: testEndpoint, configuration: configuration, streaming: false , logger: nil )
234
+ endpoint: testEndpoint,
235
+ configuration: configuration,
236
+ streaming: false ,
237
+ logger: nil
238
+ )
223
239
try await transport. connect ( )
224
240
225
241
let initialSessionID = " existing-session-abc "
@@ -264,7 +280,7 @@ import Testing
264
280
configuration. protocolClasses = [ MockURLProtocol . self]
265
281
266
282
let transport = HTTPClientTransport (
267
- endpoint: testEndpoint, configuration: configuration)
283
+ endpoint: testEndpoint, configuration: configuration, streaming : false )
268
284
try await transport. connect ( )
269
285
270
286
let messageData = #"{"jsonrpc":"2.0","method":"test","id":3}"# . data ( using: . utf8) !
@@ -384,8 +400,11 @@ import Testing
384
400
configuration. protocolClasses = [ MockURLProtocol . self]
385
401
386
402
let transport = HTTPClientTransport (
387
- endpoint: testEndpoint, configuration: configuration, streaming: true ,
388
- logger: nil )
403
+ endpoint: testEndpoint,
404
+ configuration: configuration,
405
+ streaming: true ,
406
+ logger: nil
407
+ )
389
408
390
409
let eventString = " id: event1 \n data: { \" key \" : \" value \" } \n \n "
391
410
let sseEventData = eventString. data ( using: . utf8) !
@@ -418,8 +437,11 @@ import Testing
418
437
configuration. protocolClasses = [ MockURLProtocol . self]
419
438
420
439
let transport = HTTPClientTransport (
421
- endpoint: testEndpoint, configuration: configuration, streaming: true ,
422
- logger: nil )
440
+ endpoint: testEndpoint,
441
+ configuration: configuration,
442
+ streaming: true ,
443
+ logger: nil
444
+ )
423
445
424
446
let eventString = " id: event1 \r \n data: { \" key \" : \" value \" } \r \n \n "
425
447
let sseEventData = eventString. data ( using: . utf8) !
0 commit comments