@doordeck/doordeck-headless-sdk 0.107.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +44 -44
- package/kotlin/Kermit-kermit.js +4 -4
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1393 -1393
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
- package/kotlin/doordeck-sdk.js +9596 -9786
- package/kotlin/kotlinx-coroutines-core.js +855 -844
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +630 -428
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1742
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1399 -1399
- package/kotlin/ktor-ktor-client-ktor-client-core.js +1895 -1895
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +245 -241
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +135 -135
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +658 -658
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +329 -329
- package/kotlin/ktor-ktor-http.js +677 -677
- package/kotlin/ktor-ktor-io.js +976 -888
- package/kotlin/ktor-ktor-shared-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +133 -133
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +58 -58
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +38 -38
- package/kotlin/ktor-ktor-utils.js +644 -644
- package/package.json +1 -1
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
//endregion
|
|
157
157
|
function $logResponseExceptionCOROUTINE$0(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.j4z_1 = _this__u8e3s4;
|
|
160
|
+
this.k4z_1 = message;
|
|
161
161
|
}
|
|
162
162
|
protoOf($logResponseExceptionCOROUTINE$0).o9 = function () {
|
|
163
163
|
var suspendResult = this.i9_1;
|
|
@@ -168,15 +168,15 @@
|
|
|
168
168
|
case 0:
|
|
169
169
|
this.h9_1 = 2;
|
|
170
170
|
this.g9_1 = 1;
|
|
171
|
-
suspendResult = this.
|
|
171
|
+
suspendResult = this.j4z_1.o4z_1.zw(this);
|
|
172
172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
173
|
return suspendResult;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
continue $sm;
|
|
177
177
|
case 1:
|
|
178
|
-
var this_0 = this.
|
|
179
|
-
this.
|
|
178
|
+
var this_0 = this.k4z_1;
|
|
179
|
+
this.j4z_1.l4z_1.s4z(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
180
180
|
return Unit_instance;
|
|
181
181
|
case 2:
|
|
182
182
|
throw this.j9_1;
|
|
@@ -194,8 +194,8 @@
|
|
|
194
194
|
};
|
|
195
195
|
function $logResponseBodyCOROUTINE$1(_this__u8e3s4, message, resultContinuation) {
|
|
196
196
|
CoroutineImpl.call(this, resultContinuation);
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
197
|
+
this.b50_1 = _this__u8e3s4;
|
|
198
|
+
this.c50_1 = message;
|
|
199
199
|
}
|
|
200
200
|
protoOf($logResponseBodyCOROUTINE$1).o9 = function () {
|
|
201
201
|
var suspendResult = this.i9_1;
|
|
@@ -206,14 +206,14 @@
|
|
|
206
206
|
case 0:
|
|
207
207
|
this.h9_1 = 2;
|
|
208
208
|
this.g9_1 = 1;
|
|
209
|
-
suspendResult = this.
|
|
209
|
+
suspendResult = this.b50_1.p4z_1.zw(this);
|
|
210
210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
211
|
return suspendResult;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
continue $sm;
|
|
215
215
|
case 1:
|
|
216
|
-
this.
|
|
216
|
+
this.b50_1.n4z_1.r8(this.c50_1);
|
|
217
217
|
return Unit_instance;
|
|
218
218
|
case 2:
|
|
219
219
|
throw this.j9_1;
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
};
|
|
232
232
|
function $closeResponseLogCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
233
233
|
CoroutineImpl.call(this, resultContinuation);
|
|
234
|
-
this.
|
|
234
|
+
this.l50_1 = _this__u8e3s4;
|
|
235
235
|
}
|
|
236
236
|
protoOf($closeResponseLogCOROUTINE$2).o9 = function () {
|
|
237
237
|
var suspendResult = this.i9_1;
|
|
@@ -241,19 +241,19 @@
|
|
|
241
241
|
switch (tmp) {
|
|
242
242
|
case 0:
|
|
243
243
|
this.h9_1 = 2;
|
|
244
|
-
if (!this.
|
|
244
|
+
if (!this.l50_1.r4z_1.atomicfu$compareAndSet(false, true))
|
|
245
245
|
return Unit_instance;
|
|
246
246
|
this.g9_1 = 1;
|
|
247
|
-
suspendResult = this.
|
|
247
|
+
suspendResult = this.l50_1.o4z_1.zw(this);
|
|
248
248
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
249
249
|
return suspendResult;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
continue $sm;
|
|
253
253
|
case 1:
|
|
254
|
-
var message = toString(trim(this.
|
|
254
|
+
var message = toString(trim(this.l50_1.n4z_1));
|
|
255
255
|
if (charSequenceLength(message) > 0) {
|
|
256
|
-
this.
|
|
256
|
+
this.l50_1.l4z_1.s4z(message);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
return Unit_instance;
|
|
@@ -272,57 +272,57 @@
|
|
|
272
272
|
while (true);
|
|
273
273
|
};
|
|
274
274
|
function HttpClientCallLogger(logger) {
|
|
275
|
-
this.
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
}
|
|
283
|
-
protoOf(HttpClientCallLogger).
|
|
284
|
-
var tmp1 = this.
|
|
275
|
+
this.l4z_1 = logger;
|
|
276
|
+
this.m4z_1 = StringBuilder_init_$Create$();
|
|
277
|
+
this.n4z_1 = StringBuilder_init_$Create$();
|
|
278
|
+
this.o4z_1 = Job();
|
|
279
|
+
this.p4z_1 = Job();
|
|
280
|
+
this.q4z_1 = atomic$boolean$1(false);
|
|
281
|
+
this.r4z_1 = atomic$boolean$1(false);
|
|
282
|
+
}
|
|
283
|
+
protoOf(HttpClientCallLogger).m50 = function (message) {
|
|
284
|
+
var tmp1 = this.m4z_1;
|
|
285
285
|
// Inline function 'kotlin.text.trim' call
|
|
286
286
|
// Inline function 'kotlin.text.appendLine' call
|
|
287
287
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
288
288
|
// Inline function 'kotlin.text.appendLine' call
|
|
289
289
|
tmp1.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
290
290
|
};
|
|
291
|
-
protoOf(HttpClientCallLogger).
|
|
292
|
-
var tmp1 = this.
|
|
291
|
+
protoOf(HttpClientCallLogger).n50 = function (message) {
|
|
292
|
+
var tmp1 = this.n4z_1;
|
|
293
293
|
// Inline function 'kotlin.text.trim' call
|
|
294
294
|
// Inline function 'kotlin.text.appendLine' call
|
|
295
295
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
296
296
|
// Inline function 'kotlin.text.appendLine' call
|
|
297
297
|
tmp1.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
298
|
-
this.
|
|
298
|
+
this.p4z_1.yw();
|
|
299
299
|
};
|
|
300
|
-
protoOf(HttpClientCallLogger).
|
|
300
|
+
protoOf(HttpClientCallLogger).o50 = function (message, $completion) {
|
|
301
301
|
var tmp = new $logResponseExceptionCOROUTINE$0(this, message, $completion);
|
|
302
302
|
tmp.i9_1 = Unit_instance;
|
|
303
303
|
tmp.j9_1 = null;
|
|
304
304
|
return tmp.o9();
|
|
305
305
|
};
|
|
306
|
-
protoOf(HttpClientCallLogger).
|
|
306
|
+
protoOf(HttpClientCallLogger).p50 = function (message, $completion) {
|
|
307
307
|
var tmp = new $logResponseBodyCOROUTINE$1(this, message, $completion);
|
|
308
308
|
tmp.i9_1 = Unit_instance;
|
|
309
309
|
tmp.j9_1 = null;
|
|
310
310
|
return tmp.o9();
|
|
311
311
|
};
|
|
312
|
-
protoOf(HttpClientCallLogger).
|
|
313
|
-
if (!this.
|
|
312
|
+
protoOf(HttpClientCallLogger).q50 = function () {
|
|
313
|
+
if (!this.q4z_1.atomicfu$compareAndSet(false, true))
|
|
314
314
|
return Unit_instance;
|
|
315
315
|
try {
|
|
316
|
-
var message = toString(trim(this.
|
|
316
|
+
var message = toString(trim(this.m4z_1));
|
|
317
317
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
318
318
|
if (charSequenceLength(message) > 0) {
|
|
319
|
-
this.
|
|
319
|
+
this.l4z_1.s4z(message);
|
|
320
320
|
}
|
|
321
321
|
}finally {
|
|
322
|
-
this.
|
|
322
|
+
this.o4z_1.yw();
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
325
|
+
protoOf(HttpClientCallLogger).r50 = function ($completion) {
|
|
326
326
|
var tmp = new $closeResponseLogCOROUTINE$2(this, $completion);
|
|
327
327
|
tmp.i9_1 = Unit_instance;
|
|
328
328
|
tmp.j9_1 = null;
|
|
@@ -346,9 +346,9 @@
|
|
|
346
346
|
}
|
|
347
347
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
348
348
|
Enum.call(this, name, ordinal);
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
349
|
+
this.u50_1 = info;
|
|
350
|
+
this.v50_1 = headers;
|
|
351
|
+
this.w50_1 = body;
|
|
352
352
|
}
|
|
353
353
|
function LogLevel_ALL_getInstance() {
|
|
354
354
|
LogLevel_initEntries();
|
|
@@ -372,27 +372,27 @@
|
|
|
372
372
|
}
|
|
373
373
|
function LoggedContent(originalContent, channel) {
|
|
374
374
|
ReadChannelContent.call(this);
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
375
|
+
this.y50_1 = originalContent;
|
|
376
|
+
this.z50_1 = channel;
|
|
377
|
+
this.a51_1 = this.y50_1.x34();
|
|
378
|
+
this.b51_1 = this.y50_1.z34();
|
|
379
|
+
this.c51_1 = this.y50_1.y34();
|
|
380
|
+
this.d51_1 = this.y50_1.c2z();
|
|
381
381
|
}
|
|
382
|
-
protoOf(LoggedContent).
|
|
383
|
-
return this.
|
|
382
|
+
protoOf(LoggedContent).x34 = function () {
|
|
383
|
+
return this.a51_1;
|
|
384
384
|
};
|
|
385
|
-
protoOf(LoggedContent).
|
|
386
|
-
return this.
|
|
385
|
+
protoOf(LoggedContent).z34 = function () {
|
|
386
|
+
return this.b51_1;
|
|
387
387
|
};
|
|
388
|
-
protoOf(LoggedContent).
|
|
389
|
-
return this.
|
|
388
|
+
protoOf(LoggedContent).y34 = function () {
|
|
389
|
+
return this.c51_1;
|
|
390
390
|
};
|
|
391
|
-
protoOf(LoggedContent).
|
|
392
|
-
return this.
|
|
391
|
+
protoOf(LoggedContent).c2z = function () {
|
|
392
|
+
return this.d51_1;
|
|
393
393
|
};
|
|
394
|
-
protoOf(LoggedContent).
|
|
395
|
-
return this.
|
|
394
|
+
protoOf(LoggedContent).d35 = function () {
|
|
395
|
+
return this.z50_1;
|
|
396
396
|
};
|
|
397
397
|
function Companion() {
|
|
398
398
|
}
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
}
|
|
406
406
|
function SimpleLogger() {
|
|
407
407
|
}
|
|
408
|
-
protoOf(SimpleLogger).
|
|
408
|
+
protoOf(SimpleLogger).s4z = function (message) {
|
|
409
409
|
println('HttpClient: ' + message);
|
|
410
410
|
};
|
|
411
411
|
function get_ClientCallLogger() {
|
|
@@ -426,19 +426,19 @@
|
|
|
426
426
|
function LoggingConfig() {
|
|
427
427
|
var tmp = this;
|
|
428
428
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
429
|
-
tmp.
|
|
429
|
+
tmp.e51_1 = ArrayList_init_$Create$();
|
|
430
430
|
var tmp_0 = this;
|
|
431
431
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
432
|
-
tmp_0.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
432
|
+
tmp_0.f51_1 = ArrayList_init_$Create$();
|
|
433
|
+
this.g51_1 = null;
|
|
434
|
+
this.h51_1 = LoggingFormat_Default_getInstance();
|
|
435
|
+
this.i51_1 = LogLevel_HEADERS_getInstance();
|
|
436
436
|
}
|
|
437
|
-
protoOf(LoggingConfig).
|
|
438
|
-
this.
|
|
437
|
+
protoOf(LoggingConfig).j51 = function (value) {
|
|
438
|
+
this.g51_1 = value;
|
|
439
439
|
};
|
|
440
|
-
protoOf(LoggingConfig).
|
|
441
|
-
var tmp0_elvis_lhs = this.
|
|
440
|
+
protoOf(LoggingConfig).k51 = function () {
|
|
441
|
+
var tmp0_elvis_lhs = this.g51_1;
|
|
442
442
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
443
443
|
};
|
|
444
444
|
var LoggingFormat_Default_instance;
|
|
@@ -460,17 +460,17 @@
|
|
|
460
460
|
// Inline function 'kotlin.apply' call
|
|
461
461
|
var this_0 = StringBuilder_init_$Create$();
|
|
462
462
|
// Inline function 'kotlin.text.isEmpty' call
|
|
463
|
-
var this_1 = _this__u8e3s4.
|
|
463
|
+
var this_1 = _this__u8e3s4.c34();
|
|
464
464
|
if (charSequenceLength(this_1) === 0) {
|
|
465
465
|
this_0.r8('/');
|
|
466
466
|
} else {
|
|
467
|
-
this_0.r8(_this__u8e3s4.
|
|
467
|
+
this_0.r8(_this__u8e3s4.c34());
|
|
468
468
|
}
|
|
469
469
|
// Inline function 'kotlin.text.isEmpty' call
|
|
470
|
-
var this_2 = _this__u8e3s4.
|
|
470
|
+
var this_2 = _this__u8e3s4.f34();
|
|
471
471
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
472
472
|
this_0.r8('?');
|
|
473
|
-
this_0.r8(_this__u8e3s4.
|
|
473
|
+
this_0.r8(_this__u8e3s4.f34());
|
|
474
474
|
}
|
|
475
475
|
return this_0.toString();
|
|
476
476
|
}
|
|
@@ -482,10 +482,10 @@
|
|
|
482
482
|
}
|
|
483
483
|
var tmp;
|
|
484
484
|
if (content instanceof ByteArrayContent) {
|
|
485
|
-
tmp = toLong(content.
|
|
485
|
+
tmp = toLong(content.a35().length);
|
|
486
486
|
} else {
|
|
487
487
|
if (content instanceof ContentWrapper) {
|
|
488
|
-
tmp = computeRequestBodySize(content.
|
|
488
|
+
tmp = computeRequestBodySize(content.j35());
|
|
489
489
|
} else {
|
|
490
490
|
if (content instanceof NoContent) {
|
|
491
491
|
tmp = new Long(0, 0);
|
|
@@ -502,27 +502,27 @@
|
|
|
502
502
|
return tmp;
|
|
503
503
|
}
|
|
504
504
|
function Context(context) {
|
|
505
|
-
this.
|
|
505
|
+
this.l51_1 = context;
|
|
506
506
|
}
|
|
507
|
-
protoOf(Context).
|
|
508
|
-
return this.
|
|
507
|
+
protoOf(Context).m51 = function (content, $completion) {
|
|
508
|
+
return this.l51_1.k2q(content, $completion);
|
|
509
509
|
};
|
|
510
|
-
protoOf(Context).
|
|
511
|
-
return this.
|
|
510
|
+
protoOf(Context).n51 = function ($completion) {
|
|
511
|
+
return this.l51_1.l2q($completion);
|
|
512
512
|
};
|
|
513
513
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
514
|
-
this.
|
|
514
|
+
this.w51_1 = $handler;
|
|
515
515
|
CoroutineImpl.call(this, resultContinuation);
|
|
516
516
|
}
|
|
517
|
-
protoOf(SendHook$install$slambda).
|
|
518
|
-
var tmp = this.
|
|
517
|
+
protoOf(SendHook$install$slambda).n3g = function ($this$intercept, it, $completion) {
|
|
518
|
+
var tmp = this.o3g($this$intercept, it, $completion);
|
|
519
519
|
tmp.i9_1 = Unit_instance;
|
|
520
520
|
tmp.j9_1 = null;
|
|
521
521
|
return tmp.o9();
|
|
522
522
|
};
|
|
523
523
|
protoOf(SendHook$install$slambda).da = function (p1, p2, $completion) {
|
|
524
524
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
525
|
-
return this.
|
|
525
|
+
return this.n3g(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
526
526
|
};
|
|
527
527
|
protoOf(SendHook$install$slambda).o9 = function () {
|
|
528
528
|
var suspendResult = this.i9_1;
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
case 0:
|
|
534
534
|
this.h9_1 = 2;
|
|
535
535
|
this.g9_1 = 1;
|
|
536
|
-
suspendResult = this.
|
|
536
|
+
suspendResult = this.w51_1(new Context(this.x51_1), this.x51_1.g2r_1, this);
|
|
537
537
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
538
538
|
return suspendResult;
|
|
539
539
|
}
|
|
@@ -555,52 +555,52 @@
|
|
|
555
555
|
}
|
|
556
556
|
while (true);
|
|
557
557
|
};
|
|
558
|
-
protoOf(SendHook$install$slambda).
|
|
559
|
-
var i = new SendHook$install$slambda(this.
|
|
560
|
-
i.
|
|
561
|
-
i.
|
|
558
|
+
protoOf(SendHook$install$slambda).o3g = function ($this$intercept, it, completion) {
|
|
559
|
+
var i = new SendHook$install$slambda(this.w51_1, completion);
|
|
560
|
+
i.x51_1 = $this$intercept;
|
|
561
|
+
i.y51_1 = it;
|
|
562
562
|
return i;
|
|
563
563
|
};
|
|
564
564
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
565
565
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
566
566
|
var l = function ($this$intercept, it, $completion) {
|
|
567
|
-
return i.
|
|
567
|
+
return i.n3g($this$intercept, it, $completion);
|
|
568
568
|
};
|
|
569
569
|
l.$arity = 2;
|
|
570
570
|
return l;
|
|
571
571
|
}
|
|
572
572
|
function SendHook() {
|
|
573
573
|
}
|
|
574
|
-
protoOf(SendHook).
|
|
575
|
-
var tmp = Phases_getInstance().
|
|
576
|
-
client.
|
|
574
|
+
protoOf(SendHook).z51 = function (client, handler) {
|
|
575
|
+
var tmp = Phases_getInstance().e3i_1;
|
|
576
|
+
client.v3f_1.k2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
577
577
|
};
|
|
578
|
-
protoOf(SendHook).
|
|
579
|
-
return this.
|
|
578
|
+
protoOf(SendHook).i3p = function (client, handler) {
|
|
579
|
+
return this.z51(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
580
580
|
};
|
|
581
581
|
var SendHook_instance;
|
|
582
582
|
function SendHook_getInstance() {
|
|
583
583
|
return SendHook_instance;
|
|
584
584
|
}
|
|
585
585
|
function Context_0(context) {
|
|
586
|
-
this.
|
|
586
|
+
this.a52_1 = context;
|
|
587
587
|
}
|
|
588
|
-
protoOf(Context_0).
|
|
589
|
-
return this.
|
|
588
|
+
protoOf(Context_0).i4e = function (response, $completion) {
|
|
589
|
+
return this.a52_1.k2q(response, $completion);
|
|
590
590
|
};
|
|
591
591
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
592
|
-
this.
|
|
592
|
+
this.j52_1 = $handler;
|
|
593
593
|
CoroutineImpl.call(this, resultContinuation);
|
|
594
594
|
}
|
|
595
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
596
|
-
var tmp = this.
|
|
595
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).v3p = function ($this$intercept, it, $completion) {
|
|
596
|
+
var tmp = this.w3p($this$intercept, it, $completion);
|
|
597
597
|
tmp.i9_1 = Unit_instance;
|
|
598
598
|
tmp.j9_1 = null;
|
|
599
599
|
return tmp.o9();
|
|
600
600
|
};
|
|
601
601
|
protoOf(ResponseAfterEncodingHook$install$slambda).da = function (p1, p2, $completion) {
|
|
602
602
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
603
|
-
return this.
|
|
603
|
+
return this.v3p(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
604
604
|
};
|
|
605
605
|
protoOf(ResponseAfterEncodingHook$install$slambda).o9 = function () {
|
|
606
606
|
var suspendResult = this.i9_1;
|
|
@@ -611,7 +611,7 @@
|
|
|
611
611
|
case 0:
|
|
612
612
|
this.h9_1 = 2;
|
|
613
613
|
this.g9_1 = 1;
|
|
614
|
-
suspendResult = this.
|
|
614
|
+
suspendResult = this.j52_1(new Context_0(this.k52_1), this.k52_1.j2q(), this);
|
|
615
615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
616
616
|
return suspendResult;
|
|
617
617
|
}
|
|
@@ -633,53 +633,53 @@
|
|
|
633
633
|
}
|
|
634
634
|
while (true);
|
|
635
635
|
};
|
|
636
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
637
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
638
|
-
i.
|
|
639
|
-
i.
|
|
636
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).w3p = function ($this$intercept, it, completion) {
|
|
637
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.j52_1, completion);
|
|
638
|
+
i.k52_1 = $this$intercept;
|
|
639
|
+
i.l52_1 = it;
|
|
640
640
|
return i;
|
|
641
641
|
};
|
|
642
642
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
643
643
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
644
644
|
var l = function ($this$intercept, it, $completion) {
|
|
645
|
-
return i.
|
|
645
|
+
return i.v3p($this$intercept, it, $completion);
|
|
646
646
|
};
|
|
647
647
|
l.$arity = 2;
|
|
648
648
|
return l;
|
|
649
649
|
}
|
|
650
650
|
function ResponseAfterEncodingHook() {
|
|
651
651
|
}
|
|
652
|
-
protoOf(ResponseAfterEncodingHook).
|
|
652
|
+
protoOf(ResponseAfterEncodingHook).m52 = function (client, handler) {
|
|
653
653
|
var afterState = new PipelinePhase('AfterState');
|
|
654
|
-
client.
|
|
655
|
-
client.
|
|
654
|
+
client.w3f_1.h2r(Phases_getInstance_0().z3p_1, afterState);
|
|
655
|
+
client.w3f_1.k2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
656
656
|
};
|
|
657
|
-
protoOf(ResponseAfterEncodingHook).
|
|
658
|
-
return this.
|
|
657
|
+
protoOf(ResponseAfterEncodingHook).i3p = function (client, handler) {
|
|
658
|
+
return this.m52(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
659
659
|
};
|
|
660
660
|
var ResponseAfterEncodingHook_instance;
|
|
661
661
|
function ResponseAfterEncodingHook_getInstance() {
|
|
662
662
|
return ResponseAfterEncodingHook_instance;
|
|
663
663
|
}
|
|
664
664
|
function Context_1(context) {
|
|
665
|
-
this.
|
|
665
|
+
this.n52_1 = context;
|
|
666
666
|
}
|
|
667
|
-
protoOf(Context_1).
|
|
668
|
-
return this.
|
|
667
|
+
protoOf(Context_1).o52 = function ($completion) {
|
|
668
|
+
return this.n52_1.l2q($completion);
|
|
669
669
|
};
|
|
670
670
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
671
|
-
this.
|
|
671
|
+
this.x52_1 = $handler;
|
|
672
672
|
CoroutineImpl.call(this, resultContinuation);
|
|
673
673
|
}
|
|
674
|
-
protoOf(ResponseHook$install$slambda).
|
|
675
|
-
var tmp = this.
|
|
674
|
+
protoOf(ResponseHook$install$slambda).v3p = function ($this$intercept, it, $completion) {
|
|
675
|
+
var tmp = this.w3p($this$intercept, it, $completion);
|
|
676
676
|
tmp.i9_1 = Unit_instance;
|
|
677
677
|
tmp.j9_1 = null;
|
|
678
678
|
return tmp.o9();
|
|
679
679
|
};
|
|
680
680
|
protoOf(ResponseHook$install$slambda).da = function (p1, p2, $completion) {
|
|
681
681
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
682
|
-
return this.
|
|
682
|
+
return this.v3p(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
683
683
|
};
|
|
684
684
|
protoOf(ResponseHook$install$slambda).o9 = function () {
|
|
685
685
|
var suspendResult = this.i9_1;
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
case 0:
|
|
691
691
|
this.h9_1 = 2;
|
|
692
692
|
this.g9_1 = 1;
|
|
693
|
-
suspendResult = this.
|
|
693
|
+
suspendResult = this.x52_1(new Context_1(this.y52_1), this.y52_1.j2q(), this);
|
|
694
694
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
695
695
|
return suspendResult;
|
|
696
696
|
}
|
|
@@ -712,52 +712,52 @@
|
|
|
712
712
|
}
|
|
713
713
|
while (true);
|
|
714
714
|
};
|
|
715
|
-
protoOf(ResponseHook$install$slambda).
|
|
716
|
-
var i = new ResponseHook$install$slambda(this.
|
|
717
|
-
i.
|
|
718
|
-
i.
|
|
715
|
+
protoOf(ResponseHook$install$slambda).w3p = function ($this$intercept, it, completion) {
|
|
716
|
+
var i = new ResponseHook$install$slambda(this.x52_1, completion);
|
|
717
|
+
i.y52_1 = $this$intercept;
|
|
718
|
+
i.z52_1 = it;
|
|
719
719
|
return i;
|
|
720
720
|
};
|
|
721
721
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
722
722
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
723
723
|
var l = function ($this$intercept, it, $completion) {
|
|
724
|
-
return i.
|
|
724
|
+
return i.v3p($this$intercept, it, $completion);
|
|
725
725
|
};
|
|
726
726
|
l.$arity = 2;
|
|
727
727
|
return l;
|
|
728
728
|
}
|
|
729
729
|
function ResponseHook() {
|
|
730
730
|
}
|
|
731
|
-
protoOf(ResponseHook).
|
|
732
|
-
var tmp = Phases_getInstance_0().
|
|
733
|
-
client.
|
|
731
|
+
protoOf(ResponseHook).a53 = function (client, handler) {
|
|
732
|
+
var tmp = Phases_getInstance_0().z3p_1;
|
|
733
|
+
client.w3f_1.k2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
734
734
|
};
|
|
735
|
-
protoOf(ResponseHook).
|
|
736
|
-
return this.
|
|
735
|
+
protoOf(ResponseHook).i3p = function (client, handler) {
|
|
736
|
+
return this.a53(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
737
737
|
};
|
|
738
738
|
var ResponseHook_instance;
|
|
739
739
|
function ResponseHook_getInstance() {
|
|
740
740
|
return ResponseHook_instance;
|
|
741
741
|
}
|
|
742
742
|
function Context_2(context) {
|
|
743
|
-
this.
|
|
743
|
+
this.b53_1 = context;
|
|
744
744
|
}
|
|
745
|
-
protoOf(Context_2).
|
|
746
|
-
return this.
|
|
745
|
+
protoOf(Context_2).c53 = function ($completion) {
|
|
746
|
+
return this.b53_1.l2q($completion);
|
|
747
747
|
};
|
|
748
748
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
749
|
-
this.
|
|
749
|
+
this.l53_1 = $handler;
|
|
750
750
|
CoroutineImpl.call(this, resultContinuation);
|
|
751
751
|
}
|
|
752
|
-
protoOf(ReceiveHook$install$slambda).
|
|
753
|
-
var tmp = this.
|
|
752
|
+
protoOf(ReceiveHook$install$slambda).i3h = function ($this$intercept, it, $completion) {
|
|
753
|
+
var tmp = this.j3h($this$intercept, it, $completion);
|
|
754
754
|
tmp.i9_1 = Unit_instance;
|
|
755
755
|
tmp.j9_1 = null;
|
|
756
756
|
return tmp.o9();
|
|
757
757
|
};
|
|
758
758
|
protoOf(ReceiveHook$install$slambda).da = function (p1, p2, $completion) {
|
|
759
759
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
760
|
-
return this.
|
|
760
|
+
return this.i3h(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
761
761
|
};
|
|
762
762
|
protoOf(ReceiveHook$install$slambda).o9 = function () {
|
|
763
763
|
var suspendResult = this.i9_1;
|
|
@@ -768,7 +768,7 @@
|
|
|
768
768
|
case 0:
|
|
769
769
|
this.h9_1 = 2;
|
|
770
770
|
this.g9_1 = 1;
|
|
771
|
-
suspendResult = this.
|
|
771
|
+
suspendResult = this.l53_1(new Context_2(this.m53_1), this.m53_1.g2r_1, this);
|
|
772
772
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
773
773
|
return suspendResult;
|
|
774
774
|
}
|
|
@@ -790,28 +790,28 @@
|
|
|
790
790
|
}
|
|
791
791
|
while (true);
|
|
792
792
|
};
|
|
793
|
-
protoOf(ReceiveHook$install$slambda).
|
|
794
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
795
|
-
i.
|
|
796
|
-
i.
|
|
793
|
+
protoOf(ReceiveHook$install$slambda).j3h = function ($this$intercept, it, completion) {
|
|
794
|
+
var i = new ReceiveHook$install$slambda(this.l53_1, completion);
|
|
795
|
+
i.m53_1 = $this$intercept;
|
|
796
|
+
i.n53_1 = it;
|
|
797
797
|
return i;
|
|
798
798
|
};
|
|
799
799
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
800
800
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
801
801
|
var l = function ($this$intercept, it, $completion) {
|
|
802
|
-
return i.
|
|
802
|
+
return i.i3h($this$intercept, it, $completion);
|
|
803
803
|
};
|
|
804
804
|
l.$arity = 2;
|
|
805
805
|
return l;
|
|
806
806
|
}
|
|
807
807
|
function ReceiveHook() {
|
|
808
808
|
}
|
|
809
|
-
protoOf(ReceiveHook).
|
|
810
|
-
var tmp = Phases_getInstance_1().
|
|
811
|
-
client.
|
|
809
|
+
protoOf(ReceiveHook).o53 = function (client, handler) {
|
|
810
|
+
var tmp = Phases_getInstance_1().s3i_1;
|
|
811
|
+
client.u3f_1.k2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
812
812
|
};
|
|
813
|
-
protoOf(ReceiveHook).
|
|
814
|
-
return this.
|
|
813
|
+
protoOf(ReceiveHook).i3p = function (client, handler) {
|
|
814
|
+
return this.o53(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
815
815
|
};
|
|
816
816
|
var ReceiveHook_instance;
|
|
817
817
|
function ReceiveHook_getInstance() {
|
|
@@ -826,27 +826,27 @@
|
|
|
826
826
|
}
|
|
827
827
|
function Logging$lambda($this$createClientPlugin) {
|
|
828
828
|
_init_properties_Logging_kt__66pui5();
|
|
829
|
-
var logger = $this$createClientPlugin.
|
|
830
|
-
var level = $this$createClientPlugin.
|
|
831
|
-
var filters = $this$createClientPlugin.
|
|
832
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
833
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
829
|
+
var logger = $this$createClientPlugin.d3q_1.k51();
|
|
830
|
+
var level = $this$createClientPlugin.d3q_1.i51_1;
|
|
831
|
+
var filters = $this$createClientPlugin.d3q_1.e51_1;
|
|
832
|
+
var sanitizedHeaders = $this$createClientPlugin.d3q_1.f51_1;
|
|
833
|
+
var okHttpFormat = $this$createClientPlugin.d3q_1.h51_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
834
834
|
var tmp = SendHook_instance;
|
|
835
|
-
$this$createClientPlugin.
|
|
835
|
+
$this$createClientPlugin.g3q(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
836
836
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
837
|
-
$this$createClientPlugin.
|
|
837
|
+
$this$createClientPlugin.g3q(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
838
838
|
var tmp_1 = ResponseHook_instance;
|
|
839
|
-
$this$createClientPlugin.
|
|
839
|
+
$this$createClientPlugin.g3q(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
840
840
|
var tmp_2 = ReceiveHook_instance;
|
|
841
|
-
$this$createClientPlugin.
|
|
841
|
+
$this$createClientPlugin.g3q(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
842
842
|
if (okHttpFormat)
|
|
843
843
|
return Unit_instance;
|
|
844
|
-
if (!level.
|
|
844
|
+
if (!level.w50_1)
|
|
845
845
|
return Unit_instance;
|
|
846
846
|
var observer = Logging$lambda$slambda_8(level, null);
|
|
847
847
|
var tmp_3 = get_ResponseObserver();
|
|
848
848
|
var tmp_4 = get_ResponseObserver();
|
|
849
|
-
tmp_3.
|
|
849
|
+
tmp_3.a3j(tmp_4.z3i(Logging$lambda$lambda(observer)), $this$createClientPlugin.c3q_1);
|
|
850
850
|
return Unit_instance;
|
|
851
851
|
}
|
|
852
852
|
function invoke$shouldBeLogged(filters, request) {
|
|
@@ -939,12 +939,12 @@
|
|
|
939
939
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
940
940
|
var requestLog = StringBuilder_init_$Create$();
|
|
941
941
|
// Inline function 'kotlin.text.appendLine' call
|
|
942
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
942
|
+
var value = 'BODY Content-Type: ' + toString_0(content.x34());
|
|
943
943
|
// Inline function 'kotlin.text.appendLine' call
|
|
944
944
|
requestLog.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
945
|
-
var tmp0_safe_receiver = content.
|
|
945
|
+
var tmp0_safe_receiver = content.x34();
|
|
946
946
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
947
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
947
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp1_elvis_lhs;
|
|
948
948
|
var channel = new ByteChannel();
|
|
949
949
|
var tmp = GlobalScope_instance;
|
|
950
950
|
var tmp_0 = Dispatchers_getInstance().y10_1.rh(MDCContext());
|
|
@@ -952,34 +952,34 @@
|
|
|
952
952
|
return observe(content, channel, $completion);
|
|
953
953
|
}
|
|
954
954
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
955
|
-
if (level.
|
|
956
|
-
logger.
|
|
955
|
+
if (level.u50_1) {
|
|
956
|
+
logger.s4z('REQUEST ' + Url(context.u3h_1).toString() + ' failed with exception: ' + cause.toString());
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
960
|
-
var tmp = request.
|
|
960
|
+
var tmp = request.x3h_1;
|
|
961
961
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
962
962
|
var callLogger = new HttpClientCallLogger(logger);
|
|
963
|
-
request.
|
|
963
|
+
request.z3h_1.q2j(get_ClientCallLogger(), callLogger);
|
|
964
964
|
// Inline function 'kotlin.text.buildString' call
|
|
965
965
|
// Inline function 'kotlin.apply' call
|
|
966
966
|
var this_0 = StringBuilder_init_$Create$();
|
|
967
|
-
if (level.
|
|
967
|
+
if (level.u50_1) {
|
|
968
968
|
// Inline function 'kotlin.text.appendLine' call
|
|
969
|
-
var value = 'REQUEST: ' + Url(request.
|
|
969
|
+
var value = 'REQUEST: ' + Url(request.u3h_1).toString();
|
|
970
970
|
// Inline function 'kotlin.text.appendLine' call
|
|
971
971
|
this_0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
972
972
|
// Inline function 'kotlin.text.appendLine' call
|
|
973
|
-
var value_0 = 'METHOD: ' + request.
|
|
973
|
+
var value_0 = 'METHOD: ' + request.v3h_1.toString();
|
|
974
974
|
// Inline function 'kotlin.text.appendLine' call
|
|
975
975
|
this_0.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
976
976
|
}
|
|
977
|
-
if (level.
|
|
977
|
+
if (level.v50_1) {
|
|
978
978
|
// Inline function 'kotlin.text.appendLine' call
|
|
979
979
|
var value_1 = 'COMMON HEADERS';
|
|
980
980
|
// Inline function 'kotlin.text.appendLine' call
|
|
981
981
|
this_0.r8(value_1).s8(_Char___init__impl__6a9atx(10));
|
|
982
|
-
logHeaders(this_0, request.
|
|
982
|
+
logHeaders(this_0, request.w3h_1.v2n(), sanitizedHeaders);
|
|
983
983
|
// Inline function 'kotlin.text.appendLine' call
|
|
984
984
|
var value_2 = 'CONTENT HEADERS';
|
|
985
985
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -990,7 +990,7 @@
|
|
|
990
990
|
var _iterator__ex2g4s = sanitizedHeaders.p();
|
|
991
991
|
while (_iterator__ex2g4s.q()) {
|
|
992
992
|
var element = _iterator__ex2g4s.r();
|
|
993
|
-
if (element.
|
|
993
|
+
if (element.m58_1(HttpHeaders_getInstance().o2v_1)) {
|
|
994
994
|
tmp$ret$9 = element;
|
|
995
995
|
break $l$block;
|
|
996
996
|
}
|
|
@@ -998,14 +998,14 @@
|
|
|
998
998
|
tmp$ret$9 = null;
|
|
999
999
|
}
|
|
1000
1000
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1001
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1001
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l58_1;
|
|
1002
1002
|
var tmp$ret$11;
|
|
1003
1003
|
$l$block_0: {
|
|
1004
1004
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1005
1005
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
1006
1006
|
while (_iterator__ex2g4s_0.q()) {
|
|
1007
1007
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
1008
|
-
if (element_0.
|
|
1008
|
+
if (element_0.m58_1(HttpHeaders_getInstance().r2v_1)) {
|
|
1009
1009
|
tmp$ret$11 = element_0;
|
|
1010
1010
|
break $l$block_0;
|
|
1011
1011
|
}
|
|
@@ -1013,66 +1013,66 @@
|
|
|
1013
1013
|
tmp$ret$11 = null;
|
|
1014
1014
|
}
|
|
1015
1015
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1016
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1017
|
-
var tmp2_safe_receiver = content.
|
|
1016
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l58_1;
|
|
1017
|
+
var tmp2_safe_receiver = content.z34();
|
|
1018
1018
|
if (tmp2_safe_receiver == null)
|
|
1019
1019
|
null;
|
|
1020
1020
|
else {
|
|
1021
1021
|
// Inline function 'kotlin.let' call
|
|
1022
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1022
|
+
var tmp_0 = HttpHeaders_getInstance().o2v_1;
|
|
1023
1023
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1024
1024
|
}
|
|
1025
|
-
var tmp3_safe_receiver = content.
|
|
1025
|
+
var tmp3_safe_receiver = content.x34();
|
|
1026
1026
|
if (tmp3_safe_receiver == null)
|
|
1027
1027
|
null;
|
|
1028
1028
|
else {
|
|
1029
1029
|
// Inline function 'kotlin.let' call
|
|
1030
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1030
|
+
var tmp_1 = HttpHeaders_getInstance().r2v_1;
|
|
1031
1031
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1032
1032
|
}
|
|
1033
|
-
logHeaders(this_0, content.
|
|
1033
|
+
logHeaders(this_0, content.c2z().v2n(), sanitizedHeaders);
|
|
1034
1034
|
}
|
|
1035
1035
|
var message = this_0.toString();
|
|
1036
1036
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1037
1037
|
if (charSequenceLength(message) > 0) {
|
|
1038
|
-
callLogger.
|
|
1038
|
+
callLogger.m50(message);
|
|
1039
1039
|
}
|
|
1040
1040
|
var tmp_2;
|
|
1041
1041
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1042
1042
|
if (charSequenceLength(message) === 0) {
|
|
1043
1043
|
tmp_2 = true;
|
|
1044
1044
|
} else {
|
|
1045
|
-
tmp_2 = !level.
|
|
1045
|
+
tmp_2 = !level.w50_1;
|
|
1046
1046
|
}
|
|
1047
1047
|
if (tmp_2) {
|
|
1048
|
-
callLogger.
|
|
1048
|
+
callLogger.q50();
|
|
1049
1049
|
return null;
|
|
1050
1050
|
}
|
|
1051
1051
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1052
1052
|
}
|
|
1053
1053
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1054
|
-
if (!level.
|
|
1054
|
+
if (!level.u50_1)
|
|
1055
1055
|
return Unit_instance;
|
|
1056
|
-
log.r8('RESPONSE ' + request.
|
|
1056
|
+
log.r8('RESPONSE ' + request.g3k().toString() + ' failed with exception: ' + cause.toString());
|
|
1057
1057
|
}
|
|
1058
1058
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1059
|
+
this.v58_1 = $okHttpFormat;
|
|
1060
|
+
this.w58_1 = $logger;
|
|
1061
|
+
this.x58_1 = $filters;
|
|
1062
|
+
this.y58_1 = $sanitizedHeaders;
|
|
1063
|
+
this.z58_1 = $level;
|
|
1064
|
+
this.a59_1 = $this_createClientPlugin;
|
|
1065
1065
|
CoroutineImpl.call(this, resultContinuation);
|
|
1066
1066
|
}
|
|
1067
|
-
protoOf(Logging$lambda$slambda).
|
|
1068
|
-
var tmp = this.
|
|
1067
|
+
protoOf(Logging$lambda$slambda).o59 = function ($this$on, request, $completion) {
|
|
1068
|
+
var tmp = this.p59($this$on, request, $completion);
|
|
1069
1069
|
tmp.i9_1 = Unit_instance;
|
|
1070
1070
|
tmp.j9_1 = null;
|
|
1071
1071
|
return tmp.o9();
|
|
1072
1072
|
};
|
|
1073
1073
|
protoOf(Logging$lambda$slambda).da = function (p1, p2, $completion) {
|
|
1074
1074
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.o59(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1076
1076
|
};
|
|
1077
1077
|
protoOf(Logging$lambda$slambda).o9 = function () {
|
|
1078
1078
|
var suspendResult = this.i9_1;
|
|
@@ -1082,16 +1082,16 @@
|
|
|
1082
1082
|
switch (tmp) {
|
|
1083
1083
|
case 0:
|
|
1084
1084
|
this.h9_1 = 16;
|
|
1085
|
-
if (!invoke$shouldBeLogged(this.
|
|
1086
|
-
this.
|
|
1085
|
+
if (!invoke$shouldBeLogged(this.x58_1, this.c59_1)) {
|
|
1086
|
+
this.c59_1.z3h_1.q2j(get_DisableLogging(), Unit_instance);
|
|
1087
1087
|
return Unit_instance;
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
|
-
if (this.
|
|
1090
|
+
if (this.v58_1) {
|
|
1091
1091
|
var tmp_0 = this;
|
|
1092
|
-
tmp_0.
|
|
1092
|
+
tmp_0.d59_1 = ArrayList_init_$Create$();
|
|
1093
1093
|
this.g9_1 = 10;
|
|
1094
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1094
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.y58_1, this.z58_1, this.a59_1, this.c59_1, this.d59_1, this);
|
|
1095
1095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1096
1096
|
return suspendResult;
|
|
1097
1097
|
}
|
|
@@ -1104,14 +1104,14 @@
|
|
|
1104
1104
|
case 1:
|
|
1105
1105
|
this.h9_1 = 3;
|
|
1106
1106
|
this.g9_1 = 2;
|
|
1107
|
-
suspendResult = invoke$logRequest(this.
|
|
1107
|
+
suspendResult = invoke$logRequest(this.w58_1, this.z58_1, this.y58_1, this.c59_1, this);
|
|
1108
1108
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1109
1109
|
return suspendResult;
|
|
1110
1110
|
}
|
|
1111
1111
|
|
|
1112
1112
|
continue $sm;
|
|
1113
1113
|
case 2:
|
|
1114
|
-
this.
|
|
1114
|
+
this.e59_1 = suspendResult;
|
|
1115
1115
|
this.h9_1 = 16;
|
|
1116
1116
|
this.g9_1 = 4;
|
|
1117
1117
|
continue $sm;
|
|
@@ -1119,9 +1119,9 @@
|
|
|
1119
1119
|
this.h9_1 = 16;
|
|
1120
1120
|
var tmp_1 = this.j9_1;
|
|
1121
1121
|
if (tmp_1 instanceof Error) {
|
|
1122
|
-
this.
|
|
1122
|
+
this.f59_1 = this.j9_1;
|
|
1123
1123
|
var tmp_2 = this;
|
|
1124
|
-
tmp_2.
|
|
1124
|
+
tmp_2.e59_1 = null;
|
|
1125
1125
|
this.g9_1 = 4;
|
|
1126
1126
|
continue $sm;
|
|
1127
1127
|
} else {
|
|
@@ -1130,23 +1130,23 @@
|
|
|
1130
1130
|
|
|
1131
1131
|
case 4:
|
|
1132
1132
|
this.h9_1 = 16;
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1133
|
+
this.g59_1 = this.e59_1;
|
|
1134
|
+
this.h59_1 = Unit_instance;
|
|
1135
1135
|
this.g9_1 = 5;
|
|
1136
1136
|
continue $sm;
|
|
1137
1137
|
case 5:
|
|
1138
1138
|
this.h9_1 = 8;
|
|
1139
1139
|
this.h9_1 = 7;
|
|
1140
1140
|
this.g9_1 = 6;
|
|
1141
|
-
var tmp0_elvis_lhs = this.
|
|
1142
|
-
suspendResult = this.
|
|
1141
|
+
var tmp0_elvis_lhs = this.g59_1;
|
|
1142
|
+
suspendResult = this.b59_1.m51(tmp0_elvis_lhs == null ? this.c59_1.x3h_1 : tmp0_elvis_lhs, this);
|
|
1143
1143
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1144
1144
|
return suspendResult;
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
continue $sm;
|
|
1148
1148
|
case 6:
|
|
1149
|
-
this.
|
|
1149
|
+
this.h59_1 = suspendResult;
|
|
1150
1150
|
this.h9_1 = 16;
|
|
1151
1151
|
this.g9_1 = 9;
|
|
1152
1152
|
continue $sm;
|
|
@@ -1154,39 +1154,39 @@
|
|
|
1154
1154
|
this.h9_1 = 8;
|
|
1155
1155
|
var tmp_3 = this.j9_1;
|
|
1156
1156
|
if (tmp_3 instanceof Error) {
|
|
1157
|
-
this.
|
|
1157
|
+
this.i59_1 = this.j9_1;
|
|
1158
1158
|
var tmp_4 = this;
|
|
1159
|
-
invoke$logRequestException(this.
|
|
1160
|
-
throw this.
|
|
1159
|
+
invoke$logRequestException(this.z58_1, this.w58_1, this.c59_1, this.i59_1);
|
|
1160
|
+
throw this.i59_1;
|
|
1161
1161
|
} else {
|
|
1162
1162
|
throw this.j9_1;
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
1165
|
case 8:
|
|
1166
1166
|
this.h9_1 = 16;
|
|
1167
|
-
this.
|
|
1168
|
-
throw this.
|
|
1167
|
+
this.j59_1 = this.j9_1;
|
|
1168
|
+
throw this.j59_1;
|
|
1169
1169
|
case 9:
|
|
1170
|
-
this.
|
|
1170
|
+
this.k59_1 = this.h59_1;
|
|
1171
1171
|
this.h9_1 = 16;
|
|
1172
1172
|
return Unit_instance;
|
|
1173
1173
|
case 10:
|
|
1174
|
-
this.
|
|
1175
|
-
if (this.
|
|
1176
|
-
this.
|
|
1174
|
+
this.l59_1 = suspendResult;
|
|
1175
|
+
if (this.d59_1.s() > 0) {
|
|
1176
|
+
this.w58_1.s4z(joinToString(this.d59_1, '\n'));
|
|
1177
1177
|
}
|
|
1178
1178
|
|
|
1179
1179
|
this.h9_1 = 14;
|
|
1180
|
-
if (!(this.
|
|
1180
|
+
if (!(this.l59_1 == null)) {
|
|
1181
1181
|
this.g9_1 = 12;
|
|
1182
|
-
suspendResult = this.
|
|
1182
|
+
suspendResult = this.b59_1.m51(this.l59_1, this);
|
|
1183
1183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1184
1184
|
return suspendResult;
|
|
1185
1185
|
}
|
|
1186
1186
|
continue $sm;
|
|
1187
1187
|
} else {
|
|
1188
1188
|
this.g9_1 = 11;
|
|
1189
|
-
suspendResult = this.
|
|
1189
|
+
suspendResult = this.b59_1.n51(this);
|
|
1190
1190
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1191
1191
|
return suspendResult;
|
|
1192
1192
|
}
|
|
@@ -1194,15 +1194,15 @@
|
|
|
1194
1194
|
}
|
|
1195
1195
|
|
|
1196
1196
|
case 11:
|
|
1197
|
-
this.
|
|
1197
|
+
this.n59_1 = suspendResult;
|
|
1198
1198
|
this.g9_1 = 13;
|
|
1199
1199
|
continue $sm;
|
|
1200
1200
|
case 12:
|
|
1201
|
-
this.
|
|
1201
|
+
this.n59_1 = suspendResult;
|
|
1202
1202
|
this.g9_1 = 13;
|
|
1203
1203
|
continue $sm;
|
|
1204
1204
|
case 13:
|
|
1205
|
-
this.
|
|
1205
|
+
this.m59_1 = this.n59_1;
|
|
1206
1206
|
this.h9_1 = 16;
|
|
1207
1207
|
this.g9_1 = 15;
|
|
1208
1208
|
continue $sm;
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
if (tmp_5 instanceof Error) {
|
|
1213
1213
|
var cause = this.j9_1;
|
|
1214
1214
|
var tmp_6 = this;
|
|
1215
|
-
this.
|
|
1215
|
+
this.w58_1.s4z('<-- HTTP FAILED: ' + cause.toString());
|
|
1216
1216
|
throw cause;
|
|
1217
1217
|
} else {
|
|
1218
1218
|
throw this.j9_1;
|
|
@@ -1235,37 +1235,37 @@
|
|
|
1235
1235
|
}
|
|
1236
1236
|
while (true);
|
|
1237
1237
|
};
|
|
1238
|
-
protoOf(Logging$lambda$slambda).
|
|
1239
|
-
var i = new Logging$lambda$slambda(this.
|
|
1240
|
-
i.
|
|
1241
|
-
i.
|
|
1238
|
+
protoOf(Logging$lambda$slambda).p59 = function ($this$on, request, completion) {
|
|
1239
|
+
var i = new Logging$lambda$slambda(this.v58_1, this.w58_1, this.x58_1, this.y58_1, this.z58_1, this.a59_1, completion);
|
|
1240
|
+
i.b59_1 = $this$on;
|
|
1241
|
+
i.c59_1 = request;
|
|
1242
1242
|
return i;
|
|
1243
1243
|
};
|
|
1244
1244
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1245
1245
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1246
1246
|
var l = function ($this$on, request, $completion) {
|
|
1247
|
-
return i.
|
|
1247
|
+
return i.o59($this$on, request, $completion);
|
|
1248
1248
|
};
|
|
1249
1249
|
l.$arity = 2;
|
|
1250
1250
|
return l;
|
|
1251
1251
|
}
|
|
1252
1252
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1253
|
+
this.y59_1 = $okHttpFormat;
|
|
1254
|
+
this.z59_1 = $logger;
|
|
1255
|
+
this.a5a_1 = $sanitizedHeaders;
|
|
1256
|
+
this.b5a_1 = $level;
|
|
1257
|
+
this.c5a_1 = $this_createClientPlugin;
|
|
1258
1258
|
CoroutineImpl.call(this, resultContinuation);
|
|
1259
1259
|
}
|
|
1260
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1261
|
-
var tmp = this.
|
|
1260
|
+
protoOf(Logging$lambda$slambda_1).h5a = function ($this$on, response, $completion) {
|
|
1261
|
+
var tmp = this.i5a($this$on, response, $completion);
|
|
1262
1262
|
tmp.i9_1 = Unit_instance;
|
|
1263
1263
|
tmp.j9_1 = null;
|
|
1264
1264
|
return tmp.o9();
|
|
1265
1265
|
};
|
|
1266
1266
|
protoOf(Logging$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
1267
1267
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1268
|
-
return this.
|
|
1268
|
+
return this.h5a(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1269
1269
|
};
|
|
1270
1270
|
protoOf(Logging$lambda$slambda_1).o9 = function () {
|
|
1271
1271
|
var suspendResult = this.i9_1;
|
|
@@ -1275,11 +1275,11 @@
|
|
|
1275
1275
|
switch (tmp) {
|
|
1276
1276
|
case 0:
|
|
1277
1277
|
this.h9_1 = 5;
|
|
1278
|
-
if (this.
|
|
1278
|
+
if (this.y59_1) {
|
|
1279
1279
|
var tmp_0 = this;
|
|
1280
|
-
tmp_0.
|
|
1280
|
+
tmp_0.f5a_1 = ArrayList_init_$Create$();
|
|
1281
1281
|
this.g9_1 = 1;
|
|
1282
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1282
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.a5a_1, this.b5a_1, this.c5a_1, this.e5a_1, this.f5a_1, this);
|
|
1283
1283
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1284
1284
|
return suspendResult;
|
|
1285
1285
|
}
|
|
@@ -1290,14 +1290,14 @@
|
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
case 1:
|
|
1293
|
-
this.
|
|
1294
|
-
if (this.
|
|
1295
|
-
this.
|
|
1293
|
+
this.g5a_1 = suspendResult;
|
|
1294
|
+
if (this.f5a_1.s() > 0) {
|
|
1295
|
+
this.z59_1.s4z(joinToString(this.f5a_1, '\n'));
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
|
-
if (!equals(this.
|
|
1298
|
+
if (!equals(this.g5a_1, this.e5a_1)) {
|
|
1299
1299
|
this.g9_1 = 2;
|
|
1300
|
-
suspendResult = this.
|
|
1300
|
+
suspendResult = this.d5a_1.i4e(this.g5a_1, this);
|
|
1301
1301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1302
1302
|
return suspendResult;
|
|
1303
1303
|
}
|
|
@@ -1329,35 +1329,35 @@
|
|
|
1329
1329
|
}
|
|
1330
1330
|
while (true);
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1333
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1334
|
-
i.
|
|
1335
|
-
i.
|
|
1332
|
+
protoOf(Logging$lambda$slambda_1).i5a = function ($this$on, response, completion) {
|
|
1333
|
+
var i = new Logging$lambda$slambda_1(this.y59_1, this.z59_1, this.a5a_1, this.b5a_1, this.c5a_1, completion);
|
|
1334
|
+
i.d5a_1 = $this$on;
|
|
1335
|
+
i.e5a_1 = response;
|
|
1336
1336
|
return i;
|
|
1337
1337
|
};
|
|
1338
1338
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1339
1339
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1340
1340
|
var l = function ($this$on, response, $completion) {
|
|
1341
|
-
return i.
|
|
1341
|
+
return i.h5a($this$on, response, $completion);
|
|
1342
1342
|
};
|
|
1343
1343
|
l.$arity = 2;
|
|
1344
1344
|
return l;
|
|
1345
1345
|
}
|
|
1346
1346
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1347
|
+
this.r5a_1 = $okHttpFormat;
|
|
1348
|
+
this.s5a_1 = $level;
|
|
1349
|
+
this.t5a_1 = $sanitizedHeaders;
|
|
1350
1350
|
CoroutineImpl.call(this, resultContinuation);
|
|
1351
1351
|
}
|
|
1352
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1353
|
-
var tmp = this.
|
|
1352
|
+
protoOf(Logging$lambda$slambda_3).d5b = function ($this$on, response, $completion) {
|
|
1353
|
+
var tmp = this.e5b($this$on, response, $completion);
|
|
1354
1354
|
tmp.i9_1 = Unit_instance;
|
|
1355
1355
|
tmp.j9_1 = null;
|
|
1356
1356
|
return tmp.o9();
|
|
1357
1357
|
};
|
|
1358
1358
|
protoOf(Logging$lambda$slambda_3).da = function (p1, p2, $completion) {
|
|
1359
1359
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1360
|
-
return this.
|
|
1360
|
+
return this.d5b(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1361
1361
|
};
|
|
1362
1362
|
protoOf(Logging$lambda$slambda_3).o9 = function () {
|
|
1363
1363
|
var suspendResult = this.i9_1;
|
|
@@ -1367,28 +1367,28 @@
|
|
|
1367
1367
|
switch (tmp) {
|
|
1368
1368
|
case 0:
|
|
1369
1369
|
this.h9_1 = 10;
|
|
1370
|
-
if (this.
|
|
1370
|
+
if (this.r5a_1)
|
|
1371
1371
|
return Unit_instance;
|
|
1372
|
-
if (this.
|
|
1372
|
+
if (this.s5a_1.equals(LogLevel_NONE_getInstance()) || this.v5a_1.c3l().c3j().p2j(get_DisableLogging()))
|
|
1373
1373
|
return Unit_instance;
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1374
|
+
this.w5a_1 = this.v5a_1.c3l().c3j().n2j(get_ClientCallLogger());
|
|
1375
|
+
this.x5a_1 = StringBuilder_init_$Create$();
|
|
1376
|
+
this.y5a_1 = false;
|
|
1377
1377
|
this.g9_1 = 1;
|
|
1378
1378
|
continue $sm;
|
|
1379
1379
|
case 1:
|
|
1380
1380
|
this.h9_1 = 4;
|
|
1381
1381
|
this.h9_1 = 3;
|
|
1382
|
-
logResponseHeader(this.
|
|
1382
|
+
logResponseHeader(this.x5a_1, this.v5a_1.c3l().u3g(), this.s5a_1, this.t5a_1);
|
|
1383
1383
|
this.g9_1 = 2;
|
|
1384
|
-
suspendResult = this.
|
|
1384
|
+
suspendResult = this.u5a_1.o52(this);
|
|
1385
1385
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1386
1386
|
return suspendResult;
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
1389
|
continue $sm;
|
|
1390
1390
|
case 2:
|
|
1391
|
-
this.
|
|
1391
|
+
this.z5a_1 = suspendResult;
|
|
1392
1392
|
this.h9_1 = 10;
|
|
1393
1393
|
this.g9_1 = 7;
|
|
1394
1394
|
continue $sm;
|
|
@@ -1396,22 +1396,22 @@
|
|
|
1396
1396
|
this.h9_1 = 4;
|
|
1397
1397
|
var tmp_0 = this.j9_1;
|
|
1398
1398
|
if (tmp_0 instanceof Error) {
|
|
1399
|
-
this.
|
|
1399
|
+
this.a5b_1 = this.j9_1;
|
|
1400
1400
|
var tmp_1 = this;
|
|
1401
|
-
invoke$logResponseException(this.
|
|
1402
|
-
this.
|
|
1403
|
-
throw this.
|
|
1401
|
+
invoke$logResponseException(this.s5a_1, this.x5a_1, this.v5a_1.c3l().d3k(), this.a5b_1);
|
|
1402
|
+
this.y5a_1 = true;
|
|
1403
|
+
throw this.a5b_1;
|
|
1404
1404
|
} else {
|
|
1405
1405
|
throw this.j9_1;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
case 4:
|
|
1409
1409
|
this.h9_1 = 10;
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
if (this.
|
|
1410
|
+
this.b5b_1 = this.j9_1;
|
|
1411
|
+
this.w5a_1.n50(this.x5a_1.toString());
|
|
1412
|
+
if (this.y5a_1 || !this.s5a_1.w50_1) {
|
|
1413
1413
|
this.g9_1 = 5;
|
|
1414
|
-
suspendResult = this.
|
|
1414
|
+
suspendResult = this.w5a_1.r50(this);
|
|
1415
1415
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1416
1416
|
return suspendResult;
|
|
1417
1417
|
}
|
|
@@ -1425,14 +1425,14 @@
|
|
|
1425
1425
|
this.g9_1 = 6;
|
|
1426
1426
|
continue $sm;
|
|
1427
1427
|
case 6:
|
|
1428
|
-
throw this.
|
|
1428
|
+
throw this.b5b_1;
|
|
1429
1429
|
case 7:
|
|
1430
|
-
this.
|
|
1430
|
+
this.c5b_1 = this.z5a_1;
|
|
1431
1431
|
this.h9_1 = 10;
|
|
1432
|
-
this.
|
|
1433
|
-
if (this.
|
|
1432
|
+
this.w5a_1.n50(this.x5a_1.toString());
|
|
1433
|
+
if (this.y5a_1 || !this.s5a_1.w50_1) {
|
|
1434
1434
|
this.g9_1 = 8;
|
|
1435
|
-
suspendResult = this.
|
|
1435
|
+
suspendResult = this.w5a_1.r50(this);
|
|
1436
1436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1437
1437
|
return suspendResult;
|
|
1438
1438
|
}
|
|
@@ -1461,34 +1461,34 @@
|
|
|
1461
1461
|
}
|
|
1462
1462
|
while (true);
|
|
1463
1463
|
};
|
|
1464
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1465
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1466
|
-
i.
|
|
1467
|
-
i.
|
|
1464
|
+
protoOf(Logging$lambda$slambda_3).e5b = function ($this$on, response, completion) {
|
|
1465
|
+
var i = new Logging$lambda$slambda_3(this.r5a_1, this.s5a_1, this.t5a_1, completion);
|
|
1466
|
+
i.u5a_1 = $this$on;
|
|
1467
|
+
i.v5a_1 = response;
|
|
1468
1468
|
return i;
|
|
1469
1469
|
};
|
|
1470
1470
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1471
1471
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1472
1472
|
var l = function ($this$on, response, $completion) {
|
|
1473
|
-
return i.
|
|
1473
|
+
return i.d5b($this$on, response, $completion);
|
|
1474
1474
|
};
|
|
1475
1475
|
l.$arity = 2;
|
|
1476
1476
|
return l;
|
|
1477
1477
|
}
|
|
1478
1478
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1479
|
+
this.n5b_1 = $okHttpFormat;
|
|
1480
|
+
this.o5b_1 = $level;
|
|
1481
1481
|
CoroutineImpl.call(this, resultContinuation);
|
|
1482
1482
|
}
|
|
1483
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1484
|
-
var tmp = this.
|
|
1483
|
+
protoOf(Logging$lambda$slambda_5).v5b = function ($this$on, call, $completion) {
|
|
1484
|
+
var tmp = this.w5b($this$on, call, $completion);
|
|
1485
1485
|
tmp.i9_1 = Unit_instance;
|
|
1486
1486
|
tmp.j9_1 = null;
|
|
1487
1487
|
return tmp.o9();
|
|
1488
1488
|
};
|
|
1489
1489
|
protoOf(Logging$lambda$slambda_5).da = function (p1, p2, $completion) {
|
|
1490
1490
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1491
|
-
return this.
|
|
1491
|
+
return this.v5b(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1492
1492
|
};
|
|
1493
1493
|
protoOf(Logging$lambda$slambda_5).o9 = function () {
|
|
1494
1494
|
var suspendResult = this.i9_1;
|
|
@@ -1498,22 +1498,22 @@
|
|
|
1498
1498
|
switch (tmp) {
|
|
1499
1499
|
case 0:
|
|
1500
1500
|
this.h9_1 = 6;
|
|
1501
|
-
if (this.
|
|
1501
|
+
if (this.n5b_1)
|
|
1502
1502
|
return Unit_instance;
|
|
1503
|
-
if (this.
|
|
1503
|
+
if (this.o5b_1.equals(LogLevel_NONE_getInstance()) || this.q5b_1.c3j().p2j(get_DisableLogging())) {
|
|
1504
1504
|
return Unit_instance;
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
this.h9_1 = 2;
|
|
1508
1508
|
this.g9_1 = 1;
|
|
1509
|
-
suspendResult = this.
|
|
1509
|
+
suspendResult = this.p5b_1.c53(this);
|
|
1510
1510
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1511
1511
|
return suspendResult;
|
|
1512
1512
|
}
|
|
1513
1513
|
|
|
1514
1514
|
continue $sm;
|
|
1515
1515
|
case 1:
|
|
1516
|
-
this.
|
|
1516
|
+
this.r5b_1 = suspendResult;
|
|
1517
1517
|
this.h9_1 = 6;
|
|
1518
1518
|
this.g9_1 = 5;
|
|
1519
1519
|
continue $sm;
|
|
@@ -1521,12 +1521,12 @@
|
|
|
1521
1521
|
this.h9_1 = 6;
|
|
1522
1522
|
var tmp_0 = this.j9_1;
|
|
1523
1523
|
if (tmp_0 instanceof Error) {
|
|
1524
|
-
this.
|
|
1525
|
-
this.
|
|
1526
|
-
this.
|
|
1527
|
-
invoke$logResponseException(this.
|
|
1524
|
+
this.s5b_1 = this.j9_1;
|
|
1525
|
+
this.t5b_1 = StringBuilder_init_$Create$();
|
|
1526
|
+
this.u5b_1 = this.q5b_1.c3j().n2j(get_ClientCallLogger());
|
|
1527
|
+
invoke$logResponseException(this.o5b_1, this.t5b_1, this.q5b_1.d3k(), this.s5b_1);
|
|
1528
1528
|
this.g9_1 = 3;
|
|
1529
|
-
suspendResult = this.
|
|
1529
|
+
suspendResult = this.u5b_1.o50(this.t5b_1.toString(), this);
|
|
1530
1530
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1531
1531
|
return suspendResult;
|
|
1532
1532
|
}
|
|
@@ -1537,7 +1537,7 @@
|
|
|
1537
1537
|
|
|
1538
1538
|
case 3:
|
|
1539
1539
|
this.g9_1 = 4;
|
|
1540
|
-
suspendResult = this.
|
|
1540
|
+
suspendResult = this.u5b_1.r50(this);
|
|
1541
1541
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1542
1542
|
return suspendResult;
|
|
1543
1543
|
}
|
|
@@ -1545,7 +1545,7 @@
|
|
|
1545
1545
|
continue $sm;
|
|
1546
1546
|
case 4:
|
|
1547
1547
|
var tmp_1 = this;
|
|
1548
|
-
throw this.
|
|
1548
|
+
throw this.s5b_1;
|
|
1549
1549
|
case 5:
|
|
1550
1550
|
this.h9_1 = 6;
|
|
1551
1551
|
return Unit_instance;
|
|
@@ -1563,32 +1563,32 @@
|
|
|
1563
1563
|
}
|
|
1564
1564
|
while (true);
|
|
1565
1565
|
};
|
|
1566
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1567
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1568
|
-
i.
|
|
1569
|
-
i.
|
|
1566
|
+
protoOf(Logging$lambda$slambda_5).w5b = function ($this$on, call, completion) {
|
|
1567
|
+
var i = new Logging$lambda$slambda_5(this.n5b_1, this.o5b_1, completion);
|
|
1568
|
+
i.p5b_1 = $this$on;
|
|
1569
|
+
i.q5b_1 = call;
|
|
1570
1570
|
return i;
|
|
1571
1571
|
};
|
|
1572
1572
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1573
1573
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1574
1574
|
var l = function ($this$on, call, $completion) {
|
|
1575
|
-
return i.
|
|
1575
|
+
return i.v5b($this$on, call, $completion);
|
|
1576
1576
|
};
|
|
1577
1577
|
l.$arity = 2;
|
|
1578
1578
|
return l;
|
|
1579
1579
|
}
|
|
1580
1580
|
function Logging$lambda$slambda_7($level, resultContinuation) {
|
|
1581
|
-
this.
|
|
1581
|
+
this.f5c_1 = $level;
|
|
1582
1582
|
CoroutineImpl.call(this, resultContinuation);
|
|
1583
1583
|
}
|
|
1584
|
-
protoOf(Logging$lambda$slambda_7).
|
|
1585
|
-
var tmp = this.
|
|
1584
|
+
protoOf(Logging$lambda$slambda_7).u3s = function (it, $completion) {
|
|
1585
|
+
var tmp = this.d3r(it, $completion);
|
|
1586
1586
|
tmp.i9_1 = Unit_instance;
|
|
1587
1587
|
tmp.j9_1 = null;
|
|
1588
1588
|
return tmp.o9();
|
|
1589
1589
|
};
|
|
1590
1590
|
protoOf(Logging$lambda$slambda_7).ca = function (p1, $completion) {
|
|
1591
|
-
return this.
|
|
1591
|
+
return this.u3s(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1592
1592
|
};
|
|
1593
1593
|
protoOf(Logging$lambda$slambda_7).o9 = function () {
|
|
1594
1594
|
var suspendResult = this.i9_1;
|
|
@@ -1598,26 +1598,26 @@
|
|
|
1598
1598
|
switch (tmp) {
|
|
1599
1599
|
case 0:
|
|
1600
1600
|
this.h9_1 = 10;
|
|
1601
|
-
if (this.
|
|
1601
|
+
if (this.f5c_1.equals(LogLevel_NONE_getInstance()) || this.g5c_1.c3l().c3j().p2j(get_DisableLogging())) {
|
|
1602
1602
|
return Unit_instance;
|
|
1603
1603
|
}
|
|
1604
1604
|
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1605
|
+
this.h5c_1 = this.g5c_1.c3l().c3j().n2j(get_ClientCallLogger());
|
|
1606
|
+
this.i5c_1 = StringBuilder_init_$Create$();
|
|
1607
1607
|
this.g9_1 = 1;
|
|
1608
1608
|
continue $sm;
|
|
1609
1609
|
case 1:
|
|
1610
1610
|
this.h9_1 = 4;
|
|
1611
1611
|
this.h9_1 = 3;
|
|
1612
1612
|
this.g9_1 = 2;
|
|
1613
|
-
suspendResult = logResponseBody(this.
|
|
1613
|
+
suspendResult = logResponseBody(this.i5c_1, contentType(this.g5c_1), this.g5c_1.e3k(), this);
|
|
1614
1614
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1615
1615
|
return suspendResult;
|
|
1616
1616
|
}
|
|
1617
1617
|
|
|
1618
1618
|
continue $sm;
|
|
1619
1619
|
case 2:
|
|
1620
|
-
this.
|
|
1620
|
+
this.j5c_1 = suspendResult;
|
|
1621
1621
|
this.h9_1 = 10;
|
|
1622
1622
|
this.g9_1 = 7;
|
|
1623
1623
|
continue $sm;
|
|
@@ -1625,9 +1625,9 @@
|
|
|
1625
1625
|
this.h9_1 = 4;
|
|
1626
1626
|
var tmp_0 = this.j9_1;
|
|
1627
1627
|
if (tmp_0 instanceof Error) {
|
|
1628
|
-
this.
|
|
1628
|
+
this.k5c_1 = this.j9_1;
|
|
1629
1629
|
var tmp_1 = this;
|
|
1630
|
-
tmp_1.
|
|
1630
|
+
tmp_1.j5c_1 = Unit_instance;
|
|
1631
1631
|
this.h9_1 = 10;
|
|
1632
1632
|
this.g9_1 = 7;
|
|
1633
1633
|
continue $sm;
|
|
@@ -1637,10 +1637,10 @@
|
|
|
1637
1637
|
|
|
1638
1638
|
case 4:
|
|
1639
1639
|
this.h9_1 = 10;
|
|
1640
|
-
this.
|
|
1640
|
+
this.l5c_1 = this.j9_1;
|
|
1641
1641
|
this.g9_1 = 5;
|
|
1642
|
-
var this_0 = this.
|
|
1643
|
-
suspendResult = this.
|
|
1642
|
+
var this_0 = this.i5c_1.toString();
|
|
1643
|
+
suspendResult = this.h5c_1.p50(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1644
1644
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1645
1645
|
return suspendResult;
|
|
1646
1646
|
}
|
|
@@ -1648,19 +1648,19 @@
|
|
|
1648
1648
|
continue $sm;
|
|
1649
1649
|
case 5:
|
|
1650
1650
|
this.g9_1 = 6;
|
|
1651
|
-
suspendResult = this.
|
|
1651
|
+
suspendResult = this.h5c_1.r50(this);
|
|
1652
1652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1653
1653
|
return suspendResult;
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
1656
1656
|
continue $sm;
|
|
1657
1657
|
case 6:
|
|
1658
|
-
throw this.
|
|
1658
|
+
throw this.l5c_1;
|
|
1659
1659
|
case 7:
|
|
1660
1660
|
this.h9_1 = 10;
|
|
1661
1661
|
this.g9_1 = 8;
|
|
1662
|
-
var this_1 = this.
|
|
1663
|
-
suspendResult = this.
|
|
1662
|
+
var this_1 = this.i5c_1.toString();
|
|
1663
|
+
suspendResult = this.h5c_1.p50(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1664
1664
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1665
1665
|
return suspendResult;
|
|
1666
1666
|
}
|
|
@@ -1668,7 +1668,7 @@
|
|
|
1668
1668
|
continue $sm;
|
|
1669
1669
|
case 8:
|
|
1670
1670
|
this.g9_1 = 9;
|
|
1671
|
-
suspendResult = this.
|
|
1671
|
+
suspendResult = this.h5c_1.r50(this);
|
|
1672
1672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1673
|
return suspendResult;
|
|
1674
1674
|
}
|
|
@@ -1690,40 +1690,40 @@
|
|
|
1690
1690
|
}
|
|
1691
1691
|
while (true);
|
|
1692
1692
|
};
|
|
1693
|
-
protoOf(Logging$lambda$slambda_7).
|
|
1694
|
-
var i = new Logging$lambda$slambda_7(this.
|
|
1695
|
-
i.
|
|
1693
|
+
protoOf(Logging$lambda$slambda_7).d3r = function (it, completion) {
|
|
1694
|
+
var i = new Logging$lambda$slambda_7(this.f5c_1, completion);
|
|
1695
|
+
i.g5c_1 = it;
|
|
1696
1696
|
return i;
|
|
1697
1697
|
};
|
|
1698
1698
|
function Logging$lambda$slambda_8($level, resultContinuation) {
|
|
1699
1699
|
var i = new Logging$lambda$slambda_7($level, resultContinuation);
|
|
1700
1700
|
var l = function (it, $completion) {
|
|
1701
|
-
return i.
|
|
1701
|
+
return i.u3s(it, $completion);
|
|
1702
1702
|
};
|
|
1703
1703
|
l.$arity = 1;
|
|
1704
1704
|
return l;
|
|
1705
1705
|
}
|
|
1706
1706
|
function Logging$lambda$lambda($observer) {
|
|
1707
1707
|
return function ($this$prepare) {
|
|
1708
|
-
$this$prepare.
|
|
1708
|
+
$this$prepare.g4e($observer);
|
|
1709
1709
|
return Unit_instance;
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
1712
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1713
|
-
this.
|
|
1714
|
-
this.
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1713
|
+
this.u5c_1 = $channel;
|
|
1714
|
+
this.v5c_1 = $firstChunk;
|
|
1715
|
+
this.w5c_1 = $firstReadSize;
|
|
1716
|
+
this.x5c_1 = $body;
|
|
1717
1717
|
CoroutineImpl.call(this, resultContinuation);
|
|
1718
1718
|
}
|
|
1719
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1720
|
-
var tmp = this.
|
|
1719
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).a5d = function ($this$async, $completion) {
|
|
1720
|
+
var tmp = this.b1x($this$async, $completion);
|
|
1721
1721
|
tmp.i9_1 = Unit_instance;
|
|
1722
1722
|
tmp.j9_1 = null;
|
|
1723
1723
|
return tmp.o9();
|
|
1724
1724
|
};
|
|
1725
1725
|
protoOf(Logging$lambda$detectIfBinary$slambda).ca = function (p1, $completion) {
|
|
1726
|
-
return this.
|
|
1726
|
+
return this.a5d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1727
1727
|
};
|
|
1728
1728
|
protoOf(Logging$lambda$detectIfBinary$slambda).o9 = function () {
|
|
1729
1729
|
var suspendResult = this.i9_1;
|
|
@@ -1734,7 +1734,7 @@
|
|
|
1734
1734
|
case 0:
|
|
1735
1735
|
this.h9_1 = 4;
|
|
1736
1736
|
this.g9_1 = 1;
|
|
1737
|
-
suspendResult = writeFully(this.
|
|
1737
|
+
suspendResult = writeFully(this.u5c_1, this.v5c_1, 0, this.w5c_1, this);
|
|
1738
1738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1739
1739
|
return suspendResult;
|
|
1740
1740
|
}
|
|
@@ -1742,23 +1742,23 @@
|
|
|
1742
1742
|
continue $sm;
|
|
1743
1743
|
case 1:
|
|
1744
1744
|
this.g9_1 = 2;
|
|
1745
|
-
suspendResult = copyTo(this.
|
|
1745
|
+
suspendResult = copyTo(this.x5c_1, this.u5c_1, this);
|
|
1746
1746
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1747
1747
|
return suspendResult;
|
|
1748
1748
|
}
|
|
1749
1749
|
|
|
1750
1750
|
continue $sm;
|
|
1751
1751
|
case 2:
|
|
1752
|
-
this.
|
|
1752
|
+
this.z5c_1 = suspendResult;
|
|
1753
1753
|
this.g9_1 = 3;
|
|
1754
|
-
suspendResult = this.
|
|
1754
|
+
suspendResult = this.u5c_1.e1n(this);
|
|
1755
1755
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1756
1756
|
return suspendResult;
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
1759
|
continue $sm;
|
|
1760
1760
|
case 3:
|
|
1761
|
-
return this.
|
|
1761
|
+
return this.z5c_1;
|
|
1762
1762
|
case 4:
|
|
1763
1763
|
throw this.j9_1;
|
|
1764
1764
|
}
|
|
@@ -1773,15 +1773,15 @@
|
|
|
1773
1773
|
}
|
|
1774
1774
|
while (true);
|
|
1775
1775
|
};
|
|
1776
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1777
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
1778
|
-
i.
|
|
1776
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).b1x = function ($this$async, completion) {
|
|
1777
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.u5c_1, this.v5c_1, this.w5c_1, this.x5c_1, completion);
|
|
1778
|
+
i.y5c_1 = $this$async;
|
|
1779
1779
|
return i;
|
|
1780
1780
|
};
|
|
1781
1781
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1782
1782
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
1783
1783
|
var l = function ($this$async, $completion) {
|
|
1784
|
-
return i.
|
|
1784
|
+
return i.a5d($this$async, $completion);
|
|
1785
1785
|
};
|
|
1786
1786
|
l.$arity = 1;
|
|
1787
1787
|
return l;
|
|
@@ -1791,18 +1791,18 @@
|
|
|
1791
1791
|
return it;
|
|
1792
1792
|
}
|
|
1793
1793
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1794
|
+
this.j5d_1 = $content;
|
|
1795
|
+
this.k5d_1 = $channel;
|
|
1796
1796
|
CoroutineImpl.call(this, resultContinuation);
|
|
1797
1797
|
}
|
|
1798
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1799
|
-
var tmp = this.
|
|
1798
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).a1x = function ($this$launch, $completion) {
|
|
1799
|
+
var tmp = this.b1x($this$launch, $completion);
|
|
1800
1800
|
tmp.i9_1 = Unit_instance;
|
|
1801
1801
|
tmp.j9_1 = null;
|
|
1802
1802
|
return tmp.o9();
|
|
1803
1803
|
};
|
|
1804
1804
|
protoOf(Logging$lambda$logOutgoingContent$slambda).ca = function (p1, $completion) {
|
|
1805
|
-
return this.
|
|
1805
|
+
return this.a1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1806
1806
|
};
|
|
1807
1807
|
protoOf(Logging$lambda$logOutgoingContent$slambda).o9 = function () {
|
|
1808
1808
|
var suspendResult = this.i9_1;
|
|
@@ -1813,14 +1813,14 @@
|
|
|
1813
1813
|
case 0:
|
|
1814
1814
|
this.h9_1 = 2;
|
|
1815
1815
|
this.g9_1 = 1;
|
|
1816
|
-
suspendResult = this.
|
|
1816
|
+
suspendResult = this.j5d_1.f35(this.k5d_1, this);
|
|
1817
1817
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1818
1818
|
return suspendResult;
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
1821
|
continue $sm;
|
|
1822
1822
|
case 1:
|
|
1823
|
-
this.
|
|
1823
|
+
this.k5d_1.p4();
|
|
1824
1824
|
return Unit_instance;
|
|
1825
1825
|
case 2:
|
|
1826
1826
|
throw this.j9_1;
|
|
@@ -1836,38 +1836,38 @@
|
|
|
1836
1836
|
}
|
|
1837
1837
|
while (true);
|
|
1838
1838
|
};
|
|
1839
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1840
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1841
|
-
i.
|
|
1839
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).b1x = function ($this$launch, completion) {
|
|
1840
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.j5d_1, this.k5d_1, completion);
|
|
1841
|
+
i.l5d_1 = $this$launch;
|
|
1842
1842
|
return i;
|
|
1843
1843
|
};
|
|
1844
1844
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1845
1845
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1846
1846
|
var l = function ($this$launch, $completion) {
|
|
1847
|
-
return i.
|
|
1847
|
+
return i.a1x($this$launch, $completion);
|
|
1848
1848
|
};
|
|
1849
1849
|
l.$arity = 1;
|
|
1850
1850
|
return l;
|
|
1851
1851
|
}
|
|
1852
1852
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1853
1853
|
_init_properties_Logging_kt__66pui5();
|
|
1854
|
-
return GZipEncoder_getInstance().
|
|
1854
|
+
return GZipEncoder_getInstance().g2n(channel);
|
|
1855
1855
|
}
|
|
1856
1856
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1857
|
+
this.u5d_1 = $channel;
|
|
1858
|
+
this.v5d_1 = $charset;
|
|
1859
|
+
this.w5d_1 = $requestLog;
|
|
1860
|
+
this.x5d_1 = $logger;
|
|
1861
1861
|
CoroutineImpl.call(this, resultContinuation);
|
|
1862
1862
|
}
|
|
1863
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1864
|
-
var tmp = this.
|
|
1863
|
+
protoOf(Logging$lambda$logRequestBody$slambda).a1x = function ($this$launch, $completion) {
|
|
1864
|
+
var tmp = this.b1x($this$launch, $completion);
|
|
1865
1865
|
tmp.i9_1 = Unit_instance;
|
|
1866
1866
|
tmp.j9_1 = null;
|
|
1867
1867
|
return tmp.o9();
|
|
1868
1868
|
};
|
|
1869
1869
|
protoOf(Logging$lambda$logRequestBody$slambda).ca = function (p1, $completion) {
|
|
1870
|
-
return this.
|
|
1870
|
+
return this.a1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1871
1871
|
};
|
|
1872
1872
|
protoOf(Logging$lambda$logRequestBody$slambda).o9 = function () {
|
|
1873
1873
|
var suspendResult = this.i9_1;
|
|
@@ -1882,14 +1882,14 @@
|
|
|
1882
1882
|
case 1:
|
|
1883
1883
|
this.h9_1 = 6;
|
|
1884
1884
|
var tmp_0 = this;
|
|
1885
|
-
tmp_0.
|
|
1885
|
+
tmp_0.a5e_1 = this.u5d_1;
|
|
1886
1886
|
var tmp_1 = this;
|
|
1887
|
-
tmp_1.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1887
|
+
tmp_1.b5e_1 = this.v5d_1;
|
|
1888
|
+
this.c5e_1 = this.a5e_1;
|
|
1889
|
+
this.d5e_1 = this.b5e_1;
|
|
1890
1890
|
this.h9_1 = 3;
|
|
1891
1891
|
this.g9_1 = 2;
|
|
1892
|
-
suspendResult = readRemaining(this.
|
|
1892
|
+
suspendResult = readRemaining(this.c5e_1, this);
|
|
1893
1893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
1894
|
return suspendResult;
|
|
1895
1895
|
}
|
|
@@ -1897,7 +1897,7 @@
|
|
|
1897
1897
|
continue $sm;
|
|
1898
1898
|
case 2:
|
|
1899
1899
|
var ARGUMENT = suspendResult;
|
|
1900
|
-
this.
|
|
1900
|
+
this.e5e_1 = readText(ARGUMENT, this.d5e_1);
|
|
1901
1901
|
this.h9_1 = 6;
|
|
1902
1902
|
this.g9_1 = 4;
|
|
1903
1903
|
continue $sm;
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
if (tmp_2 instanceof Error) {
|
|
1908
1908
|
var cause = this.j9_1;
|
|
1909
1909
|
var tmp_3 = this;
|
|
1910
|
-
tmp_3.
|
|
1910
|
+
tmp_3.e5e_1 = null;
|
|
1911
1911
|
this.g9_1 = 4;
|
|
1912
1912
|
continue $sm;
|
|
1913
1913
|
} else {
|
|
@@ -1916,27 +1916,27 @@
|
|
|
1916
1916
|
|
|
1917
1917
|
case 4:
|
|
1918
1918
|
this.h9_1 = 6;
|
|
1919
|
-
var tmp0_elvis_lhs = this.
|
|
1919
|
+
var tmp0_elvis_lhs = this.e5e_1;
|
|
1920
1920
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1921
|
-
var tmp2 = this.
|
|
1921
|
+
var tmp2 = this.w5d_1;
|
|
1922
1922
|
var value = 'BODY START';
|
|
1923
1923
|
tmp2.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1924
|
+
this.w5d_1.r8(text).s8(_Char___init__impl__6a9atx(10));
|
|
1925
|
+
this.z5d_1 = this.w5d_1.r8('BODY END');
|
|
1926
1926
|
this.h9_1 = 7;
|
|
1927
1927
|
this.g9_1 = 5;
|
|
1928
1928
|
continue $sm;
|
|
1929
1929
|
case 5:
|
|
1930
|
-
this.
|
|
1930
|
+
this.z5d_1;
|
|
1931
1931
|
this.h9_1 = 7;
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1932
|
+
this.x5d_1.m50(this.w5d_1.toString());
|
|
1933
|
+
this.x5d_1.q50();
|
|
1934
1934
|
return Unit_instance;
|
|
1935
1935
|
case 6:
|
|
1936
1936
|
this.h9_1 = 7;
|
|
1937
1937
|
var t = this.j9_1;
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1938
|
+
this.x5d_1.m50(this.w5d_1.toString());
|
|
1939
|
+
this.x5d_1.q50();
|
|
1940
1940
|
throw t;
|
|
1941
1941
|
case 7:
|
|
1942
1942
|
throw this.j9_1;
|
|
@@ -1952,26 +1952,26 @@
|
|
|
1952
1952
|
}
|
|
1953
1953
|
while (true);
|
|
1954
1954
|
};
|
|
1955
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1956
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1957
|
-
i.
|
|
1955
|
+
protoOf(Logging$lambda$logRequestBody$slambda).b1x = function ($this$launch, completion) {
|
|
1956
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.u5d_1, this.v5d_1, this.w5d_1, this.x5d_1, completion);
|
|
1957
|
+
i.y5d_1 = $this$launch;
|
|
1958
1958
|
return i;
|
|
1959
1959
|
};
|
|
1960
1960
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1961
1961
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1962
1962
|
var l = function ($this$launch, $completion) {
|
|
1963
|
-
return i.
|
|
1963
|
+
return i.a1x($this$launch, $completion);
|
|
1964
1964
|
};
|
|
1965
1965
|
l.$arity = 1;
|
|
1966
1966
|
return l;
|
|
1967
1967
|
}
|
|
1968
1968
|
function $invoke$detectIfBinaryCOROUTINE$3($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1969
1969
|
CoroutineImpl.call(this, resultContinuation);
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
this.
|
|
1973
|
-
this.
|
|
1974
|
-
this.
|
|
1970
|
+
this.x53_1 = $this_createClientPlugin;
|
|
1971
|
+
this.y53_1 = body;
|
|
1972
|
+
this.z53_1 = contentLength;
|
|
1973
|
+
this.a54_1 = contentType;
|
|
1974
|
+
this.b54_1 = headers;
|
|
1975
1975
|
}
|
|
1976
1976
|
protoOf($invoke$detectIfBinaryCOROUTINE$3).o9 = function () {
|
|
1977
1977
|
var suspendResult = this.i9_1;
|
|
@@ -1981,67 +1981,67 @@
|
|
|
1981
1981
|
switch (tmp) {
|
|
1982
1982
|
case 0:
|
|
1983
1983
|
this.h9_1 = 4;
|
|
1984
|
-
if (this.
|
|
1985
|
-
return new Triple(true, this.
|
|
1984
|
+
if (this.b54_1.w2n(HttpHeaders_getInstance().m2v_1)) {
|
|
1985
|
+
return new Triple(true, this.z53_1, this.y53_1);
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
1988
|
var tmp_0 = this;
|
|
1989
1989
|
var tmp_1;
|
|
1990
|
-
if (!(this.
|
|
1991
|
-
var tmp0_elvis_lhs = charset(this.
|
|
1992
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
1990
|
+
if (!(this.a54_1 == null)) {
|
|
1991
|
+
var tmp0_elvis_lhs = charset(this.a54_1);
|
|
1992
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp0_elvis_lhs;
|
|
1993
1993
|
} else {
|
|
1994
|
-
tmp_1 = Charsets_getInstance().
|
|
1994
|
+
tmp_1 = Charsets_getInstance().v1x_1;
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
|
-
tmp_0.
|
|
1998
|
-
this.
|
|
1999
|
-
this.
|
|
1997
|
+
tmp_0.c54_1 = tmp_1;
|
|
1998
|
+
this.d54_1 = false;
|
|
1999
|
+
this.e54_1 = new Int8Array(1024);
|
|
2000
2000
|
this.g9_1 = 1;
|
|
2001
|
-
suspendResult = readAvailable(this.
|
|
2001
|
+
suspendResult = readAvailable(this.y53_1, this.e54_1, VOID, VOID, this);
|
|
2002
2002
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2003
2003
|
return suspendResult;
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
2006
|
continue $sm;
|
|
2007
2007
|
case 1:
|
|
2008
|
-
this.
|
|
2009
|
-
if (this.
|
|
2010
|
-
return new Triple(false, new Long(0, 0), this.
|
|
2008
|
+
this.f54_1 = suspendResult;
|
|
2009
|
+
if (this.f54_1 < 1) {
|
|
2010
|
+
return new Triple(false, new Long(0, 0), this.y53_1);
|
|
2011
2011
|
}
|
|
2012
2012
|
|
|
2013
2013
|
var tmp_2 = this;
|
|
2014
2014
|
var this_0 = new Buffer();
|
|
2015
|
-
writeFully_0(this_0, this.
|
|
2016
|
-
tmp_2.
|
|
2017
|
-
this.
|
|
2018
|
-
this.
|
|
2019
|
-
var indexedObject = this.
|
|
2015
|
+
writeFully_0(this_0, this.e54_1, 0, this.f54_1);
|
|
2016
|
+
tmp_2.g54_1 = this_0;
|
|
2017
|
+
this.h54_1 = decode(this.c54_1.z1x(), this.g54_1, this.f54_1);
|
|
2018
|
+
this.i54_1 = -1;
|
|
2019
|
+
var indexedObject = this.h54_1;
|
|
2020
2020
|
var inductionVariable = 0;
|
|
2021
2021
|
var last = indexedObject.length;
|
|
2022
2022
|
while (inductionVariable < last) {
|
|
2023
2023
|
var ch = charSequenceGet(indexedObject, inductionVariable);
|
|
2024
2024
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2025
|
-
this.
|
|
2025
|
+
this.i54_1 = this.i54_1 + 1 | 0;
|
|
2026
2026
|
}
|
|
2027
2027
|
|
|
2028
|
-
var indexedObject_0 = this.
|
|
2028
|
+
var indexedObject_0 = this.h54_1;
|
|
2029
2029
|
var inductionVariable_0 = 0;
|
|
2030
2030
|
var last_0 = indexedObject_0.length;
|
|
2031
2031
|
$l$loop: while (inductionVariable_0 < last_0) {
|
|
2032
2032
|
var i = inductionVariable_0;
|
|
2033
2033
|
var ch_0 = charSequenceGet(indexedObject_0, inductionVariable_0);
|
|
2034
2034
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2035
|
-
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === this.
|
|
2036
|
-
this.
|
|
2035
|
+
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === this.i54_1)) {
|
|
2036
|
+
this.d54_1 = true;
|
|
2037
2037
|
break $l$loop;
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
|
|
2041
|
-
if (!this.
|
|
2042
|
-
this.
|
|
2041
|
+
if (!this.d54_1) {
|
|
2042
|
+
this.j54_1 = new ByteChannel();
|
|
2043
2043
|
this.g9_1 = 3;
|
|
2044
|
-
suspendResult = async(this.
|
|
2044
|
+
suspendResult = async(this.x53_1.c3q_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.j54_1, this.e54_1, this.f54_1, this.y53_1, null)).vt(this);
|
|
2045
2045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2046
2046
|
return suspendResult;
|
|
2047
2047
|
}
|
|
@@ -2052,12 +2052,12 @@
|
|
|
2052
2052
|
}
|
|
2053
2053
|
|
|
2054
2054
|
case 2:
|
|
2055
|
-
return new Triple(this.
|
|
2055
|
+
return new Triple(this.d54_1, this.z53_1, this.y53_1);
|
|
2056
2056
|
case 3:
|
|
2057
2057
|
var copied = suspendResult;
|
|
2058
|
-
var tmp_3 = this.
|
|
2059
|
-
var other = this.
|
|
2060
|
-
return new Triple(tmp_3, copied.z2(toLong(other)), this.
|
|
2058
|
+
var tmp_3 = this.d54_1;
|
|
2059
|
+
var other = this.f54_1;
|
|
2060
|
+
return new Triple(tmp_3, copied.z2(toLong(other)), this.j54_1);
|
|
2061
2061
|
case 4:
|
|
2062
2062
|
throw this.j9_1;
|
|
2063
2063
|
}
|
|
@@ -2074,13 +2074,13 @@
|
|
|
2074
2074
|
};
|
|
2075
2075
|
function $invoke$logRequestBodyCOROUTINE$4($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2076
2076
|
CoroutineImpl.call(this, resultContinuation);
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
2079
|
-
this.
|
|
2080
|
-
this.
|
|
2081
|
-
this.
|
|
2082
|
-
this.
|
|
2083
|
-
this.
|
|
2077
|
+
this.s54_1 = $this_createClientPlugin;
|
|
2078
|
+
this.t54_1 = content;
|
|
2079
|
+
this.u54_1 = contentLength;
|
|
2080
|
+
this.v54_1 = headers;
|
|
2081
|
+
this.w54_1 = method;
|
|
2082
|
+
this.x54_1 = logLines;
|
|
2083
|
+
this.y54_1 = body;
|
|
2084
2084
|
}
|
|
2085
2085
|
protoOf($invoke$logRequestBodyCOROUTINE$4).o9 = function () {
|
|
2086
2086
|
var suspendResult = this.i9_1;
|
|
@@ -2091,30 +2091,30 @@
|
|
|
2091
2091
|
case 0:
|
|
2092
2092
|
this.h9_1 = 4;
|
|
2093
2093
|
this.g9_1 = 1;
|
|
2094
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2094
|
+
suspendResult = invoke$detectIfBinary(this.s54_1, this.y54_1, this.u54_1, this.t54_1.x34(), this.v54_1, this);
|
|
2095
2095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2096
2096
|
return suspendResult;
|
|
2097
2097
|
}
|
|
2098
2098
|
|
|
2099
2099
|
continue $sm;
|
|
2100
2100
|
case 1:
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2103
|
-
this.
|
|
2104
|
-
this.
|
|
2105
|
-
if (!this.
|
|
2106
|
-
this.
|
|
2101
|
+
this.z54_1 = suspendResult;
|
|
2102
|
+
this.a55_1 = this.z54_1.tg();
|
|
2103
|
+
this.b55_1 = this.z54_1.ug();
|
|
2104
|
+
this.c55_1 = this.z54_1.tl();
|
|
2105
|
+
if (!this.a55_1) {
|
|
2106
|
+
this.e55_1 = this.t54_1.x34();
|
|
2107
2107
|
var tmp_0 = this;
|
|
2108
2108
|
var tmp_1;
|
|
2109
|
-
if (!(this.
|
|
2110
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2111
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2109
|
+
if (!(this.e55_1 == null)) {
|
|
2110
|
+
var tmp0_elvis_lhs = charset(this.e55_1);
|
|
2111
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp0_elvis_lhs;
|
|
2112
2112
|
} else {
|
|
2113
|
-
tmp_1 = Charsets_getInstance().
|
|
2113
|
+
tmp_1 = Charsets_getInstance().v1x_1;
|
|
2114
2114
|
}
|
|
2115
|
-
tmp_0.
|
|
2115
|
+
tmp_0.f55_1 = tmp_1;
|
|
2116
2116
|
this.g9_1 = 2;
|
|
2117
|
-
suspendResult = readRemaining(this.
|
|
2117
|
+
suspendResult = readRemaining(this.c55_1, this);
|
|
2118
2118
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2119
2119
|
return suspendResult;
|
|
2120
2120
|
}
|
|
@@ -2122,25 +2122,25 @@
|
|
|
2122
2122
|
} else {
|
|
2123
2123
|
var tmp_2 = this;
|
|
2124
2124
|
var type = 'binary';
|
|
2125
|
-
if (this.
|
|
2125
|
+
if (this.v54_1.w2n(HttpHeaders_getInstance().m2v_1)) {
|
|
2126
2126
|
type = 'encoded';
|
|
2127
2127
|
}
|
|
2128
2128
|
var tmp_3;
|
|
2129
|
-
if (!(this.
|
|
2130
|
-
tmp_3 = this.
|
|
2129
|
+
if (!(this.b55_1 == null)) {
|
|
2130
|
+
tmp_3 = this.x54_1.k('--> END ' + this.w54_1.l2z_1 + ' (' + type + ' ' + toString_0(this.b55_1) + '-byte body omitted)');
|
|
2131
2131
|
} else {
|
|
2132
|
-
tmp_3 = this.
|
|
2132
|
+
tmp_3 = this.x54_1.k('--> END ' + this.w54_1.l2z_1 + ' (' + type + ' body omitted)');
|
|
2133
2133
|
}
|
|
2134
|
-
tmp_2.
|
|
2134
|
+
tmp_2.d55_1 = tmp_3;
|
|
2135
2135
|
this.g9_1 = 3;
|
|
2136
2136
|
continue $sm;
|
|
2137
2137
|
}
|
|
2138
2138
|
|
|
2139
2139
|
case 2:
|
|
2140
2140
|
var ARGUMENT = suspendResult;
|
|
2141
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2142
|
-
this.
|
|
2143
|
-
this.
|
|
2141
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.f55_1);
|
|
2142
|
+
this.x54_1.k(ARGUMENT_0);
|
|
2143
|
+
this.d55_1 = this.x54_1.k('--> END ' + this.w54_1.l2z_1 + ' (' + toString_0(this.b55_1) + '-byte body)');
|
|
2144
2144
|
this.g9_1 = 3;
|
|
2145
2145
|
continue $sm;
|
|
2146
2146
|
case 3:
|
|
@@ -2161,12 +2161,12 @@
|
|
|
2161
2161
|
};
|
|
2162
2162
|
function $invoke$logOutgoingContentCOROUTINE$5($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2163
2163
|
CoroutineImpl.call(this, resultContinuation);
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2164
|
+
this.o55_1 = $this_createClientPlugin;
|
|
2165
|
+
this.p55_1 = content;
|
|
2166
|
+
this.q55_1 = method;
|
|
2167
|
+
this.r55_1 = headers;
|
|
2168
|
+
this.s55_1 = logLines;
|
|
2169
|
+
this.t55_1 = process;
|
|
2170
2170
|
}
|
|
2171
2171
|
protoOf($invoke$logOutgoingContentCOROUTINE$5).o9 = function () {
|
|
2172
2172
|
var suspendResult = this.i9_1;
|
|
@@ -2176,63 +2176,63 @@
|
|
|
2176
2176
|
switch (tmp) {
|
|
2177
2177
|
case 0:
|
|
2178
2178
|
this.h9_1 = 6;
|
|
2179
|
-
this.
|
|
2180
|
-
var tmp_0 = this.
|
|
2179
|
+
this.u55_1 = this.p55_1;
|
|
2180
|
+
var tmp_0 = this.u55_1;
|
|
2181
2181
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
2182
|
-
this.
|
|
2182
|
+
this.w55_1 = this.p55_1.a35();
|
|
2183
2183
|
this.g9_1 = 4;
|
|
2184
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2184
|
+
suspendResult = invoke$logRequestBody(this.o55_1, this.p55_1, toLong(this.w55_1.length), this.r55_1, this.q55_1, this.s55_1, ByteReadChannel(this.w55_1), this);
|
|
2185
2185
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2186
2186
|
return suspendResult;
|
|
2187
2187
|
}
|
|
2188
2188
|
continue $sm;
|
|
2189
2189
|
} else {
|
|
2190
|
-
var tmp_1 = this.
|
|
2190
|
+
var tmp_1 = this.u55_1;
|
|
2191
2191
|
if (tmp_1 instanceof ContentWrapper) {
|
|
2192
2192
|
this.g9_1 = 3;
|
|
2193
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2193
|
+
suspendResult = invoke$logOutgoingContent(this.o55_1, this.p55_1.j35(), this.q55_1, this.r55_1, this.s55_1, this.t55_1, this);
|
|
2194
2194
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2195
2195
|
return suspendResult;
|
|
2196
2196
|
}
|
|
2197
2197
|
continue $sm;
|
|
2198
2198
|
} else {
|
|
2199
|
-
var tmp_2 = this.
|
|
2199
|
+
var tmp_2 = this.u55_1;
|
|
2200
2200
|
if (tmp_2 instanceof NoContent) {
|
|
2201
2201
|
var tmp_3 = this;
|
|
2202
|
-
this.
|
|
2203
|
-
tmp_3.
|
|
2202
|
+
this.s55_1.k('--> END ' + this.q55_1.l2z_1);
|
|
2203
|
+
tmp_3.v55_1 = null;
|
|
2204
2204
|
this.g9_1 = 5;
|
|
2205
2205
|
continue $sm;
|
|
2206
2206
|
} else {
|
|
2207
|
-
var tmp_4 = this.
|
|
2207
|
+
var tmp_4 = this.u55_1;
|
|
2208
2208
|
if (tmp_4 instanceof ProtocolUpgrade) {
|
|
2209
2209
|
var tmp_5 = this;
|
|
2210
|
-
this.
|
|
2211
|
-
tmp_5.
|
|
2210
|
+
this.s55_1.k('--> END ' + this.q55_1.l2z_1);
|
|
2211
|
+
tmp_5.v55_1 = null;
|
|
2212
2212
|
this.g9_1 = 5;
|
|
2213
2213
|
continue $sm;
|
|
2214
2214
|
} else {
|
|
2215
|
-
var tmp_6 = this.
|
|
2215
|
+
var tmp_6 = this.u55_1;
|
|
2216
2216
|
if (tmp_6 instanceof ReadChannelContent) {
|
|
2217
|
-
this.
|
|
2218
|
-
this.
|
|
2219
|
-
this.
|
|
2217
|
+
this.x55_1 = split(this.p55_1.d35(), this.o55_1.c3q_1);
|
|
2218
|
+
this.y55_1 = this.x55_1.tg();
|
|
2219
|
+
this.z55_1 = this.x55_1.ug();
|
|
2220
2220
|
this.g9_1 = 2;
|
|
2221
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2221
|
+
suspendResult = invoke$logRequestBody(this.o55_1, this.p55_1, this.p55_1.z34(), this.r55_1, this.q55_1, this.s55_1, this.z55_1, this);
|
|
2222
2222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2223
2223
|
return suspendResult;
|
|
2224
2224
|
}
|
|
2225
2225
|
continue $sm;
|
|
2226
2226
|
} else {
|
|
2227
|
-
var tmp_7 = this.
|
|
2227
|
+
var tmp_7 = this.u55_1;
|
|
2228
2228
|
if (tmp_7 instanceof WriteChannelContent) {
|
|
2229
|
-
this.
|
|
2230
|
-
launch(this.
|
|
2231
|
-
this.
|
|
2232
|
-
this.
|
|
2233
|
-
this.
|
|
2229
|
+
this.a56_1 = new ByteChannel();
|
|
2230
|
+
launch(this.o55_1.c3q_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.p55_1, this.a56_1, null));
|
|
2231
|
+
this.b56_1 = split(this.a56_1, this.o55_1.c3q_1);
|
|
2232
|
+
this.c56_1 = this.b56_1.tg();
|
|
2233
|
+
this.d56_1 = this.b56_1.ug();
|
|
2234
2234
|
this.g9_1 = 1;
|
|
2235
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2235
|
+
suspendResult = invoke$logRequestBody(this.o55_1, this.p55_1, this.p55_1.z34(), this.r55_1, this.q55_1, this.s55_1, this.d56_1, this);
|
|
2236
2236
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2237
2237
|
return suspendResult;
|
|
2238
2238
|
}
|
|
@@ -2249,23 +2249,23 @@
|
|
|
2249
2249
|
|
|
2250
2250
|
break;
|
|
2251
2251
|
case 1:
|
|
2252
|
-
this.
|
|
2252
|
+
this.v55_1 = new LoggedContent(this.p55_1, this.c56_1);
|
|
2253
2253
|
this.g9_1 = 5;
|
|
2254
2254
|
continue $sm;
|
|
2255
2255
|
case 2:
|
|
2256
|
-
this.
|
|
2256
|
+
this.v55_1 = new LoggedContent(this.p55_1, this.y55_1);
|
|
2257
2257
|
this.g9_1 = 5;
|
|
2258
2258
|
continue $sm;
|
|
2259
2259
|
case 3:
|
|
2260
|
-
this.
|
|
2260
|
+
this.v55_1 = suspendResult;
|
|
2261
2261
|
this.g9_1 = 5;
|
|
2262
2262
|
continue $sm;
|
|
2263
2263
|
case 4:
|
|
2264
|
-
this.
|
|
2264
|
+
this.v55_1 = null;
|
|
2265
2265
|
this.g9_1 = 5;
|
|
2266
2266
|
continue $sm;
|
|
2267
2267
|
case 5:
|
|
2268
|
-
return this.
|
|
2268
|
+
return this.v55_1;
|
|
2269
2269
|
case 6:
|
|
2270
2270
|
throw this.j9_1;
|
|
2271
2271
|
}
|
|
@@ -2282,11 +2282,11 @@
|
|
|
2282
2282
|
};
|
|
2283
2283
|
function $invoke$logRequestOkHttpFormatCOROUTINE$6(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2284
2284
|
CoroutineImpl.call(this, resultContinuation);
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2285
|
+
this.m56_1 = sanitizedHeaders;
|
|
2286
|
+
this.n56_1 = level;
|
|
2287
|
+
this.o56_1 = $this_createClientPlugin;
|
|
2288
|
+
this.p56_1 = request;
|
|
2289
|
+
this.q56_1 = logLines;
|
|
2290
2290
|
}
|
|
2291
2291
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$6).o9 = function () {
|
|
2292
2292
|
var suspendResult = this.i9_1;
|
|
@@ -2296,98 +2296,98 @@
|
|
|
2296
2296
|
switch (tmp) {
|
|
2297
2297
|
case 0:
|
|
2298
2298
|
this.h9_1 = 4;
|
|
2299
|
-
if (invoke$isNone(this.
|
|
2299
|
+
if (invoke$isNone(this.n56_1))
|
|
2300
2300
|
return null;
|
|
2301
|
-
this.
|
|
2302
|
-
this.
|
|
2301
|
+
this.r56_1 = pathQuery(takeFrom(new URLBuilder(), this.p56_1.u3h_1).y2u());
|
|
2302
|
+
this.s56_1 = this.p56_1.x3h_1;
|
|
2303
2303
|
var tmp_0 = this;
|
|
2304
2304
|
var this_0 = new HeadersBuilder();
|
|
2305
2305
|
var tmp_1;
|
|
2306
2306
|
var tmp_2;
|
|
2307
2307
|
var tmp_3;
|
|
2308
|
-
var tmp_4 = this.
|
|
2308
|
+
var tmp_4 = this.s56_1;
|
|
2309
2309
|
if (tmp_4 instanceof OutgoingContent) {
|
|
2310
|
-
tmp_3 = !this.
|
|
2310
|
+
tmp_3 = !this.p56_1.v3h_1.equals(Companion_getInstance().d2z_1);
|
|
2311
2311
|
} else {
|
|
2312
2312
|
tmp_3 = false;
|
|
2313
2313
|
}
|
|
2314
2314
|
|
|
2315
2315
|
if (tmp_3) {
|
|
2316
|
-
tmp_2 = !this.
|
|
2316
|
+
tmp_2 = !this.p56_1.v3h_1.equals(Companion_getInstance().i2z_1);
|
|
2317
2317
|
} else {
|
|
2318
2318
|
tmp_2 = false;
|
|
2319
2319
|
}
|
|
2320
2320
|
|
|
2321
2321
|
if (tmp_2) {
|
|
2322
|
-
var tmp_5 = this.
|
|
2322
|
+
var tmp_5 = this.s56_1;
|
|
2323
2323
|
tmp_1 = !(tmp_5 instanceof EmptyContent);
|
|
2324
2324
|
} else {
|
|
2325
2325
|
tmp_1 = false;
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
2328
|
if (tmp_1) {
|
|
2329
|
-
var tmp0_safe_receiver = this.
|
|
2329
|
+
var tmp0_safe_receiver = this.s56_1.x34();
|
|
2330
2330
|
if (tmp0_safe_receiver == null)
|
|
2331
2331
|
null;
|
|
2332
2332
|
else {
|
|
2333
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2333
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().r2v_1, tmp0_safe_receiver.toString());
|
|
2334
2334
|
}
|
|
2335
|
-
var tmp1_safe_receiver = this.
|
|
2335
|
+
var tmp1_safe_receiver = this.s56_1.z34();
|
|
2336
2336
|
if (tmp1_safe_receiver == null)
|
|
2337
2337
|
null;
|
|
2338
2338
|
else {
|
|
2339
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2339
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().o2v_1, tmp1_safe_receiver.toString());
|
|
2340
2340
|
}
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
|
-
appendAll(this_0, this.
|
|
2344
|
-
tmp_0.
|
|
2343
|
+
appendAll(this_0, this.p56_1.w3h_1);
|
|
2344
|
+
tmp_0.t56_1 = this_0.y2u();
|
|
2345
2345
|
var tmp_6 = this;
|
|
2346
|
-
var tmp0_safe_receiver_0 = this.
|
|
2347
|
-
tmp_6.
|
|
2346
|
+
var tmp0_safe_receiver_0 = this.t56_1.m2m(HttpHeaders_getInstance().o2v_1);
|
|
2347
|
+
tmp_6.u56_1 = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2348
2348
|
var tmp_7 = this;
|
|
2349
2349
|
var tmp_8;
|
|
2350
|
-
if (this.
|
|
2351
|
-
tmp_8 = '--> ' + this.
|
|
2350
|
+
if (this.p56_1.v3h_1.equals(Companion_getInstance().d2z_1) || this.p56_1.v3h_1.equals(Companion_getInstance().i2z_1) || ((invoke$isHeaders(this.n56_1) || invoke$isBody(this.n56_1)) && !(this.u56_1 == null)) || (invoke$isHeaders(this.n56_1) && this.u56_1 == null) || this.t56_1.w2n(HttpHeaders_getInstance().m2v_1)) {
|
|
2351
|
+
tmp_8 = '--> ' + this.p56_1.v3h_1.l2z_1 + ' ' + this.r56_1;
|
|
2352
2352
|
} else {
|
|
2353
|
-
if (invoke$isInfo(this.
|
|
2354
|
-
tmp_8 = '--> ' + this.
|
|
2353
|
+
if (invoke$isInfo(this.n56_1) && !(this.u56_1 == null)) {
|
|
2354
|
+
tmp_8 = '--> ' + this.p56_1.v3h_1.l2z_1 + ' ' + this.r56_1 + ' (' + toString_0(this.u56_1) + '-byte body)';
|
|
2355
2355
|
} else {
|
|
2356
2356
|
var tmp_9;
|
|
2357
|
-
var tmp_10 = this.
|
|
2357
|
+
var tmp_10 = this.s56_1;
|
|
2358
2358
|
if (tmp_10 instanceof WriteChannelContent) {
|
|
2359
2359
|
tmp_9 = true;
|
|
2360
2360
|
} else {
|
|
2361
|
-
var tmp_11 = this.
|
|
2361
|
+
var tmp_11 = this.s56_1;
|
|
2362
2362
|
tmp_9 = tmp_11 instanceof ReadChannelContent;
|
|
2363
2363
|
}
|
|
2364
2364
|
if (tmp_9) {
|
|
2365
|
-
tmp_8 = '--> ' + this.
|
|
2365
|
+
tmp_8 = '--> ' + this.p56_1.v3h_1.l2z_1 + ' ' + this.r56_1 + ' (unknown-byte body)';
|
|
2366
2366
|
} else {
|
|
2367
|
-
var size = computeRequestBodySize(this.
|
|
2368
|
-
tmp_8 = '--> ' + this.
|
|
2367
|
+
var size = computeRequestBodySize(this.p56_1.x3h_1);
|
|
2368
|
+
tmp_8 = '--> ' + this.p56_1.v3h_1.l2z_1 + ' ' + this.r56_1 + ' (' + size.toString() + '-byte body)';
|
|
2369
2369
|
}
|
|
2370
2370
|
}
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
|
-
tmp_7.
|
|
2374
|
-
this.
|
|
2375
|
-
if (!invoke$isHeaders(this.
|
|
2373
|
+
tmp_7.v56_1 = tmp_8;
|
|
2374
|
+
this.q56_1.k(this.v56_1);
|
|
2375
|
+
if (!invoke$isHeaders(this.n56_1) && !invoke$isBody(this.n56_1)) {
|
|
2376
2376
|
return null;
|
|
2377
2377
|
}
|
|
2378
2378
|
|
|
2379
|
-
var _iterator__ex2g4s = this.
|
|
2379
|
+
var _iterator__ex2g4s = this.t56_1.v2n().p();
|
|
2380
2380
|
while (_iterator__ex2g4s.q()) {
|
|
2381
2381
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2382
2382
|
var name = _destruct__k2r9zo.y();
|
|
2383
2383
|
var values = _destruct__k2r9zo.z();
|
|
2384
|
-
var tmp0 = this.
|
|
2384
|
+
var tmp0 = this.m56_1;
|
|
2385
2385
|
var tmp$ret$0 = Unit_instance;
|
|
2386
2386
|
l$ret$1: do {
|
|
2387
2387
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2388
2388
|
while (_iterator__ex2g4s_0.q()) {
|
|
2389
2389
|
var element = _iterator__ex2g4s_0.r();
|
|
2390
|
-
if (element.
|
|
2390
|
+
if (element.m58_1(name)) {
|
|
2391
2391
|
tmp$ret$0 = element;
|
|
2392
2392
|
break l$ret$1;
|
|
2393
2393
|
}
|
|
@@ -2396,35 +2396,35 @@
|
|
|
2396
2396
|
}
|
|
2397
2397
|
while (false);
|
|
2398
2398
|
if (tmp$ret$0 == null) {
|
|
2399
|
-
this.
|
|
2399
|
+
this.q56_1.k(name + ': ' + joinToString(values, ', '));
|
|
2400
2400
|
} else {
|
|
2401
|
-
this.
|
|
2401
|
+
this.q56_1.k(name + ': \u2588\u2588');
|
|
2402
2402
|
}
|
|
2403
2403
|
}
|
|
2404
2404
|
|
|
2405
|
-
if (!invoke$isBody(this.
|
|
2406
|
-
this.
|
|
2405
|
+
if (!invoke$isBody(this.n56_1) || this.p56_1.v3h_1.equals(Companion_getInstance().d2z_1) || this.p56_1.v3h_1.equals(Companion_getInstance().i2z_1)) {
|
|
2406
|
+
this.q56_1.k('--> END ' + this.p56_1.v3h_1.l2z_1);
|
|
2407
2407
|
return null;
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
|
-
this.
|
|
2411
|
-
var tmp_12 = this.
|
|
2410
|
+
this.q56_1.k('');
|
|
2411
|
+
var tmp_12 = this.s56_1;
|
|
2412
2412
|
if (!(tmp_12 instanceof OutgoingContent)) {
|
|
2413
|
-
this.
|
|
2413
|
+
this.q56_1.k('--> END ' + this.p56_1.v3h_1.l2z_1);
|
|
2414
2414
|
return null;
|
|
2415
2415
|
}
|
|
2416
2416
|
|
|
2417
|
-
if (this.
|
|
2417
|
+
if (this.p56_1.w3h_1.m2m(HttpHeaders_getInstance().m2v_1) === 'gzip') {
|
|
2418
2418
|
this.g9_1 = 2;
|
|
2419
|
-
var tmp_13 = this.
|
|
2420
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2419
|
+
var tmp_13 = this.p56_1.v3h_1;
|
|
2420
|
+
suspendResult = invoke$logOutgoingContent(this.o56_1, this.s56_1, tmp_13, this.t56_1, this.q56_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2421
2421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2422
2422
|
return suspendResult;
|
|
2423
2423
|
}
|
|
2424
2424
|
continue $sm;
|
|
2425
2425
|
} else {
|
|
2426
2426
|
this.g9_1 = 1;
|
|
2427
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2427
|
+
suspendResult = invoke$logOutgoingContent(this.o56_1, this.s56_1, this.p56_1.v3h_1, this.t56_1, this.q56_1, VOID, this);
|
|
2428
2428
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2429
2429
|
return suspendResult;
|
|
2430
2430
|
}
|
|
@@ -2432,15 +2432,15 @@
|
|
|
2432
2432
|
}
|
|
2433
2433
|
|
|
2434
2434
|
case 1:
|
|
2435
|
-
this.
|
|
2435
|
+
this.w56_1 = suspendResult;
|
|
2436
2436
|
this.g9_1 = 3;
|
|
2437
2437
|
continue $sm;
|
|
2438
2438
|
case 2:
|
|
2439
|
-
this.
|
|
2439
|
+
this.w56_1 = suspendResult;
|
|
2440
2440
|
this.g9_1 = 3;
|
|
2441
2441
|
continue $sm;
|
|
2442
2442
|
case 3:
|
|
2443
|
-
var newContent = this.
|
|
2443
|
+
var newContent = this.w56_1;
|
|
2444
2444
|
return newContent;
|
|
2445
2445
|
case 4:
|
|
2446
2446
|
throw this.j9_1;
|
|
@@ -2458,10 +2458,10 @@
|
|
|
2458
2458
|
};
|
|
2459
2459
|
function $invoke$logResponseBodyCOROUTINE$7($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2460
2460
|
CoroutineImpl.call(this, resultContinuation);
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2463
|
-
this.
|
|
2464
|
-
this.
|
|
2461
|
+
this.f57_1 = $this_createClientPlugin;
|
|
2462
|
+
this.g57_1 = response;
|
|
2463
|
+
this.h57_1 = body;
|
|
2464
|
+
this.i57_1 = logLines;
|
|
2465
2465
|
}
|
|
2466
2466
|
protoOf($invoke$logResponseBodyCOROUTINE$7).o9 = function () {
|
|
2467
2467
|
var suspendResult = this.i9_1;
|
|
@@ -2471,38 +2471,38 @@
|
|
|
2471
2471
|
switch (tmp) {
|
|
2472
2472
|
case 0:
|
|
2473
2473
|
this.h9_1 = 4;
|
|
2474
|
-
this.
|
|
2474
|
+
this.i57_1.k('');
|
|
2475
2475
|
this.g9_1 = 1;
|
|
2476
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2476
|
+
suspendResult = invoke$detectIfBinary(this.f57_1, this.h57_1, contentLength(this.g57_1), contentType(this.g57_1), this.g57_1.c2z(), this);
|
|
2477
2477
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2478
2478
|
return suspendResult;
|
|
2479
2479
|
}
|
|
2480
2480
|
|
|
2481
2481
|
continue $sm;
|
|
2482
2482
|
case 1:
|
|
2483
|
-
this.
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
-
if (equals(this.
|
|
2489
|
-
this.
|
|
2483
|
+
this.j57_1 = suspendResult;
|
|
2484
|
+
this.k57_1 = this.j57_1.tg();
|
|
2485
|
+
this.l57_1 = this.j57_1.ug();
|
|
2486
|
+
this.m57_1 = this.j57_1.tl();
|
|
2487
|
+
this.n57_1 = this.g57_1.n3l().d2p_1.a3(this.g57_1.m3l().d2p_1);
|
|
2488
|
+
if (equals(this.l57_1, new Long(0, 0))) {
|
|
2489
|
+
this.i57_1.k('<-- END HTTP (' + this.n57_1.toString() + 'ms, ' + toString_0(this.l57_1) + '-byte body)');
|
|
2490
2490
|
return Unit_instance;
|
|
2491
2491
|
}
|
|
2492
2492
|
|
|
2493
|
-
if (!this.
|
|
2494
|
-
this.
|
|
2493
|
+
if (!this.k57_1) {
|
|
2494
|
+
this.p57_1 = contentType(this.g57_1);
|
|
2495
2495
|
var tmp_0 = this;
|
|
2496
2496
|
var tmp_1;
|
|
2497
|
-
if (!(this.
|
|
2498
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2499
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2497
|
+
if (!(this.p57_1 == null)) {
|
|
2498
|
+
var tmp0_elvis_lhs = charset(this.p57_1);
|
|
2499
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp0_elvis_lhs;
|
|
2500
2500
|
} else {
|
|
2501
|
-
tmp_1 = Charsets_getInstance().
|
|
2501
|
+
tmp_1 = Charsets_getInstance().v1x_1;
|
|
2502
2502
|
}
|
|
2503
|
-
tmp_0.
|
|
2503
|
+
tmp_0.q57_1 = tmp_1;
|
|
2504
2504
|
this.g9_1 = 2;
|
|
2505
|
-
suspendResult = readRemaining(this.
|
|
2505
|
+
suspendResult = readRemaining(this.m57_1, this);
|
|
2506
2506
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2507
2507
|
return suspendResult;
|
|
2508
2508
|
}
|
|
@@ -2510,25 +2510,25 @@
|
|
|
2510
2510
|
} else {
|
|
2511
2511
|
var tmp_2 = this;
|
|
2512
2512
|
var type = 'binary';
|
|
2513
|
-
if (this.
|
|
2513
|
+
if (this.g57_1.c2z().w2n(HttpHeaders_getInstance().m2v_1)) {
|
|
2514
2514
|
type = 'encoded';
|
|
2515
2515
|
}
|
|
2516
2516
|
var tmp_3;
|
|
2517
|
-
if (!(this.
|
|
2518
|
-
tmp_3 = this.
|
|
2517
|
+
if (!(this.l57_1 == null)) {
|
|
2518
|
+
tmp_3 = this.i57_1.k('<-- END HTTP (' + this.n57_1.toString() + 'ms, ' + type + ' ' + toString_0(this.l57_1) + '-byte body omitted)');
|
|
2519
2519
|
} else {
|
|
2520
|
-
tmp_3 = this.
|
|
2520
|
+
tmp_3 = this.i57_1.k('<-- END HTTP (' + this.n57_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2521
2521
|
}
|
|
2522
|
-
tmp_2.
|
|
2522
|
+
tmp_2.o57_1 = tmp_3;
|
|
2523
2523
|
this.g9_1 = 3;
|
|
2524
2524
|
continue $sm;
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
2527
2527
|
case 2:
|
|
2528
2528
|
var ARGUMENT = suspendResult;
|
|
2529
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2529
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.q57_1);
|
|
2530
|
+
this.i57_1.k(ARGUMENT_0);
|
|
2531
|
+
this.o57_1 = this.i57_1.k('<-- END HTTP (' + this.n57_1.toString() + 'ms, ' + toString_0(this.l57_1) + '-byte body)');
|
|
2532
2532
|
this.g9_1 = 3;
|
|
2533
2533
|
continue $sm;
|
|
2534
2534
|
case 3:
|
|
@@ -2549,11 +2549,11 @@
|
|
|
2549
2549
|
};
|
|
2550
2550
|
function $invoke$logResponseOkHttpFormatCOROUTINE$8(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2551
2551
|
CoroutineImpl.call(this, resultContinuation);
|
|
2552
|
-
this.
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2555
|
-
this.
|
|
2556
|
-
this.
|
|
2552
|
+
this.z57_1 = sanitizedHeaders;
|
|
2553
|
+
this.a58_1 = level;
|
|
2554
|
+
this.b58_1 = $this_createClientPlugin;
|
|
2555
|
+
this.c58_1 = response;
|
|
2556
|
+
this.d58_1 = logLines;
|
|
2557
2557
|
}
|
|
2558
2558
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$8).o9 = function () {
|
|
2559
2559
|
var suspendResult = this.i9_1;
|
|
@@ -2563,31 +2563,31 @@
|
|
|
2563
2563
|
switch (tmp) {
|
|
2564
2564
|
case 0:
|
|
2565
2565
|
this.h9_1 = 4;
|
|
2566
|
-
if (invoke$isNone(this.
|
|
2567
|
-
return this.
|
|
2566
|
+
if (invoke$isNone(this.a58_1))
|
|
2567
|
+
return this.c58_1;
|
|
2568
2568
|
var tmp_0 = this;
|
|
2569
|
-
var tmp0_safe_receiver = this.
|
|
2570
|
-
tmp_0.
|
|
2571
|
-
this.
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2575
|
-
if (!invoke$isHeaders(this.
|
|
2576
|
-
return this.
|
|
2569
|
+
var tmp0_safe_receiver = this.c58_1.c2z().m2m(HttpHeaders_getInstance().o2v_1);
|
|
2570
|
+
tmp_0.e58_1 = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2571
|
+
this.f58_1 = get_request(this.c58_1);
|
|
2572
|
+
this.g58_1 = this.c58_1.n3l().d2p_1.a3(this.c58_1.m3l().d2p_1);
|
|
2573
|
+
this.h58_1 = this.c58_1.c2z().m2m(HttpHeaders_getInstance().v2x_1) === 'chunked' && (invoke$isInfo(this.a58_1) || invoke$isHeaders(this.a58_1)) ? '<-- ' + this.c58_1.y34().toString() + ' ' + pathQuery(this.f58_1.g3k()) + ' (' + this.g58_1.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.a58_1) && !(this.e58_1 == null) ? '<-- ' + this.c58_1.y34().toString() + ' ' + pathQuery(this.f58_1.g3k()) + ' (' + this.g58_1.toString() + 'ms, ' + toString_0(this.e58_1) + '-byte body)' : invoke$isBody(this.a58_1) || (invoke$isInfo(this.a58_1) && this.e58_1 == null) || (invoke$isHeaders(this.a58_1) && !(this.e58_1 == null)) || this.c58_1.c2z().m2m(HttpHeaders_getInstance().m2v_1) === 'gzip' ? '<-- ' + this.c58_1.y34().toString() + ' ' + pathQuery(this.f58_1.g3k()) + ' (' + this.g58_1.toString() + 'ms)' : '<-- ' + this.c58_1.y34().toString() + ' ' + pathQuery(this.f58_1.g3k()) + ' (' + this.g58_1.toString() + 'ms, unknown-byte body)';
|
|
2574
|
+
this.d58_1.k(this.h58_1);
|
|
2575
|
+
if (!invoke$isHeaders(this.a58_1) && !invoke$isBody(this.a58_1)) {
|
|
2576
|
+
return this.c58_1;
|
|
2577
2577
|
}
|
|
2578
2578
|
|
|
2579
|
-
var _iterator__ex2g4s = this.
|
|
2579
|
+
var _iterator__ex2g4s = this.c58_1.c2z().v2n().p();
|
|
2580
2580
|
while (_iterator__ex2g4s.q()) {
|
|
2581
2581
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2582
2582
|
var name = _destruct__k2r9zo.y();
|
|
2583
2583
|
var values = _destruct__k2r9zo.z();
|
|
2584
|
-
var tmp0 = this.
|
|
2584
|
+
var tmp0 = this.z57_1;
|
|
2585
2585
|
var tmp$ret$0 = Unit_instance;
|
|
2586
2586
|
l$ret$1: do {
|
|
2587
2587
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2588
2588
|
while (_iterator__ex2g4s_0.q()) {
|
|
2589
2589
|
var element = _iterator__ex2g4s_0.r();
|
|
2590
|
-
if (element.
|
|
2590
|
+
if (element.m58_1(name)) {
|
|
2591
2591
|
tmp$ret$0 = element;
|
|
2592
2592
|
break l$ret$1;
|
|
2593
2593
|
}
|
|
@@ -2596,30 +2596,30 @@
|
|
|
2596
2596
|
}
|
|
2597
2597
|
while (false);
|
|
2598
2598
|
if (tmp$ret$0 == null) {
|
|
2599
|
-
this.
|
|
2599
|
+
this.d58_1.k(name + ': ' + joinToString(values, ', '));
|
|
2600
2600
|
} else {
|
|
2601
|
-
this.
|
|
2601
|
+
this.d58_1.k(name + ': \u2588\u2588');
|
|
2602
2602
|
}
|
|
2603
2603
|
}
|
|
2604
2604
|
|
|
2605
|
-
if (!invoke$isBody(this.
|
|
2606
|
-
this.
|
|
2607
|
-
return this.
|
|
2605
|
+
if (!invoke$isBody(this.a58_1)) {
|
|
2606
|
+
this.d58_1.k('<-- END HTTP');
|
|
2607
|
+
return this.c58_1;
|
|
2608
2608
|
}
|
|
2609
2609
|
|
|
2610
|
-
if (!(this.
|
|
2611
|
-
this.
|
|
2612
|
-
return this.
|
|
2610
|
+
if (!(this.e58_1 == null) && equals(this.e58_1, new Long(0, 0))) {
|
|
2611
|
+
this.d58_1.k('<-- END HTTP (' + this.g58_1.toString() + 'ms, ' + toString_0(this.e58_1) + '-byte body)');
|
|
2612
|
+
return this.c58_1;
|
|
2613
2613
|
}
|
|
2614
2614
|
|
|
2615
|
-
if (equals(contentType(this.
|
|
2616
|
-
this.
|
|
2617
|
-
return this.
|
|
2615
|
+
if (equals(contentType(this.c58_1), Text_getInstance().m2u_1)) {
|
|
2616
|
+
this.d58_1.k('<-- END HTTP (streaming)');
|
|
2617
|
+
return this.c58_1;
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
|
-
if (get_isSaved(this.
|
|
2620
|
+
if (get_isSaved(this.c58_1)) {
|
|
2621
2621
|
this.g9_1 = 3;
|
|
2622
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2622
|
+
suspendResult = invoke$logResponseBody(this.b58_1, this.c58_1, this.c58_1.e3k(), this.d58_1, this);
|
|
2623
2623
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2624
2624
|
return suspendResult;
|
|
2625
2625
|
}
|
|
@@ -2630,21 +2630,21 @@
|
|
|
2630
2630
|
}
|
|
2631
2631
|
|
|
2632
2632
|
case 1:
|
|
2633
|
-
this.
|
|
2634
|
-
this.
|
|
2635
|
-
this.
|
|
2633
|
+
this.i58_1 = split(this.c58_1.e3k(), this.c58_1);
|
|
2634
|
+
this.j58_1 = this.i58_1.tg();
|
|
2635
|
+
this.k58_1 = this.i58_1.ug();
|
|
2636
2636
|
this.g9_1 = 2;
|
|
2637
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2637
|
+
suspendResult = invoke$logResponseBody(this.b58_1, this.c58_1, this.k58_1, this.d58_1, this);
|
|
2638
2638
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2639
2639
|
return suspendResult;
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
2642
|
continue $sm;
|
|
2643
2643
|
case 2:
|
|
2644
|
-
var call = wrapWithContent(this.
|
|
2645
|
-
return call.
|
|
2644
|
+
var call = wrapWithContent(this.c58_1.c3l(), this.j58_1);
|
|
2645
|
+
return call.u3g();
|
|
2646
2646
|
case 3:
|
|
2647
|
-
return this.
|
|
2647
|
+
return this.c58_1;
|
|
2648
2648
|
case 4:
|
|
2649
2649
|
throw this.j9_1;
|
|
2650
2650
|
}
|
|
@@ -2738,7 +2738,7 @@
|
|
|
2738
2738
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
2739
2739
|
while (_iterator__ex2g4s_0.q()) {
|
|
2740
2740
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
2741
|
-
if (element_0.
|
|
2741
|
+
if (element_0.m58_1(key)) {
|
|
2742
2742
|
tmp$ret$5 = element_0;
|
|
2743
2743
|
break $l$block;
|
|
2744
2744
|
}
|
|
@@ -2746,7 +2746,7 @@
|
|
|
2746
2746
|
tmp$ret$5 = null;
|
|
2747
2747
|
}
|
|
2748
2748
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2749
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2749
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l58_1;
|
|
2750
2750
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
@@ -2758,26 +2758,26 @@
|
|
|
2758
2758
|
}
|
|
2759
2759
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2760
2760
|
// Inline function 'kotlin.with' call
|
|
2761
|
-
if (level.
|
|
2761
|
+
if (level.u50_1) {
|
|
2762
2762
|
// Inline function 'kotlin.text.appendLine' call
|
|
2763
|
-
var value = 'RESPONSE: ' + response.
|
|
2763
|
+
var value = 'RESPONSE: ' + response.y34().toString();
|
|
2764
2764
|
// Inline function 'kotlin.text.appendLine' call
|
|
2765
2765
|
log.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
2766
2766
|
// Inline function 'kotlin.text.appendLine' call
|
|
2767
|
-
var value_0 = 'METHOD: ' + response.
|
|
2767
|
+
var value_0 = 'METHOD: ' + response.c3l().d3k().z3k().toString();
|
|
2768
2768
|
// Inline function 'kotlin.text.appendLine' call
|
|
2769
2769
|
log.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
2770
2770
|
// Inline function 'kotlin.text.appendLine' call
|
|
2771
|
-
var value_1 = 'FROM: ' + response.
|
|
2771
|
+
var value_1 = 'FROM: ' + response.c3l().d3k().g3k().toString();
|
|
2772
2772
|
// Inline function 'kotlin.text.appendLine' call
|
|
2773
2773
|
log.r8(value_1).s8(_Char___init__impl__6a9atx(10));
|
|
2774
2774
|
}
|
|
2775
|
-
if (level.
|
|
2775
|
+
if (level.v50_1) {
|
|
2776
2776
|
// Inline function 'kotlin.text.appendLine' call
|
|
2777
2777
|
var value_2 = 'COMMON HEADERS';
|
|
2778
2778
|
// Inline function 'kotlin.text.appendLine' call
|
|
2779
2779
|
log.r8(value_2).s8(_Char___init__impl__6a9atx(10));
|
|
2780
|
-
logHeaders(log, response.
|
|
2780
|
+
logHeaders(log, response.c2z().v2n(), sanitizedHeaders);
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
2783
|
function logResponseBody(log, contentType, content, $completion) {
|
|
@@ -2787,16 +2787,16 @@
|
|
|
2787
2787
|
return tmp.o9();
|
|
2788
2788
|
}
|
|
2789
2789
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2790
|
-
this.
|
|
2790
|
+
this.z5e_1 = function_0;
|
|
2791
2791
|
}
|
|
2792
2792
|
protoOf(sam$kotlin_Comparator$0).ne = function (a, b) {
|
|
2793
|
-
return this.
|
|
2793
|
+
return this.z5e_1(a, b);
|
|
2794
2794
|
};
|
|
2795
2795
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2796
2796
|
return this.ne(a, b);
|
|
2797
2797
|
};
|
|
2798
2798
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
2799
|
-
return this.
|
|
2799
|
+
return this.z5e_1;
|
|
2800
2800
|
};
|
|
2801
2801
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2802
2802
|
var tmp;
|
|
@@ -2824,9 +2824,9 @@
|
|
|
2824
2824
|
}
|
|
2825
2825
|
function $logResponseBodyCOROUTINE$10(log, contentType, content, resultContinuation) {
|
|
2826
2826
|
CoroutineImpl.call(this, resultContinuation);
|
|
2827
|
-
this.
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2827
|
+
this.n5e_1 = log;
|
|
2828
|
+
this.o5e_1 = contentType;
|
|
2829
|
+
this.p5e_1 = content;
|
|
2830
2830
|
}
|
|
2831
2831
|
protoOf($logResponseBodyCOROUTINE$10).o9 = function () {
|
|
2832
2832
|
var suspendResult = this.i9_1;
|
|
@@ -2837,28 +2837,28 @@
|
|
|
2837
2837
|
case 0:
|
|
2838
2838
|
this.h9_1 = 3;
|
|
2839
2839
|
var tmp_0 = this;
|
|
2840
|
-
tmp_0.
|
|
2841
|
-
this.
|
|
2840
|
+
tmp_0.q5e_1 = this.n5e_1;
|
|
2841
|
+
this.r5e_1 = this.q5e_1;
|
|
2842
2842
|
var tmp_1 = this;
|
|
2843
|
-
tmp_1.
|
|
2844
|
-
this.
|
|
2845
|
-
var tmp0 = this.
|
|
2846
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2843
|
+
tmp_1.s5e_1 = this.r5e_1;
|
|
2844
|
+
this.t5e_1 = this.s5e_1;
|
|
2845
|
+
var tmp0 = this.t5e_1;
|
|
2846
|
+
var value = 'BODY Content-Type: ' + toString_0(this.o5e_1);
|
|
2847
2847
|
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
2848
|
-
var tmp2 = this.
|
|
2848
|
+
var tmp2 = this.t5e_1;
|
|
2849
2849
|
var value_0 = 'BODY START';
|
|
2850
2850
|
tmp2.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
2851
2851
|
var tmp_2 = this;
|
|
2852
|
-
tmp_2.
|
|
2852
|
+
tmp_2.u5e_1 = this.p5e_1;
|
|
2853
2853
|
var tmp_3 = this;
|
|
2854
|
-
var tmp0_safe_receiver = this.
|
|
2854
|
+
var tmp0_safe_receiver = this.o5e_1;
|
|
2855
2855
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2856
|
-
tmp_3.
|
|
2857
|
-
this.
|
|
2858
|
-
this.
|
|
2856
|
+
tmp_3.v5e_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp1_elvis_lhs;
|
|
2857
|
+
this.w5e_1 = this.u5e_1;
|
|
2858
|
+
this.x5e_1 = this.v5e_1;
|
|
2859
2859
|
this.h9_1 = 2;
|
|
2860
2860
|
this.g9_1 = 1;
|
|
2861
|
-
suspendResult = readRemaining(this.
|
|
2861
|
+
suspendResult = readRemaining(this.w5e_1, this);
|
|
2862
2862
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2863
2863
|
return suspendResult;
|
|
2864
2864
|
}
|
|
@@ -2866,7 +2866,7 @@
|
|
|
2866
2866
|
continue $sm;
|
|
2867
2867
|
case 1:
|
|
2868
2868
|
var ARGUMENT = suspendResult;
|
|
2869
|
-
this.
|
|
2869
|
+
this.y5e_1 = readText(ARGUMENT, this.x5e_1);
|
|
2870
2870
|
this.h9_1 = 3;
|
|
2871
2871
|
this.g9_1 = 4;
|
|
2872
2872
|
continue $sm;
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
if (tmp_4 instanceof Error) {
|
|
2877
2877
|
var cause = this.j9_1;
|
|
2878
2878
|
var tmp_5 = this;
|
|
2879
|
-
tmp_5.
|
|
2879
|
+
tmp_5.y5e_1 = null;
|
|
2880
2880
|
this.g9_1 = 4;
|
|
2881
2881
|
continue $sm;
|
|
2882
2882
|
} else {
|
|
@@ -2887,10 +2887,10 @@
|
|
|
2887
2887
|
throw this.j9_1;
|
|
2888
2888
|
case 4:
|
|
2889
2889
|
this.h9_1 = 3;
|
|
2890
|
-
var tmp2_elvis_lhs = this.
|
|
2890
|
+
var tmp2_elvis_lhs = this.y5e_1;
|
|
2891
2891
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2892
|
+
this.t5e_1.r8(message).s8(_Char___init__impl__6a9atx(10));
|
|
2893
|
+
this.t5e_1.r8('BODY END');
|
|
2894
2894
|
return Unit_instance;
|
|
2895
2895
|
}
|
|
2896
2896
|
} catch ($p) {
|
|
@@ -2913,20 +2913,20 @@
|
|
|
2913
2913
|
function toReadChannel(_this__u8e3s4) {
|
|
2914
2914
|
var tmp = GlobalScope_instance;
|
|
2915
2915
|
var tmp_0 = Dispatchers_getInstance().y10_1;
|
|
2916
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
2916
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).g1v_1;
|
|
2917
2917
|
}
|
|
2918
2918
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2919
|
-
this.
|
|
2919
|
+
this.w5f_1 = $this_toReadChannel;
|
|
2920
2920
|
CoroutineImpl.call(this, resultContinuation);
|
|
2921
2921
|
}
|
|
2922
|
-
protoOf(toReadChannel$slambda).
|
|
2923
|
-
var tmp = this.
|
|
2922
|
+
protoOf(toReadChannel$slambda).f3a = function ($this$writer, $completion) {
|
|
2923
|
+
var tmp = this.g3a($this$writer, $completion);
|
|
2924
2924
|
tmp.i9_1 = Unit_instance;
|
|
2925
2925
|
tmp.j9_1 = null;
|
|
2926
2926
|
return tmp.o9();
|
|
2927
2927
|
};
|
|
2928
2928
|
protoOf(toReadChannel$slambda).ca = function (p1, $completion) {
|
|
2929
|
-
return this.
|
|
2929
|
+
return this.f3a(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
2930
2930
|
};
|
|
2931
2931
|
protoOf(toReadChannel$slambda).o9 = function () {
|
|
2932
2932
|
var suspendResult = this.i9_1;
|
|
@@ -2937,7 +2937,7 @@
|
|
|
2937
2937
|
case 0:
|
|
2938
2938
|
this.h9_1 = 2;
|
|
2939
2939
|
this.g9_1 = 1;
|
|
2940
|
-
suspendResult = this.
|
|
2940
|
+
suspendResult = this.w5f_1.f35(this.x5f_1.i1v_1, this);
|
|
2941
2941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2942
2942
|
return suspendResult;
|
|
2943
2943
|
}
|
|
@@ -2959,23 +2959,23 @@
|
|
|
2959
2959
|
}
|
|
2960
2960
|
while (true);
|
|
2961
2961
|
};
|
|
2962
|
-
protoOf(toReadChannel$slambda).
|
|
2963
|
-
var i = new toReadChannel$slambda(this.
|
|
2964
|
-
i.
|
|
2962
|
+
protoOf(toReadChannel$slambda).g3a = function ($this$writer, completion) {
|
|
2963
|
+
var i = new toReadChannel$slambda(this.w5f_1, completion);
|
|
2964
|
+
i.x5f_1 = $this$writer;
|
|
2965
2965
|
return i;
|
|
2966
2966
|
};
|
|
2967
2967
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
2968
2968
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
2969
2969
|
var l = function ($this$writer, $completion) {
|
|
2970
|
-
return i.
|
|
2970
|
+
return i.f3a($this$writer, $completion);
|
|
2971
2971
|
};
|
|
2972
2972
|
l.$arity = 1;
|
|
2973
2973
|
return l;
|
|
2974
2974
|
}
|
|
2975
2975
|
function $observeCOROUTINE$11(_this__u8e3s4, log, resultContinuation) {
|
|
2976
2976
|
CoroutineImpl.call(this, resultContinuation);
|
|
2977
|
-
this.
|
|
2978
|
-
this.
|
|
2977
|
+
this.i5f_1 = _this__u8e3s4;
|
|
2978
|
+
this.j5f_1 = log;
|
|
2979
2979
|
}
|
|
2980
2980
|
protoOf($observeCOROUTINE$11).o9 = function () {
|
|
2981
2981
|
var suspendResult = this.i9_1;
|
|
@@ -2985,57 +2985,57 @@
|
|
|
2985
2985
|
switch (tmp) {
|
|
2986
2986
|
case 0:
|
|
2987
2987
|
this.h9_1 = 6;
|
|
2988
|
-
this.
|
|
2989
|
-
var tmp_0 = this.
|
|
2988
|
+
this.k5f_1 = this.i5f_1;
|
|
2989
|
+
var tmp_0 = this.k5f_1;
|
|
2990
2990
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
2991
2991
|
this.g9_1 = 3;
|
|
2992
|
-
suspendResult = writeFully(this.
|
|
2992
|
+
suspendResult = writeFully(this.j5f_1, this.i5f_1.a35(), VOID, VOID, this);
|
|
2993
2993
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2994
2994
|
return suspendResult;
|
|
2995
2995
|
}
|
|
2996
2996
|
continue $sm;
|
|
2997
2997
|
} else {
|
|
2998
|
-
var tmp_1 = this.
|
|
2998
|
+
var tmp_1 = this.k5f_1;
|
|
2999
2999
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
3000
3000
|
var tmp_2 = this;
|
|
3001
3001
|
var responseChannel = new ByteChannel();
|
|
3002
|
-
var content = this.
|
|
3003
|
-
copyToBoth(content, this.
|
|
3004
|
-
tmp_2.
|
|
3002
|
+
var content = this.i5f_1.d35();
|
|
3003
|
+
copyToBoth(content, this.j5f_1, responseChannel);
|
|
3004
|
+
tmp_2.l5f_1 = new LoggedContent(this.i5f_1, responseChannel);
|
|
3005
3005
|
this.g9_1 = 5;
|
|
3006
3006
|
continue $sm;
|
|
3007
3007
|
} else {
|
|
3008
|
-
var tmp_3 = this.
|
|
3008
|
+
var tmp_3 = this.k5f_1;
|
|
3009
3009
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
3010
3010
|
var tmp_4 = this;
|
|
3011
3011
|
var responseChannel_0 = new ByteChannel();
|
|
3012
|
-
var content_0 = toReadChannel(this.
|
|
3013
|
-
copyToBoth(content_0, this.
|
|
3014
|
-
tmp_4.
|
|
3012
|
+
var content_0 = toReadChannel(this.i5f_1);
|
|
3013
|
+
copyToBoth(content_0, this.j5f_1, responseChannel_0);
|
|
3014
|
+
tmp_4.l5f_1 = new LoggedContent(this.i5f_1, responseChannel_0);
|
|
3015
3015
|
this.g9_1 = 5;
|
|
3016
3016
|
continue $sm;
|
|
3017
3017
|
} else {
|
|
3018
|
-
var tmp_5 = this.
|
|
3018
|
+
var tmp_5 = this.k5f_1;
|
|
3019
3019
|
if (tmp_5 instanceof ContentWrapper) {
|
|
3020
|
-
this.
|
|
3020
|
+
this.m5f_1 = this.i5f_1;
|
|
3021
3021
|
this.g9_1 = 2;
|
|
3022
|
-
suspendResult = observe(this.
|
|
3022
|
+
suspendResult = observe(this.i5f_1.j35(), this.j5f_1, this);
|
|
3023
3023
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3024
3024
|
return suspendResult;
|
|
3025
3025
|
}
|
|
3026
3026
|
continue $sm;
|
|
3027
3027
|
} else {
|
|
3028
3028
|
var tmp_6;
|
|
3029
|
-
var tmp_7 = this.
|
|
3029
|
+
var tmp_7 = this.k5f_1;
|
|
3030
3030
|
if (tmp_7 instanceof NoContent) {
|
|
3031
3031
|
tmp_6 = true;
|
|
3032
3032
|
} else {
|
|
3033
|
-
var tmp_8 = this.
|
|
3033
|
+
var tmp_8 = this.k5f_1;
|
|
3034
3034
|
tmp_6 = tmp_8 instanceof ProtocolUpgrade;
|
|
3035
3035
|
}
|
|
3036
3036
|
if (tmp_6) {
|
|
3037
3037
|
this.g9_1 = 1;
|
|
3038
|
-
suspendResult = this.
|
|
3038
|
+
suspendResult = this.j5f_1.e1n(this);
|
|
3039
3039
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3040
3040
|
return suspendResult;
|
|
3041
3041
|
}
|
|
@@ -3051,28 +3051,28 @@
|
|
|
3051
3051
|
|
|
3052
3052
|
break;
|
|
3053
3053
|
case 1:
|
|
3054
|
-
this.
|
|
3054
|
+
this.l5f_1 = this.i5f_1;
|
|
3055
3055
|
this.g9_1 = 5;
|
|
3056
3056
|
continue $sm;
|
|
3057
3057
|
case 2:
|
|
3058
|
-
this.
|
|
3059
|
-
this.
|
|
3058
|
+
this.n5f_1 = suspendResult;
|
|
3059
|
+
this.l5f_1 = this.m5f_1.k35(this.n5f_1);
|
|
3060
3060
|
this.g9_1 = 5;
|
|
3061
3061
|
continue $sm;
|
|
3062
3062
|
case 3:
|
|
3063
3063
|
this.g9_1 = 4;
|
|
3064
|
-
suspendResult = this.
|
|
3064
|
+
suspendResult = this.j5f_1.e1n(this);
|
|
3065
3065
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3066
3066
|
return suspendResult;
|
|
3067
3067
|
}
|
|
3068
3068
|
|
|
3069
3069
|
continue $sm;
|
|
3070
3070
|
case 4:
|
|
3071
|
-
this.
|
|
3071
|
+
this.l5f_1 = this.i5f_1;
|
|
3072
3072
|
this.g9_1 = 5;
|
|
3073
3073
|
continue $sm;
|
|
3074
3074
|
case 5:
|
|
3075
|
-
return this.
|
|
3075
|
+
return this.l5f_1;
|
|
3076
3076
|
case 6:
|
|
3077
3077
|
throw this.j9_1;
|
|
3078
3078
|
}
|