@doordeck/doordeck-headless-sdk 0.133.0 → 0.134.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 +1412 -1412
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +74 -22
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +18 -18
- package/kotlin/doordeck-sdk.d.ts +12 -12
- package/kotlin/doordeck-sdk.js +9659 -9530
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +1907 -1907
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +443 -443
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1710 -1710
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1347 -1347
- package/kotlin/ktor-ktor-client-auth.js +241 -241
- package/kotlin/ktor-ktor-client-content-negotiation.js +135 -135
- package/kotlin/ktor-ktor-client-core.js +1882 -1882
- package/kotlin/ktor-ktor-client-logging.js +668 -668
- package/kotlin/ktor-ktor-events.js +6 -6
- package/kotlin/ktor-ktor-http-cio.js +330 -330
- package/kotlin/ktor-ktor-http.js +682 -682
- package/kotlin/ktor-ktor-io.js +628 -628
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +140 -140
- package/kotlin/ktor-ktor-serialization.js +62 -62
- package/kotlin/ktor-ktor-utils.js +660 -660
- package/kotlin/ktor-ktor-websockets.js +37 -37
- package/package.json +1 -1
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
//endregion
|
|
159
159
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
160
160
|
CoroutineImpl.call(this, resultContinuation);
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
161
|
+
this.o4z_1 = _this__u8e3s4;
|
|
162
|
+
this.p4z_1 = message;
|
|
163
163
|
}
|
|
164
164
|
protoOf($logResponseExceptionCOROUTINE$).o9 = function () {
|
|
165
165
|
var suspendResult = this.i9_1;
|
|
@@ -170,15 +170,15 @@
|
|
|
170
170
|
case 0:
|
|
171
171
|
this.h9_1 = 2;
|
|
172
172
|
this.g9_1 = 1;
|
|
173
|
-
suspendResult = this.
|
|
173
|
+
suspendResult = this.o4z_1.t4z_1.ix(this);
|
|
174
174
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
175
175
|
return suspendResult;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
continue $sm;
|
|
179
179
|
case 1:
|
|
180
|
-
var this_0 = this.
|
|
181
|
-
this.
|
|
180
|
+
var this_0 = this.p4z_1;
|
|
181
|
+
this.o4z_1.q4z_1.x4z(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
182
182
|
return Unit_instance;
|
|
183
183
|
case 2:
|
|
184
184
|
throw this.j9_1;
|
|
@@ -196,8 +196,8 @@
|
|
|
196
196
|
};
|
|
197
197
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
198
198
|
CoroutineImpl.call(this, resultContinuation);
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
199
|
+
this.g50_1 = _this__u8e3s4;
|
|
200
|
+
this.h50_1 = message;
|
|
201
201
|
}
|
|
202
202
|
protoOf($logResponseBodyCOROUTINE$).o9 = function () {
|
|
203
203
|
var suspendResult = this.i9_1;
|
|
@@ -208,14 +208,14 @@
|
|
|
208
208
|
case 0:
|
|
209
209
|
this.h9_1 = 2;
|
|
210
210
|
this.g9_1 = 1;
|
|
211
|
-
suspendResult = this.
|
|
211
|
+
suspendResult = this.g50_1.u4z_1.ix(this);
|
|
212
212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
213
213
|
return suspendResult;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
continue $sm;
|
|
217
217
|
case 1:
|
|
218
|
-
this.
|
|
218
|
+
this.g50_1.s4z_1.r8(this.h50_1);
|
|
219
219
|
return Unit_instance;
|
|
220
220
|
case 2:
|
|
221
221
|
throw this.j9_1;
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
};
|
|
234
234
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
235
235
|
CoroutineImpl.call(this, resultContinuation);
|
|
236
|
-
this.
|
|
236
|
+
this.q50_1 = _this__u8e3s4;
|
|
237
237
|
}
|
|
238
238
|
protoOf($closeResponseLogCOROUTINE$).o9 = function () {
|
|
239
239
|
var suspendResult = this.i9_1;
|
|
@@ -243,19 +243,19 @@
|
|
|
243
243
|
switch (tmp) {
|
|
244
244
|
case 0:
|
|
245
245
|
this.h9_1 = 2;
|
|
246
|
-
if (!this.
|
|
246
|
+
if (!this.q50_1.w4z_1.atomicfu$compareAndSet(false, true))
|
|
247
247
|
return Unit_instance;
|
|
248
248
|
this.g9_1 = 1;
|
|
249
|
-
suspendResult = this.
|
|
249
|
+
suspendResult = this.q50_1.t4z_1.ix(this);
|
|
250
250
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
251
251
|
return suspendResult;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
continue $sm;
|
|
255
255
|
case 1:
|
|
256
|
-
var message = toString(trim(this.
|
|
256
|
+
var message = toString(trim(this.q50_1.s4z_1));
|
|
257
257
|
if (charSequenceLength(message) > 0) {
|
|
258
|
-
this.
|
|
258
|
+
this.q50_1.q4z_1.x4z(message);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
return Unit_instance;
|
|
@@ -274,57 +274,57 @@
|
|
|
274
274
|
while (true);
|
|
275
275
|
};
|
|
276
276
|
function HttpClientCallLogger(logger) {
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
}
|
|
285
|
-
protoOf(HttpClientCallLogger).
|
|
286
|
-
var tmp0 = this.
|
|
277
|
+
this.q4z_1 = logger;
|
|
278
|
+
this.r4z_1 = StringBuilder_init_$Create$();
|
|
279
|
+
this.s4z_1 = StringBuilder_init_$Create$();
|
|
280
|
+
this.t4z_1 = Job();
|
|
281
|
+
this.u4z_1 = Job();
|
|
282
|
+
this.v4z_1 = atomic$boolean$1(false);
|
|
283
|
+
this.w4z_1 = atomic$boolean$1(false);
|
|
284
|
+
}
|
|
285
|
+
protoOf(HttpClientCallLogger).r50 = function (message) {
|
|
286
|
+
var tmp0 = this.r4z_1;
|
|
287
287
|
// Inline function 'kotlin.text.trim' call
|
|
288
288
|
// Inline function 'kotlin.text.appendLine' call
|
|
289
289
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
290
290
|
// Inline function 'kotlin.text.appendLine' call
|
|
291
291
|
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
292
292
|
};
|
|
293
|
-
protoOf(HttpClientCallLogger).
|
|
294
|
-
var tmp0 = this.
|
|
293
|
+
protoOf(HttpClientCallLogger).s50 = function (message) {
|
|
294
|
+
var tmp0 = this.s4z_1;
|
|
295
295
|
// Inline function 'kotlin.text.trim' call
|
|
296
296
|
// Inline function 'kotlin.text.appendLine' call
|
|
297
297
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
298
298
|
// Inline function 'kotlin.text.appendLine' call
|
|
299
299
|
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
300
|
-
this.
|
|
300
|
+
this.u4z_1.hx();
|
|
301
301
|
};
|
|
302
|
-
protoOf(HttpClientCallLogger).
|
|
302
|
+
protoOf(HttpClientCallLogger).t50 = function (message, $completion) {
|
|
303
303
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
304
304
|
tmp.i9_1 = Unit_instance;
|
|
305
305
|
tmp.j9_1 = null;
|
|
306
306
|
return tmp.o9();
|
|
307
307
|
};
|
|
308
|
-
protoOf(HttpClientCallLogger).
|
|
308
|
+
protoOf(HttpClientCallLogger).u50 = function (message, $completion) {
|
|
309
309
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
310
310
|
tmp.i9_1 = Unit_instance;
|
|
311
311
|
tmp.j9_1 = null;
|
|
312
312
|
return tmp.o9();
|
|
313
313
|
};
|
|
314
|
-
protoOf(HttpClientCallLogger).
|
|
315
|
-
if (!this.
|
|
314
|
+
protoOf(HttpClientCallLogger).v50 = function () {
|
|
315
|
+
if (!this.v4z_1.atomicfu$compareAndSet(false, true))
|
|
316
316
|
return Unit_instance;
|
|
317
317
|
try {
|
|
318
|
-
var message = toString(trim(this.
|
|
318
|
+
var message = toString(trim(this.r4z_1));
|
|
319
319
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
320
320
|
if (charSequenceLength(message) > 0) {
|
|
321
|
-
this.
|
|
321
|
+
this.q4z_1.x4z(message);
|
|
322
322
|
}
|
|
323
323
|
}finally {
|
|
324
|
-
this.
|
|
324
|
+
this.t4z_1.hx();
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
-
protoOf(HttpClientCallLogger).
|
|
327
|
+
protoOf(HttpClientCallLogger).w50 = function ($completion) {
|
|
328
328
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
329
329
|
tmp.i9_1 = Unit_instance;
|
|
330
330
|
tmp.j9_1 = null;
|
|
@@ -348,9 +348,9 @@
|
|
|
348
348
|
}
|
|
349
349
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
350
350
|
Enum.call(this, name, ordinal);
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
351
|
+
this.z50_1 = info;
|
|
352
|
+
this.a51_1 = headers;
|
|
353
|
+
this.b51_1 = body;
|
|
354
354
|
}
|
|
355
355
|
function LogLevel_ALL_getInstance() {
|
|
356
356
|
LogLevel_initEntries();
|
|
@@ -374,27 +374,27 @@
|
|
|
374
374
|
}
|
|
375
375
|
function LoggedContent(originalContent, channel) {
|
|
376
376
|
ReadChannelContent.call(this);
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
377
|
+
this.d51_1 = originalContent;
|
|
378
|
+
this.e51_1 = channel;
|
|
379
|
+
this.f51_1 = this.d51_1.j35();
|
|
380
|
+
this.g51_1 = this.d51_1.l35();
|
|
381
|
+
this.h51_1 = this.d51_1.k35();
|
|
382
|
+
this.i51_1 = this.d51_1.o2z();
|
|
383
383
|
}
|
|
384
|
-
protoOf(LoggedContent).
|
|
385
|
-
return this.
|
|
384
|
+
protoOf(LoggedContent).j35 = function () {
|
|
385
|
+
return this.f51_1;
|
|
386
386
|
};
|
|
387
|
-
protoOf(LoggedContent).
|
|
388
|
-
return this.
|
|
387
|
+
protoOf(LoggedContent).l35 = function () {
|
|
388
|
+
return this.g51_1;
|
|
389
389
|
};
|
|
390
|
-
protoOf(LoggedContent).
|
|
391
|
-
return this.
|
|
390
|
+
protoOf(LoggedContent).k35 = function () {
|
|
391
|
+
return this.h51_1;
|
|
392
392
|
};
|
|
393
|
-
protoOf(LoggedContent).
|
|
394
|
-
return this.
|
|
393
|
+
protoOf(LoggedContent).o2z = function () {
|
|
394
|
+
return this.i51_1;
|
|
395
395
|
};
|
|
396
|
-
protoOf(LoggedContent).
|
|
397
|
-
return this.
|
|
396
|
+
protoOf(LoggedContent).p35 = function () {
|
|
397
|
+
return this.e51_1;
|
|
398
398
|
};
|
|
399
399
|
function Companion() {
|
|
400
400
|
}
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
}
|
|
408
408
|
function SimpleLogger() {
|
|
409
409
|
}
|
|
410
|
-
protoOf(SimpleLogger).
|
|
410
|
+
protoOf(SimpleLogger).x4z = function (message) {
|
|
411
411
|
println('HttpClient: ' + message);
|
|
412
412
|
};
|
|
413
413
|
function get_ClientCallLogger() {
|
|
@@ -428,19 +428,19 @@
|
|
|
428
428
|
function LoggingConfig() {
|
|
429
429
|
var tmp = this;
|
|
430
430
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
431
|
-
tmp.
|
|
431
|
+
tmp.j51_1 = ArrayList_init_$Create$();
|
|
432
432
|
var tmp_0 = this;
|
|
433
433
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
434
|
-
tmp_0.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
434
|
+
tmp_0.k51_1 = ArrayList_init_$Create$();
|
|
435
|
+
this.l51_1 = null;
|
|
436
|
+
this.m51_1 = LoggingFormat_Default_getInstance();
|
|
437
|
+
this.n51_1 = LogLevel_HEADERS_getInstance();
|
|
438
438
|
}
|
|
439
|
-
protoOf(LoggingConfig).
|
|
440
|
-
this.
|
|
439
|
+
protoOf(LoggingConfig).o51 = function (value) {
|
|
440
|
+
this.l51_1 = value;
|
|
441
441
|
};
|
|
442
|
-
protoOf(LoggingConfig).
|
|
443
|
-
var tmp0_elvis_lhs = this.
|
|
442
|
+
protoOf(LoggingConfig).p51 = function () {
|
|
443
|
+
var tmp0_elvis_lhs = this.l51_1;
|
|
444
444
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
445
445
|
};
|
|
446
446
|
var LoggingFormat_Default_instance;
|
|
@@ -462,17 +462,17 @@
|
|
|
462
462
|
// Inline function 'kotlin.apply' call
|
|
463
463
|
var this_0 = StringBuilder_init_$Create$();
|
|
464
464
|
// Inline function 'kotlin.text.isEmpty' call
|
|
465
|
-
var this_1 = _this__u8e3s4.
|
|
465
|
+
var this_1 = _this__u8e3s4.o34();
|
|
466
466
|
if (charSequenceLength(this_1) === 0) {
|
|
467
467
|
this_0.r8('/');
|
|
468
468
|
} else {
|
|
469
|
-
this_0.r8(_this__u8e3s4.
|
|
469
|
+
this_0.r8(_this__u8e3s4.o34());
|
|
470
470
|
}
|
|
471
471
|
// Inline function 'kotlin.text.isEmpty' call
|
|
472
|
-
var this_2 = _this__u8e3s4.
|
|
472
|
+
var this_2 = _this__u8e3s4.r34();
|
|
473
473
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
474
474
|
this_0.r8('?');
|
|
475
|
-
this_0.r8(_this__u8e3s4.
|
|
475
|
+
this_0.r8(_this__u8e3s4.r34());
|
|
476
476
|
}
|
|
477
477
|
return this_0.toString();
|
|
478
478
|
}
|
|
@@ -484,10 +484,10 @@
|
|
|
484
484
|
}
|
|
485
485
|
var tmp;
|
|
486
486
|
if (content instanceof ByteArrayContent) {
|
|
487
|
-
tmp = toLong(content.
|
|
487
|
+
tmp = toLong(content.m35().length);
|
|
488
488
|
} else {
|
|
489
489
|
if (content instanceof ContentWrapper) {
|
|
490
|
-
tmp = computeRequestBodySize(content.
|
|
490
|
+
tmp = computeRequestBodySize(content.v35());
|
|
491
491
|
} else {
|
|
492
492
|
if (content instanceof NoContent) {
|
|
493
493
|
tmp = new Long(0, 0);
|
|
@@ -504,27 +504,27 @@
|
|
|
504
504
|
return tmp;
|
|
505
505
|
}
|
|
506
506
|
function Context(context) {
|
|
507
|
-
this.
|
|
507
|
+
this.q51_1 = context;
|
|
508
508
|
}
|
|
509
|
-
protoOf(Context).
|
|
510
|
-
return this.
|
|
509
|
+
protoOf(Context).r51 = function (content, $completion) {
|
|
510
|
+
return this.q51_1.t2q(content, $completion);
|
|
511
511
|
};
|
|
512
|
-
protoOf(Context).
|
|
513
|
-
return this.
|
|
512
|
+
protoOf(Context).s51 = function ($completion) {
|
|
513
|
+
return this.q51_1.u2q($completion);
|
|
514
514
|
};
|
|
515
515
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
516
|
-
this.
|
|
516
|
+
this.b52_1 = $handler;
|
|
517
517
|
CoroutineImpl.call(this, resultContinuation);
|
|
518
518
|
}
|
|
519
|
-
protoOf(SendHook$install$slambda).
|
|
520
|
-
var tmp = this.
|
|
519
|
+
protoOf(SendHook$install$slambda).z3g = function ($this$intercept, it, $completion) {
|
|
520
|
+
var tmp = this.a3h($this$intercept, it, $completion);
|
|
521
521
|
tmp.i9_1 = Unit_instance;
|
|
522
522
|
tmp.j9_1 = null;
|
|
523
523
|
return tmp.o9();
|
|
524
524
|
};
|
|
525
525
|
protoOf(SendHook$install$slambda).da = function (p1, p2, $completion) {
|
|
526
526
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
527
|
-
return this.
|
|
527
|
+
return this.z3g(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
528
528
|
};
|
|
529
529
|
protoOf(SendHook$install$slambda).o9 = function () {
|
|
530
530
|
var suspendResult = this.i9_1;
|
|
@@ -535,7 +535,7 @@
|
|
|
535
535
|
case 0:
|
|
536
536
|
this.h9_1 = 2;
|
|
537
537
|
this.g9_1 = 1;
|
|
538
|
-
suspendResult = this.
|
|
538
|
+
suspendResult = this.b52_1(new Context(this.c52_1), this.c52_1.p2r_1, this);
|
|
539
539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
540
540
|
return suspendResult;
|
|
541
541
|
}
|
|
@@ -557,52 +557,52 @@
|
|
|
557
557
|
}
|
|
558
558
|
while (true);
|
|
559
559
|
};
|
|
560
|
-
protoOf(SendHook$install$slambda).
|
|
561
|
-
var i = new SendHook$install$slambda(this.
|
|
562
|
-
i.
|
|
563
|
-
i.
|
|
560
|
+
protoOf(SendHook$install$slambda).a3h = function ($this$intercept, it, completion) {
|
|
561
|
+
var i = new SendHook$install$slambda(this.b52_1, completion);
|
|
562
|
+
i.c52_1 = $this$intercept;
|
|
563
|
+
i.d52_1 = it;
|
|
564
564
|
return i;
|
|
565
565
|
};
|
|
566
566
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
567
567
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
568
568
|
var l = function ($this$intercept, it, $completion) {
|
|
569
|
-
return i.
|
|
569
|
+
return i.z3g($this$intercept, it, $completion);
|
|
570
570
|
};
|
|
571
571
|
l.$arity = 2;
|
|
572
572
|
return l;
|
|
573
573
|
}
|
|
574
574
|
function SendHook() {
|
|
575
575
|
}
|
|
576
|
-
protoOf(SendHook).
|
|
577
|
-
var tmp = Phases_getInstance().
|
|
578
|
-
client.
|
|
576
|
+
protoOf(SendHook).e52 = function (client, handler) {
|
|
577
|
+
var tmp = Phases_getInstance().q3i_1;
|
|
578
|
+
client.h3g_1.t2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
579
579
|
};
|
|
580
|
-
protoOf(SendHook).
|
|
581
|
-
return this.
|
|
580
|
+
protoOf(SendHook).b3q = function (client, handler) {
|
|
581
|
+
return this.e52(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
582
582
|
};
|
|
583
583
|
var SendHook_instance;
|
|
584
584
|
function SendHook_getInstance() {
|
|
585
585
|
return SendHook_instance;
|
|
586
586
|
}
|
|
587
587
|
function Context_0(context) {
|
|
588
|
-
this.
|
|
588
|
+
this.f52_1 = context;
|
|
589
589
|
}
|
|
590
|
-
protoOf(Context_0).
|
|
591
|
-
return this.
|
|
590
|
+
protoOf(Context_0).r4d = function (response, $completion) {
|
|
591
|
+
return this.f52_1.t2q(response, $completion);
|
|
592
592
|
};
|
|
593
593
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
594
|
-
this.
|
|
594
|
+
this.o52_1 = $handler;
|
|
595
595
|
CoroutineImpl.call(this, resultContinuation);
|
|
596
596
|
}
|
|
597
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
598
|
-
var tmp = this.
|
|
597
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).o3q = function ($this$intercept, it, $completion) {
|
|
598
|
+
var tmp = this.p3q($this$intercept, it, $completion);
|
|
599
599
|
tmp.i9_1 = Unit_instance;
|
|
600
600
|
tmp.j9_1 = null;
|
|
601
601
|
return tmp.o9();
|
|
602
602
|
};
|
|
603
603
|
protoOf(ResponseAfterEncodingHook$install$slambda).da = function (p1, p2, $completion) {
|
|
604
604
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
605
|
-
return this.
|
|
605
|
+
return this.o3q(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
606
606
|
};
|
|
607
607
|
protoOf(ResponseAfterEncodingHook$install$slambda).o9 = function () {
|
|
608
608
|
var suspendResult = this.i9_1;
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
case 0:
|
|
614
614
|
this.h9_1 = 2;
|
|
615
615
|
this.g9_1 = 1;
|
|
616
|
-
suspendResult = this.
|
|
616
|
+
suspendResult = this.o52_1(new Context_0(this.p52_1), this.p52_1.s2q(), this);
|
|
617
617
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
618
618
|
return suspendResult;
|
|
619
619
|
}
|
|
@@ -635,53 +635,53 @@
|
|
|
635
635
|
}
|
|
636
636
|
while (true);
|
|
637
637
|
};
|
|
638
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
639
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
640
|
-
i.
|
|
641
|
-
i.
|
|
638
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).p3q = function ($this$intercept, it, completion) {
|
|
639
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.o52_1, completion);
|
|
640
|
+
i.p52_1 = $this$intercept;
|
|
641
|
+
i.q52_1 = it;
|
|
642
642
|
return i;
|
|
643
643
|
};
|
|
644
644
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
645
645
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
646
646
|
var l = function ($this$intercept, it, $completion) {
|
|
647
|
-
return i.
|
|
647
|
+
return i.o3q($this$intercept, it, $completion);
|
|
648
648
|
};
|
|
649
649
|
l.$arity = 2;
|
|
650
650
|
return l;
|
|
651
651
|
}
|
|
652
652
|
function ResponseAfterEncodingHook() {
|
|
653
653
|
}
|
|
654
|
-
protoOf(ResponseAfterEncodingHook).
|
|
654
|
+
protoOf(ResponseAfterEncodingHook).r52 = function (client, handler) {
|
|
655
655
|
var afterState = new PipelinePhase('AfterState');
|
|
656
|
-
client.
|
|
657
|
-
client.
|
|
656
|
+
client.i3g_1.q2r(Phases_getInstance_0().s3q_1, afterState);
|
|
657
|
+
client.i3g_1.t2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
658
658
|
};
|
|
659
|
-
protoOf(ResponseAfterEncodingHook).
|
|
660
|
-
return this.
|
|
659
|
+
protoOf(ResponseAfterEncodingHook).b3q = function (client, handler) {
|
|
660
|
+
return this.r52(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
661
661
|
};
|
|
662
662
|
var ResponseAfterEncodingHook_instance;
|
|
663
663
|
function ResponseAfterEncodingHook_getInstance() {
|
|
664
664
|
return ResponseAfterEncodingHook_instance;
|
|
665
665
|
}
|
|
666
666
|
function Context_1(context) {
|
|
667
|
-
this.
|
|
667
|
+
this.s52_1 = context;
|
|
668
668
|
}
|
|
669
|
-
protoOf(Context_1).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(Context_1).t52 = function ($completion) {
|
|
670
|
+
return this.s52_1.u2q($completion);
|
|
671
671
|
};
|
|
672
672
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
673
|
-
this.
|
|
673
|
+
this.c53_1 = $handler;
|
|
674
674
|
CoroutineImpl.call(this, resultContinuation);
|
|
675
675
|
}
|
|
676
|
-
protoOf(ResponseHook$install$slambda).
|
|
677
|
-
var tmp = this.
|
|
676
|
+
protoOf(ResponseHook$install$slambda).o3q = function ($this$intercept, it, $completion) {
|
|
677
|
+
var tmp = this.p3q($this$intercept, it, $completion);
|
|
678
678
|
tmp.i9_1 = Unit_instance;
|
|
679
679
|
tmp.j9_1 = null;
|
|
680
680
|
return tmp.o9();
|
|
681
681
|
};
|
|
682
682
|
protoOf(ResponseHook$install$slambda).da = function (p1, p2, $completion) {
|
|
683
683
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
684
|
-
return this.
|
|
684
|
+
return this.o3q(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
685
685
|
};
|
|
686
686
|
protoOf(ResponseHook$install$slambda).o9 = function () {
|
|
687
687
|
var suspendResult = this.i9_1;
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
case 0:
|
|
693
693
|
this.h9_1 = 2;
|
|
694
694
|
this.g9_1 = 1;
|
|
695
|
-
suspendResult = this.
|
|
695
|
+
suspendResult = this.c53_1(new Context_1(this.d53_1), this.d53_1.s2q(), this);
|
|
696
696
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
697
697
|
return suspendResult;
|
|
698
698
|
}
|
|
@@ -714,52 +714,52 @@
|
|
|
714
714
|
}
|
|
715
715
|
while (true);
|
|
716
716
|
};
|
|
717
|
-
protoOf(ResponseHook$install$slambda).
|
|
718
|
-
var i = new ResponseHook$install$slambda(this.
|
|
719
|
-
i.
|
|
720
|
-
i.
|
|
717
|
+
protoOf(ResponseHook$install$slambda).p3q = function ($this$intercept, it, completion) {
|
|
718
|
+
var i = new ResponseHook$install$slambda(this.c53_1, completion);
|
|
719
|
+
i.d53_1 = $this$intercept;
|
|
720
|
+
i.e53_1 = it;
|
|
721
721
|
return i;
|
|
722
722
|
};
|
|
723
723
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
724
724
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
725
725
|
var l = function ($this$intercept, it, $completion) {
|
|
726
|
-
return i.
|
|
726
|
+
return i.o3q($this$intercept, it, $completion);
|
|
727
727
|
};
|
|
728
728
|
l.$arity = 2;
|
|
729
729
|
return l;
|
|
730
730
|
}
|
|
731
731
|
function ResponseHook() {
|
|
732
732
|
}
|
|
733
|
-
protoOf(ResponseHook).
|
|
734
|
-
var tmp = Phases_getInstance_0().
|
|
735
|
-
client.
|
|
733
|
+
protoOf(ResponseHook).f53 = function (client, handler) {
|
|
734
|
+
var tmp = Phases_getInstance_0().s3q_1;
|
|
735
|
+
client.i3g_1.t2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
736
736
|
};
|
|
737
|
-
protoOf(ResponseHook).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(ResponseHook).b3q = function (client, handler) {
|
|
738
|
+
return this.f53(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
739
739
|
};
|
|
740
740
|
var ResponseHook_instance;
|
|
741
741
|
function ResponseHook_getInstance() {
|
|
742
742
|
return ResponseHook_instance;
|
|
743
743
|
}
|
|
744
744
|
function Context_2(context) {
|
|
745
|
-
this.
|
|
745
|
+
this.g53_1 = context;
|
|
746
746
|
}
|
|
747
|
-
protoOf(Context_2).
|
|
748
|
-
return this.
|
|
747
|
+
protoOf(Context_2).h53 = function ($completion) {
|
|
748
|
+
return this.g53_1.u2q($completion);
|
|
749
749
|
};
|
|
750
750
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
751
|
-
this.
|
|
751
|
+
this.q53_1 = $handler;
|
|
752
752
|
CoroutineImpl.call(this, resultContinuation);
|
|
753
753
|
}
|
|
754
|
-
protoOf(ReceiveHook$install$slambda).
|
|
755
|
-
var tmp = this.
|
|
754
|
+
protoOf(ReceiveHook$install$slambda).u3h = function ($this$intercept, it, $completion) {
|
|
755
|
+
var tmp = this.v3h($this$intercept, it, $completion);
|
|
756
756
|
tmp.i9_1 = Unit_instance;
|
|
757
757
|
tmp.j9_1 = null;
|
|
758
758
|
return tmp.o9();
|
|
759
759
|
};
|
|
760
760
|
protoOf(ReceiveHook$install$slambda).da = function (p1, p2, $completion) {
|
|
761
761
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
762
|
-
return this.
|
|
762
|
+
return this.u3h(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
763
763
|
};
|
|
764
764
|
protoOf(ReceiveHook$install$slambda).o9 = function () {
|
|
765
765
|
var suspendResult = this.i9_1;
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
case 0:
|
|
771
771
|
this.h9_1 = 2;
|
|
772
772
|
this.g9_1 = 1;
|
|
773
|
-
suspendResult = this.
|
|
773
|
+
suspendResult = this.q53_1(new Context_2(this.r53_1), this.r53_1.p2r_1, this);
|
|
774
774
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
775
775
|
return suspendResult;
|
|
776
776
|
}
|
|
@@ -792,28 +792,28 @@
|
|
|
792
792
|
}
|
|
793
793
|
while (true);
|
|
794
794
|
};
|
|
795
|
-
protoOf(ReceiveHook$install$slambda).
|
|
796
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
797
|
-
i.
|
|
798
|
-
i.
|
|
795
|
+
protoOf(ReceiveHook$install$slambda).v3h = function ($this$intercept, it, completion) {
|
|
796
|
+
var i = new ReceiveHook$install$slambda(this.q53_1, completion);
|
|
797
|
+
i.r53_1 = $this$intercept;
|
|
798
|
+
i.s53_1 = it;
|
|
799
799
|
return i;
|
|
800
800
|
};
|
|
801
801
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
802
802
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
803
803
|
var l = function ($this$intercept, it, $completion) {
|
|
804
|
-
return i.
|
|
804
|
+
return i.u3h($this$intercept, it, $completion);
|
|
805
805
|
};
|
|
806
806
|
l.$arity = 2;
|
|
807
807
|
return l;
|
|
808
808
|
}
|
|
809
809
|
function ReceiveHook() {
|
|
810
810
|
}
|
|
811
|
-
protoOf(ReceiveHook).
|
|
812
|
-
var tmp = Phases_getInstance_1().
|
|
813
|
-
client.
|
|
811
|
+
protoOf(ReceiveHook).t53 = function (client, handler) {
|
|
812
|
+
var tmp = Phases_getInstance_1().e3j_1;
|
|
813
|
+
client.g3g_1.t2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
814
814
|
};
|
|
815
|
-
protoOf(ReceiveHook).
|
|
816
|
-
return this.
|
|
815
|
+
protoOf(ReceiveHook).b3q = function (client, handler) {
|
|
816
|
+
return this.t53(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
817
817
|
};
|
|
818
818
|
var ReceiveHook_instance;
|
|
819
819
|
function ReceiveHook_getInstance() {
|
|
@@ -828,26 +828,26 @@
|
|
|
828
828
|
}
|
|
829
829
|
function Logging$lambda($this$createClientPlugin) {
|
|
830
830
|
_init_properties_Logging_kt__66pui5();
|
|
831
|
-
var logger = $this$createClientPlugin.
|
|
832
|
-
var level = $this$createClientPlugin.
|
|
833
|
-
var filters = $this$createClientPlugin.
|
|
834
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
835
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
831
|
+
var logger = $this$createClientPlugin.w3q_1.p51();
|
|
832
|
+
var level = $this$createClientPlugin.w3q_1.n51_1;
|
|
833
|
+
var filters = $this$createClientPlugin.w3q_1.j51_1;
|
|
834
|
+
var sanitizedHeaders = $this$createClientPlugin.w3q_1.k51_1;
|
|
835
|
+
var okHttpFormat = $this$createClientPlugin.w3q_1.m51_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
836
836
|
var tmp = SendHook_instance;
|
|
837
|
-
$this$createClientPlugin.
|
|
837
|
+
$this$createClientPlugin.z3q(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
838
838
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
839
|
-
$this$createClientPlugin.
|
|
839
|
+
$this$createClientPlugin.z3q(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
840
840
|
var tmp_1 = ResponseHook_instance;
|
|
841
|
-
$this$createClientPlugin.
|
|
841
|
+
$this$createClientPlugin.z3q(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
842
842
|
var tmp_2 = ReceiveHook_instance;
|
|
843
|
-
$this$createClientPlugin.
|
|
843
|
+
$this$createClientPlugin.z3q(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
844
844
|
if (okHttpFormat)
|
|
845
845
|
return Unit_instance;
|
|
846
|
-
if (!level.
|
|
846
|
+
if (!level.b51_1)
|
|
847
847
|
return Unit_instance;
|
|
848
848
|
var tmp_3 = get_ResponseObserver();
|
|
849
|
-
var responseObserver = tmp_3.
|
|
850
|
-
get_ResponseObserver().
|
|
849
|
+
var responseObserver = tmp_3.l3j(Logging$lambda$lambda(level));
|
|
850
|
+
get_ResponseObserver().m3j(responseObserver, $this$createClientPlugin.v3q_1);
|
|
851
851
|
return Unit_instance;
|
|
852
852
|
}
|
|
853
853
|
function invoke$shouldBeLogged(filters, request) {
|
|
@@ -940,47 +940,47 @@
|
|
|
940
940
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
941
941
|
var requestLog = StringBuilder_init_$Create$();
|
|
942
942
|
// Inline function 'kotlin.text.appendLine' call
|
|
943
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
943
|
+
var value = 'BODY Content-Type: ' + toString_0(content.j35());
|
|
944
944
|
// Inline function 'kotlin.text.appendLine' call
|
|
945
945
|
requestLog.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
946
|
-
var tmp0_safe_receiver = content.
|
|
946
|
+
var tmp0_safe_receiver = content.j35();
|
|
947
947
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
948
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
948
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().e1y_1 : tmp1_elvis_lhs;
|
|
949
949
|
var channel = new ByteChannel();
|
|
950
950
|
var tmp = GlobalScope_instance;
|
|
951
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
951
|
+
var tmp_0 = Dispatchers_getInstance().h11_1.rh(MDCContext());
|
|
952
952
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
953
953
|
return observe(content, channel, $completion);
|
|
954
954
|
}
|
|
955
955
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
956
|
-
if (level.
|
|
957
|
-
logger.
|
|
956
|
+
if (level.z50_1) {
|
|
957
|
+
logger.x4z('REQUEST ' + Url(context.g3i_1).toString() + ' failed with exception: ' + cause.toString());
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
961
|
-
var tmp = request.
|
|
961
|
+
var tmp = request.j3i_1;
|
|
962
962
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
963
963
|
var callLogger = new HttpClientCallLogger(logger);
|
|
964
|
-
request.
|
|
964
|
+
request.l3i_1.z2j(get_ClientCallLogger(), callLogger);
|
|
965
965
|
// Inline function 'kotlin.text.buildString' call
|
|
966
966
|
// Inline function 'kotlin.apply' call
|
|
967
967
|
var this_0 = StringBuilder_init_$Create$();
|
|
968
|
-
if (level.
|
|
968
|
+
if (level.z50_1) {
|
|
969
969
|
// Inline function 'kotlin.text.appendLine' call
|
|
970
|
-
var value = 'REQUEST: ' + Url(request.
|
|
970
|
+
var value = 'REQUEST: ' + Url(request.g3i_1).toString();
|
|
971
971
|
// Inline function 'kotlin.text.appendLine' call
|
|
972
972
|
this_0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
973
973
|
// Inline function 'kotlin.text.appendLine' call
|
|
974
|
-
var value_0 = 'METHOD: ' + request.
|
|
974
|
+
var value_0 = 'METHOD: ' + request.h3i_1.toString();
|
|
975
975
|
// Inline function 'kotlin.text.appendLine' call
|
|
976
976
|
this_0.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
977
977
|
}
|
|
978
|
-
if (level.
|
|
978
|
+
if (level.a51_1) {
|
|
979
979
|
// Inline function 'kotlin.text.appendLine' call
|
|
980
980
|
var value_1 = 'COMMON HEADERS';
|
|
981
981
|
// Inline function 'kotlin.text.appendLine' call
|
|
982
982
|
this_0.r8(value_1).s8(_Char___init__impl__6a9atx(10));
|
|
983
|
-
logHeaders(this_0, request.
|
|
983
|
+
logHeaders(this_0, request.i3i_1.e2o(), sanitizedHeaders);
|
|
984
984
|
// Inline function 'kotlin.text.appendLine' call
|
|
985
985
|
var value_2 = 'CONTENT HEADERS';
|
|
986
986
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
var _iterator__ex2g4s = sanitizedHeaders.p();
|
|
992
992
|
while (_iterator__ex2g4s.q()) {
|
|
993
993
|
var element = _iterator__ex2g4s.r();
|
|
994
|
-
if (element.
|
|
994
|
+
if (element.q58_1(HttpHeaders_getInstance().a2w_1)) {
|
|
995
995
|
tmp$ret$9 = element;
|
|
996
996
|
break $l$block;
|
|
997
997
|
}
|
|
@@ -999,14 +999,14 @@
|
|
|
999
999
|
tmp$ret$9 = null;
|
|
1000
1000
|
}
|
|
1001
1001
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1002
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1002
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p58_1;
|
|
1003
1003
|
var tmp$ret$11;
|
|
1004
1004
|
$l$block_0: {
|
|
1005
1005
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1006
1006
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
1007
1007
|
while (_iterator__ex2g4s_0.q()) {
|
|
1008
1008
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
1009
|
-
if (element_0.
|
|
1009
|
+
if (element_0.q58_1(HttpHeaders_getInstance().d2w_1)) {
|
|
1010
1010
|
tmp$ret$11 = element_0;
|
|
1011
1011
|
break $l$block_0;
|
|
1012
1012
|
}
|
|
@@ -1014,66 +1014,66 @@
|
|
|
1014
1014
|
tmp$ret$11 = null;
|
|
1015
1015
|
}
|
|
1016
1016
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1017
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1018
|
-
var tmp2_safe_receiver = content.
|
|
1017
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p58_1;
|
|
1018
|
+
var tmp2_safe_receiver = content.l35();
|
|
1019
1019
|
if (tmp2_safe_receiver == null)
|
|
1020
1020
|
null;
|
|
1021
1021
|
else {
|
|
1022
1022
|
// Inline function 'kotlin.let' call
|
|
1023
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1023
|
+
var tmp_0 = HttpHeaders_getInstance().a2w_1;
|
|
1024
1024
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1025
1025
|
}
|
|
1026
|
-
var tmp3_safe_receiver = content.
|
|
1026
|
+
var tmp3_safe_receiver = content.j35();
|
|
1027
1027
|
if (tmp3_safe_receiver == null)
|
|
1028
1028
|
null;
|
|
1029
1029
|
else {
|
|
1030
1030
|
// Inline function 'kotlin.let' call
|
|
1031
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1031
|
+
var tmp_1 = HttpHeaders_getInstance().d2w_1;
|
|
1032
1032
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1033
1033
|
}
|
|
1034
|
-
logHeaders(this_0, content.
|
|
1034
|
+
logHeaders(this_0, content.o2z().e2o(), sanitizedHeaders);
|
|
1035
1035
|
}
|
|
1036
1036
|
var message = this_0.toString();
|
|
1037
1037
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1038
1038
|
if (charSequenceLength(message) > 0) {
|
|
1039
|
-
callLogger.
|
|
1039
|
+
callLogger.r50(message);
|
|
1040
1040
|
}
|
|
1041
1041
|
var tmp_2;
|
|
1042
1042
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1043
1043
|
if (charSequenceLength(message) === 0) {
|
|
1044
1044
|
tmp_2 = true;
|
|
1045
1045
|
} else {
|
|
1046
|
-
tmp_2 = !level.
|
|
1046
|
+
tmp_2 = !level.b51_1;
|
|
1047
1047
|
}
|
|
1048
1048
|
if (tmp_2) {
|
|
1049
|
-
callLogger.
|
|
1049
|
+
callLogger.v50();
|
|
1050
1050
|
return null;
|
|
1051
1051
|
}
|
|
1052
1052
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1053
1053
|
}
|
|
1054
1054
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1055
|
-
if (!level.
|
|
1055
|
+
if (!level.z50_1)
|
|
1056
1056
|
return Unit_instance;
|
|
1057
|
-
log.r8('RESPONSE ' + request.
|
|
1057
|
+
log.r8('RESPONSE ' + request.x3j().toString() + ' failed with exception: ' + cause.toString());
|
|
1058
1058
|
}
|
|
1059
1059
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1060
|
+
this.z58_1 = $okHttpFormat;
|
|
1061
|
+
this.a59_1 = $logger;
|
|
1062
|
+
this.b59_1 = $filters;
|
|
1063
|
+
this.c59_1 = $sanitizedHeaders;
|
|
1064
|
+
this.d59_1 = $level;
|
|
1065
|
+
this.e59_1 = $this_createClientPlugin;
|
|
1066
1066
|
CoroutineImpl.call(this, resultContinuation);
|
|
1067
1067
|
}
|
|
1068
|
-
protoOf(Logging$lambda$slambda).
|
|
1069
|
-
var tmp = this.
|
|
1068
|
+
protoOf(Logging$lambda$slambda).s59 = function ($this$on, request, $completion) {
|
|
1069
|
+
var tmp = this.t59($this$on, request, $completion);
|
|
1070
1070
|
tmp.i9_1 = Unit_instance;
|
|
1071
1071
|
tmp.j9_1 = null;
|
|
1072
1072
|
return tmp.o9();
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(Logging$lambda$slambda).da = function (p1, p2, $completion) {
|
|
1075
1075
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1076
|
-
return this.
|
|
1076
|
+
return this.s59(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1077
1077
|
};
|
|
1078
1078
|
protoOf(Logging$lambda$slambda).o9 = function () {
|
|
1079
1079
|
var suspendResult = this.i9_1;
|
|
@@ -1083,16 +1083,16 @@
|
|
|
1083
1083
|
switch (tmp) {
|
|
1084
1084
|
case 0:
|
|
1085
1085
|
this.h9_1 = 16;
|
|
1086
|
-
if (!invoke$shouldBeLogged(this.
|
|
1087
|
-
this.
|
|
1086
|
+
if (!invoke$shouldBeLogged(this.b59_1, this.g59_1)) {
|
|
1087
|
+
this.g59_1.l3i_1.z2j(get_DisableLogging(), Unit_instance);
|
|
1088
1088
|
return Unit_instance;
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
|
-
if (this.
|
|
1091
|
+
if (this.z58_1) {
|
|
1092
1092
|
var tmp_0 = this;
|
|
1093
|
-
tmp_0.
|
|
1093
|
+
tmp_0.h59_1 = ArrayList_init_$Create$();
|
|
1094
1094
|
this.g9_1 = 10;
|
|
1095
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1095
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.c59_1, this.d59_1, this.e59_1, this.g59_1, this.h59_1, this);
|
|
1096
1096
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1097
1097
|
return suspendResult;
|
|
1098
1098
|
}
|
|
@@ -1105,14 +1105,14 @@
|
|
|
1105
1105
|
case 1:
|
|
1106
1106
|
this.h9_1 = 3;
|
|
1107
1107
|
this.g9_1 = 2;
|
|
1108
|
-
suspendResult = invoke$logRequest(this.
|
|
1108
|
+
suspendResult = invoke$logRequest(this.a59_1, this.d59_1, this.c59_1, this.g59_1, this);
|
|
1109
1109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1110
1110
|
return suspendResult;
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
continue $sm;
|
|
1114
1114
|
case 2:
|
|
1115
|
-
this.
|
|
1115
|
+
this.i59_1 = suspendResult;
|
|
1116
1116
|
this.h9_1 = 16;
|
|
1117
1117
|
this.g9_1 = 4;
|
|
1118
1118
|
continue $sm;
|
|
@@ -1120,9 +1120,9 @@
|
|
|
1120
1120
|
this.h9_1 = 16;
|
|
1121
1121
|
var tmp_1 = this.j9_1;
|
|
1122
1122
|
if (tmp_1 instanceof Error) {
|
|
1123
|
-
this.
|
|
1123
|
+
this.j59_1 = this.j9_1;
|
|
1124
1124
|
var tmp_2 = this;
|
|
1125
|
-
tmp_2.
|
|
1125
|
+
tmp_2.i59_1 = null;
|
|
1126
1126
|
this.g9_1 = 4;
|
|
1127
1127
|
continue $sm;
|
|
1128
1128
|
} else {
|
|
@@ -1131,23 +1131,23 @@
|
|
|
1131
1131
|
|
|
1132
1132
|
case 4:
|
|
1133
1133
|
this.h9_1 = 16;
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1134
|
+
this.k59_1 = this.i59_1;
|
|
1135
|
+
this.l59_1 = Unit_instance;
|
|
1136
1136
|
this.g9_1 = 5;
|
|
1137
1137
|
continue $sm;
|
|
1138
1138
|
case 5:
|
|
1139
1139
|
this.h9_1 = 8;
|
|
1140
1140
|
this.h9_1 = 7;
|
|
1141
1141
|
this.g9_1 = 6;
|
|
1142
|
-
var tmp0_elvis_lhs = this.
|
|
1143
|
-
suspendResult = this.
|
|
1142
|
+
var tmp0_elvis_lhs = this.k59_1;
|
|
1143
|
+
suspendResult = this.f59_1.r51(tmp0_elvis_lhs == null ? this.g59_1.j3i_1 : tmp0_elvis_lhs, this);
|
|
1144
1144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1145
1145
|
return suspendResult;
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
1148
|
continue $sm;
|
|
1149
1149
|
case 6:
|
|
1150
|
-
this.
|
|
1150
|
+
this.l59_1 = suspendResult;
|
|
1151
1151
|
this.h9_1 = 16;
|
|
1152
1152
|
this.g9_1 = 9;
|
|
1153
1153
|
continue $sm;
|
|
@@ -1155,39 +1155,39 @@
|
|
|
1155
1155
|
this.h9_1 = 8;
|
|
1156
1156
|
var tmp_3 = this.j9_1;
|
|
1157
1157
|
if (tmp_3 instanceof Error) {
|
|
1158
|
-
this.
|
|
1158
|
+
this.m59_1 = this.j9_1;
|
|
1159
1159
|
var tmp_4 = this;
|
|
1160
|
-
invoke$logRequestException(this.
|
|
1161
|
-
throw this.
|
|
1160
|
+
invoke$logRequestException(this.d59_1, this.a59_1, this.g59_1, this.m59_1);
|
|
1161
|
+
throw this.m59_1;
|
|
1162
1162
|
} else {
|
|
1163
1163
|
throw this.j9_1;
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
1166
|
case 8:
|
|
1167
1167
|
this.h9_1 = 16;
|
|
1168
|
-
this.
|
|
1169
|
-
throw this.
|
|
1168
|
+
this.n59_1 = this.j9_1;
|
|
1169
|
+
throw this.n59_1;
|
|
1170
1170
|
case 9:
|
|
1171
|
-
this.
|
|
1171
|
+
this.o59_1 = this.l59_1;
|
|
1172
1172
|
this.h9_1 = 16;
|
|
1173
1173
|
return Unit_instance;
|
|
1174
1174
|
case 10:
|
|
1175
|
-
this.
|
|
1176
|
-
if (this.
|
|
1177
|
-
this.
|
|
1175
|
+
this.p59_1 = suspendResult;
|
|
1176
|
+
if (this.h59_1.s() > 0) {
|
|
1177
|
+
this.a59_1.x4z(joinToString(this.h59_1, '\n'));
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
1180
|
this.h9_1 = 14;
|
|
1181
|
-
if (!(this.
|
|
1181
|
+
if (!(this.p59_1 == null)) {
|
|
1182
1182
|
this.g9_1 = 12;
|
|
1183
|
-
suspendResult = this.
|
|
1183
|
+
suspendResult = this.f59_1.r51(this.p59_1, this);
|
|
1184
1184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1185
1185
|
return suspendResult;
|
|
1186
1186
|
}
|
|
1187
1187
|
continue $sm;
|
|
1188
1188
|
} else {
|
|
1189
1189
|
this.g9_1 = 11;
|
|
1190
|
-
suspendResult = this.
|
|
1190
|
+
suspendResult = this.f59_1.s51(this);
|
|
1191
1191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1192
1192
|
return suspendResult;
|
|
1193
1193
|
}
|
|
@@ -1195,15 +1195,15 @@
|
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
case 11:
|
|
1198
|
-
this.
|
|
1198
|
+
this.r59_1 = suspendResult;
|
|
1199
1199
|
this.g9_1 = 13;
|
|
1200
1200
|
continue $sm;
|
|
1201
1201
|
case 12:
|
|
1202
|
-
this.
|
|
1202
|
+
this.r59_1 = suspendResult;
|
|
1203
1203
|
this.g9_1 = 13;
|
|
1204
1204
|
continue $sm;
|
|
1205
1205
|
case 13:
|
|
1206
|
-
this.
|
|
1206
|
+
this.q59_1 = this.r59_1;
|
|
1207
1207
|
this.h9_1 = 16;
|
|
1208
1208
|
this.g9_1 = 15;
|
|
1209
1209
|
continue $sm;
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
if (tmp_5 instanceof Error) {
|
|
1214
1214
|
var cause = this.j9_1;
|
|
1215
1215
|
var tmp_6 = this;
|
|
1216
|
-
this.
|
|
1216
|
+
this.a59_1.x4z('<-- HTTP FAILED: ' + cause.toString());
|
|
1217
1217
|
throw cause;
|
|
1218
1218
|
} else {
|
|
1219
1219
|
throw this.j9_1;
|
|
@@ -1236,37 +1236,37 @@
|
|
|
1236
1236
|
}
|
|
1237
1237
|
while (true);
|
|
1238
1238
|
};
|
|
1239
|
-
protoOf(Logging$lambda$slambda).
|
|
1240
|
-
var i = new Logging$lambda$slambda(this.
|
|
1241
|
-
i.
|
|
1242
|
-
i.
|
|
1239
|
+
protoOf(Logging$lambda$slambda).t59 = function ($this$on, request, completion) {
|
|
1240
|
+
var i = new Logging$lambda$slambda(this.z58_1, this.a59_1, this.b59_1, this.c59_1, this.d59_1, this.e59_1, completion);
|
|
1241
|
+
i.f59_1 = $this$on;
|
|
1242
|
+
i.g59_1 = request;
|
|
1243
1243
|
return i;
|
|
1244
1244
|
};
|
|
1245
1245
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1246
1246
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1247
1247
|
var l = function ($this$on, request, $completion) {
|
|
1248
|
-
return i.
|
|
1248
|
+
return i.s59($this$on, request, $completion);
|
|
1249
1249
|
};
|
|
1250
1250
|
l.$arity = 2;
|
|
1251
1251
|
return l;
|
|
1252
1252
|
}
|
|
1253
1253
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1254
|
+
this.c5a_1 = $okHttpFormat;
|
|
1255
|
+
this.d5a_1 = $logger;
|
|
1256
|
+
this.e5a_1 = $sanitizedHeaders;
|
|
1257
|
+
this.f5a_1 = $level;
|
|
1258
|
+
this.g5a_1 = $this_createClientPlugin;
|
|
1259
1259
|
CoroutineImpl.call(this, resultContinuation);
|
|
1260
1260
|
}
|
|
1261
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1262
|
-
var tmp = this.
|
|
1261
|
+
protoOf(Logging$lambda$slambda_1).l5a = function ($this$on, response, $completion) {
|
|
1262
|
+
var tmp = this.m5a($this$on, response, $completion);
|
|
1263
1263
|
tmp.i9_1 = Unit_instance;
|
|
1264
1264
|
tmp.j9_1 = null;
|
|
1265
1265
|
return tmp.o9();
|
|
1266
1266
|
};
|
|
1267
1267
|
protoOf(Logging$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
1268
1268
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1269
|
-
return this.
|
|
1269
|
+
return this.l5a(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1270
1270
|
};
|
|
1271
1271
|
protoOf(Logging$lambda$slambda_1).o9 = function () {
|
|
1272
1272
|
var suspendResult = this.i9_1;
|
|
@@ -1276,11 +1276,11 @@
|
|
|
1276
1276
|
switch (tmp) {
|
|
1277
1277
|
case 0:
|
|
1278
1278
|
this.h9_1 = 5;
|
|
1279
|
-
if (this.
|
|
1279
|
+
if (this.c5a_1) {
|
|
1280
1280
|
var tmp_0 = this;
|
|
1281
|
-
tmp_0.
|
|
1281
|
+
tmp_0.j5a_1 = ArrayList_init_$Create$();
|
|
1282
1282
|
this.g9_1 = 1;
|
|
1283
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1283
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.e5a_1, this.f5a_1, this.g5a_1, this.i5a_1, this.j5a_1, this);
|
|
1284
1284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1285
1285
|
return suspendResult;
|
|
1286
1286
|
}
|
|
@@ -1291,14 +1291,14 @@
|
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
1293
|
case 1:
|
|
1294
|
-
this.
|
|
1295
|
-
if (this.
|
|
1296
|
-
this.
|
|
1294
|
+
this.k5a_1 = suspendResult;
|
|
1295
|
+
if (this.j5a_1.s() > 0) {
|
|
1296
|
+
this.d5a_1.x4z(joinToString(this.j5a_1, '\n'));
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
|
-
if (!equals(this.
|
|
1299
|
+
if (!equals(this.k5a_1, this.i5a_1)) {
|
|
1300
1300
|
this.g9_1 = 2;
|
|
1301
|
-
suspendResult = this.
|
|
1301
|
+
suspendResult = this.h5a_1.r4d(this.k5a_1, this);
|
|
1302
1302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1303
1303
|
return suspendResult;
|
|
1304
1304
|
}
|
|
@@ -1330,35 +1330,35 @@
|
|
|
1330
1330
|
}
|
|
1331
1331
|
while (true);
|
|
1332
1332
|
};
|
|
1333
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1334
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1335
|
-
i.
|
|
1336
|
-
i.
|
|
1333
|
+
protoOf(Logging$lambda$slambda_1).m5a = function ($this$on, response, completion) {
|
|
1334
|
+
var i = new Logging$lambda$slambda_1(this.c5a_1, this.d5a_1, this.e5a_1, this.f5a_1, this.g5a_1, completion);
|
|
1335
|
+
i.h5a_1 = $this$on;
|
|
1336
|
+
i.i5a_1 = response;
|
|
1337
1337
|
return i;
|
|
1338
1338
|
};
|
|
1339
1339
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1340
1340
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1341
1341
|
var l = function ($this$on, response, $completion) {
|
|
1342
|
-
return i.
|
|
1342
|
+
return i.l5a($this$on, response, $completion);
|
|
1343
1343
|
};
|
|
1344
1344
|
l.$arity = 2;
|
|
1345
1345
|
return l;
|
|
1346
1346
|
}
|
|
1347
1347
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1348
|
+
this.v5a_1 = $okHttpFormat;
|
|
1349
|
+
this.w5a_1 = $level;
|
|
1350
|
+
this.x5a_1 = $sanitizedHeaders;
|
|
1351
1351
|
CoroutineImpl.call(this, resultContinuation);
|
|
1352
1352
|
}
|
|
1353
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1354
|
-
var tmp = this.
|
|
1353
|
+
protoOf(Logging$lambda$slambda_3).h5b = function ($this$on, response, $completion) {
|
|
1354
|
+
var tmp = this.i5b($this$on, response, $completion);
|
|
1355
1355
|
tmp.i9_1 = Unit_instance;
|
|
1356
1356
|
tmp.j9_1 = null;
|
|
1357
1357
|
return tmp.o9();
|
|
1358
1358
|
};
|
|
1359
1359
|
protoOf(Logging$lambda$slambda_3).da = function (p1, p2, $completion) {
|
|
1360
1360
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1361
|
-
return this.
|
|
1361
|
+
return this.h5b(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1362
1362
|
};
|
|
1363
1363
|
protoOf(Logging$lambda$slambda_3).o9 = function () {
|
|
1364
1364
|
var suspendResult = this.i9_1;
|
|
@@ -1368,28 +1368,28 @@
|
|
|
1368
1368
|
switch (tmp) {
|
|
1369
1369
|
case 0:
|
|
1370
1370
|
this.h9_1 = 14;
|
|
1371
|
-
if (this.
|
|
1371
|
+
if (this.v5a_1)
|
|
1372
1372
|
return Unit_instance;
|
|
1373
|
-
if (this.
|
|
1373
|
+
if (this.w5a_1.equals(LogLevel_NONE_getInstance()) || this.z5a_1.v3j().p3j().y2j(get_DisableLogging()))
|
|
1374
1374
|
return Unit_instance;
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1375
|
+
this.a5b_1 = this.z5a_1.v3j().p3j().w2j(get_ClientCallLogger());
|
|
1376
|
+
this.b5b_1 = StringBuilder_init_$Create$();
|
|
1377
|
+
this.c5b_1 = false;
|
|
1378
1378
|
this.g9_1 = 1;
|
|
1379
1379
|
continue $sm;
|
|
1380
1380
|
case 1:
|
|
1381
1381
|
this.h9_1 = 4;
|
|
1382
1382
|
this.h9_1 = 3;
|
|
1383
|
-
logResponseHeader(this.
|
|
1383
|
+
logResponseHeader(this.b5b_1, this.z5a_1.v3j().g3h(), this.w5a_1, this.x5a_1);
|
|
1384
1384
|
this.g9_1 = 2;
|
|
1385
|
-
suspendResult = this.
|
|
1385
|
+
suspendResult = this.y5a_1.t52(this);
|
|
1386
1386
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1387
1387
|
return suspendResult;
|
|
1388
1388
|
}
|
|
1389
1389
|
|
|
1390
1390
|
continue $sm;
|
|
1391
1391
|
case 2:
|
|
1392
|
-
this.
|
|
1392
|
+
this.d5b_1 = suspendResult;
|
|
1393
1393
|
this.h9_1 = 14;
|
|
1394
1394
|
this.g9_1 = 9;
|
|
1395
1395
|
continue $sm;
|
|
@@ -1397,30 +1397,30 @@
|
|
|
1397
1397
|
this.h9_1 = 4;
|
|
1398
1398
|
var tmp_0 = this.j9_1;
|
|
1399
1399
|
if (tmp_0 instanceof Error) {
|
|
1400
|
-
this.
|
|
1400
|
+
this.e5b_1 = this.j9_1;
|
|
1401
1401
|
var tmp_1 = this;
|
|
1402
|
-
invoke$logResponseException(this.
|
|
1403
|
-
this.
|
|
1404
|
-
throw this.
|
|
1402
|
+
invoke$logResponseException(this.w5a_1, this.b5b_1, this.z5a_1.v3j().o3j(), this.e5b_1);
|
|
1403
|
+
this.c5b_1 = true;
|
|
1404
|
+
throw this.e5b_1;
|
|
1405
1405
|
} else {
|
|
1406
1406
|
throw this.j9_1;
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
1409
|
case 4:
|
|
1410
1410
|
this.h9_1 = 14;
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
if (this.
|
|
1411
|
+
this.f5b_1 = this.j9_1;
|
|
1412
|
+
this.a5b_1.s50(this.b5b_1.toString());
|
|
1413
|
+
if (this.c5b_1 || !this.w5a_1.b51_1) {
|
|
1414
1414
|
this.g9_1 = 7;
|
|
1415
|
-
suspendResult = this.
|
|
1415
|
+
suspendResult = this.a5b_1.w50(this);
|
|
1416
1416
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1417
1417
|
return suspendResult;
|
|
1418
1418
|
}
|
|
1419
1419
|
continue $sm;
|
|
1420
1420
|
} else {
|
|
1421
|
-
if (this.
|
|
1421
|
+
if (this.w5a_1.b51_1 && get_isSaved(this.z5a_1)) {
|
|
1422
1422
|
this.g9_1 = 5;
|
|
1423
|
-
suspendResult = logResponseBody(this.
|
|
1423
|
+
suspendResult = logResponseBody(this.a5b_1, this.z5a_1, this);
|
|
1424
1424
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1425
1425
|
return suspendResult;
|
|
1426
1426
|
}
|
|
@@ -1433,7 +1433,7 @@
|
|
|
1433
1433
|
|
|
1434
1434
|
case 5:
|
|
1435
1435
|
this.g9_1 = 6;
|
|
1436
|
-
suspendResult = this.
|
|
1436
|
+
suspendResult = this.a5b_1.w50(this);
|
|
1437
1437
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1438
1438
|
return suspendResult;
|
|
1439
1439
|
}
|
|
@@ -1446,22 +1446,22 @@
|
|
|
1446
1446
|
this.g9_1 = 8;
|
|
1447
1447
|
continue $sm;
|
|
1448
1448
|
case 8:
|
|
1449
|
-
throw this.
|
|
1449
|
+
throw this.f5b_1;
|
|
1450
1450
|
case 9:
|
|
1451
|
-
this.
|
|
1451
|
+
this.g5b_1 = this.d5b_1;
|
|
1452
1452
|
this.h9_1 = 14;
|
|
1453
|
-
this.
|
|
1454
|
-
if (this.
|
|
1453
|
+
this.a5b_1.s50(this.b5b_1.toString());
|
|
1454
|
+
if (this.c5b_1 || !this.w5a_1.b51_1) {
|
|
1455
1455
|
this.g9_1 = 12;
|
|
1456
|
-
suspendResult = this.
|
|
1456
|
+
suspendResult = this.a5b_1.w50(this);
|
|
1457
1457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1458
1458
|
return suspendResult;
|
|
1459
1459
|
}
|
|
1460
1460
|
continue $sm;
|
|
1461
1461
|
} else {
|
|
1462
|
-
if (this.
|
|
1462
|
+
if (this.w5a_1.b51_1 && get_isSaved(this.z5a_1)) {
|
|
1463
1463
|
this.g9_1 = 10;
|
|
1464
|
-
suspendResult = logResponseBody(this.
|
|
1464
|
+
suspendResult = logResponseBody(this.a5b_1, this.z5a_1, this);
|
|
1465
1465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1466
1466
|
return suspendResult;
|
|
1467
1467
|
}
|
|
@@ -1474,7 +1474,7 @@
|
|
|
1474
1474
|
|
|
1475
1475
|
case 10:
|
|
1476
1476
|
this.g9_1 = 11;
|
|
1477
|
-
suspendResult = this.
|
|
1477
|
+
suspendResult = this.a5b_1.w50(this);
|
|
1478
1478
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1479
1479
|
return suspendResult;
|
|
1480
1480
|
}
|
|
@@ -1502,34 +1502,34 @@
|
|
|
1502
1502
|
}
|
|
1503
1503
|
while (true);
|
|
1504
1504
|
};
|
|
1505
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1506
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1507
|
-
i.
|
|
1508
|
-
i.
|
|
1505
|
+
protoOf(Logging$lambda$slambda_3).i5b = function ($this$on, response, completion) {
|
|
1506
|
+
var i = new Logging$lambda$slambda_3(this.v5a_1, this.w5a_1, this.x5a_1, completion);
|
|
1507
|
+
i.y5a_1 = $this$on;
|
|
1508
|
+
i.z5a_1 = response;
|
|
1509
1509
|
return i;
|
|
1510
1510
|
};
|
|
1511
1511
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1512
1512
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1513
1513
|
var l = function ($this$on, response, $completion) {
|
|
1514
|
-
return i.
|
|
1514
|
+
return i.h5b($this$on, response, $completion);
|
|
1515
1515
|
};
|
|
1516
1516
|
l.$arity = 2;
|
|
1517
1517
|
return l;
|
|
1518
1518
|
}
|
|
1519
1519
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1520
|
-
this.
|
|
1521
|
-
this.
|
|
1520
|
+
this.r5b_1 = $okHttpFormat;
|
|
1521
|
+
this.s5b_1 = $level;
|
|
1522
1522
|
CoroutineImpl.call(this, resultContinuation);
|
|
1523
1523
|
}
|
|
1524
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1525
|
-
var tmp = this.
|
|
1524
|
+
protoOf(Logging$lambda$slambda_5).z5b = function ($this$on, call, $completion) {
|
|
1525
|
+
var tmp = this.a5c($this$on, call, $completion);
|
|
1526
1526
|
tmp.i9_1 = Unit_instance;
|
|
1527
1527
|
tmp.j9_1 = null;
|
|
1528
1528
|
return tmp.o9();
|
|
1529
1529
|
};
|
|
1530
1530
|
protoOf(Logging$lambda$slambda_5).da = function (p1, p2, $completion) {
|
|
1531
1531
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1532
|
-
return this.
|
|
1532
|
+
return this.z5b(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1533
1533
|
};
|
|
1534
1534
|
protoOf(Logging$lambda$slambda_5).o9 = function () {
|
|
1535
1535
|
var suspendResult = this.i9_1;
|
|
@@ -1539,22 +1539,22 @@
|
|
|
1539
1539
|
switch (tmp) {
|
|
1540
1540
|
case 0:
|
|
1541
1541
|
this.h9_1 = 6;
|
|
1542
|
-
if (this.
|
|
1542
|
+
if (this.r5b_1)
|
|
1543
1543
|
return Unit_instance;
|
|
1544
|
-
if (this.
|
|
1544
|
+
if (this.s5b_1.equals(LogLevel_NONE_getInstance()) || this.u5b_1.p3j().y2j(get_DisableLogging())) {
|
|
1545
1545
|
return Unit_instance;
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
1548
|
this.h9_1 = 2;
|
|
1549
1549
|
this.g9_1 = 1;
|
|
1550
|
-
suspendResult = this.
|
|
1550
|
+
suspendResult = this.t5b_1.h53(this);
|
|
1551
1551
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1552
1552
|
return suspendResult;
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
1555
1555
|
continue $sm;
|
|
1556
1556
|
case 1:
|
|
1557
|
-
this.
|
|
1557
|
+
this.v5b_1 = suspendResult;
|
|
1558
1558
|
this.h9_1 = 6;
|
|
1559
1559
|
this.g9_1 = 5;
|
|
1560
1560
|
continue $sm;
|
|
@@ -1562,12 +1562,12 @@
|
|
|
1562
1562
|
this.h9_1 = 6;
|
|
1563
1563
|
var tmp_0 = this.j9_1;
|
|
1564
1564
|
if (tmp_0 instanceof Error) {
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
invoke$logResponseException(this.
|
|
1565
|
+
this.w5b_1 = this.j9_1;
|
|
1566
|
+
this.x5b_1 = StringBuilder_init_$Create$();
|
|
1567
|
+
this.y5b_1 = this.u5b_1.p3j().w2j(get_ClientCallLogger());
|
|
1568
|
+
invoke$logResponseException(this.s5b_1, this.x5b_1, this.u5b_1.o3j(), this.w5b_1);
|
|
1569
1569
|
this.g9_1 = 3;
|
|
1570
|
-
suspendResult = this.
|
|
1570
|
+
suspendResult = this.y5b_1.t50(this.x5b_1.toString(), this);
|
|
1571
1571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1572
1572
|
return suspendResult;
|
|
1573
1573
|
}
|
|
@@ -1578,7 +1578,7 @@
|
|
|
1578
1578
|
|
|
1579
1579
|
case 3:
|
|
1580
1580
|
this.g9_1 = 4;
|
|
1581
|
-
suspendResult = this.
|
|
1581
|
+
suspendResult = this.y5b_1.w50(this);
|
|
1582
1582
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1583
1583
|
return suspendResult;
|
|
1584
1584
|
}
|
|
@@ -1586,7 +1586,7 @@
|
|
|
1586
1586
|
continue $sm;
|
|
1587
1587
|
case 4:
|
|
1588
1588
|
var tmp_1 = this;
|
|
1589
|
-
throw this.
|
|
1589
|
+
throw this.w5b_1;
|
|
1590
1590
|
case 5:
|
|
1591
1591
|
this.h9_1 = 6;
|
|
1592
1592
|
return Unit_instance;
|
|
@@ -1604,36 +1604,36 @@
|
|
|
1604
1604
|
}
|
|
1605
1605
|
while (true);
|
|
1606
1606
|
};
|
|
1607
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1608
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1609
|
-
i.
|
|
1610
|
-
i.
|
|
1607
|
+
protoOf(Logging$lambda$slambda_5).a5c = function ($this$on, call, completion) {
|
|
1608
|
+
var i = new Logging$lambda$slambda_5(this.r5b_1, this.s5b_1, completion);
|
|
1609
|
+
i.t5b_1 = $this$on;
|
|
1610
|
+
i.u5b_1 = call;
|
|
1611
1611
|
return i;
|
|
1612
1612
|
};
|
|
1613
1613
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1614
1614
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1615
1615
|
var l = function ($this$on, call, $completion) {
|
|
1616
|
-
return i.
|
|
1616
|
+
return i.z5b($this$on, call, $completion);
|
|
1617
1617
|
};
|
|
1618
1618
|
l.$arity = 2;
|
|
1619
1619
|
return l;
|
|
1620
1620
|
}
|
|
1621
1621
|
function Logging$lambda$lambda$lambda(it) {
|
|
1622
1622
|
_init_properties_Logging_kt__66pui5();
|
|
1623
|
-
return !get_isSaved(it.
|
|
1623
|
+
return !get_isSaved(it.g3h());
|
|
1624
1624
|
}
|
|
1625
1625
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1626
|
-
this.
|
|
1626
|
+
this.j5c_1 = $level;
|
|
1627
1627
|
CoroutineImpl.call(this, resultContinuation);
|
|
1628
1628
|
}
|
|
1629
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1630
|
-
var tmp = this.
|
|
1629
|
+
protoOf(Logging$lambda$lambda$slambda).n3t = function (response, $completion) {
|
|
1630
|
+
var tmp = this.w3r(response, $completion);
|
|
1631
1631
|
tmp.i9_1 = Unit_instance;
|
|
1632
1632
|
tmp.j9_1 = null;
|
|
1633
1633
|
return tmp.o9();
|
|
1634
1634
|
};
|
|
1635
1635
|
protoOf(Logging$lambda$lambda$slambda).ca = function (p1, $completion) {
|
|
1636
|
-
return this.
|
|
1636
|
+
return this.n3t(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1637
1637
|
};
|
|
1638
1638
|
protoOf(Logging$lambda$lambda$slambda).o9 = function () {
|
|
1639
1639
|
var suspendResult = this.i9_1;
|
|
@@ -1643,11 +1643,11 @@
|
|
|
1643
1643
|
switch (tmp) {
|
|
1644
1644
|
case 0:
|
|
1645
1645
|
this.h9_1 = 3;
|
|
1646
|
-
if (this.
|
|
1646
|
+
if (this.j5c_1.equals(LogLevel_NONE_getInstance()) || this.k5c_1.v3j().p3j().y2j(get_DisableLogging()))
|
|
1647
1647
|
return Unit_instance;
|
|
1648
|
-
this.
|
|
1648
|
+
this.l5c_1 = this.k5c_1.v3j().p3j().w2j(get_ClientCallLogger());
|
|
1649
1649
|
this.g9_1 = 1;
|
|
1650
|
-
suspendResult = logResponseBody(this.
|
|
1650
|
+
suspendResult = logResponseBody(this.l5c_1, this.k5c_1, this);
|
|
1651
1651
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1652
1652
|
return suspendResult;
|
|
1653
1653
|
}
|
|
@@ -1655,7 +1655,7 @@
|
|
|
1655
1655
|
continue $sm;
|
|
1656
1656
|
case 1:
|
|
1657
1657
|
this.g9_1 = 2;
|
|
1658
|
-
suspendResult = this.
|
|
1658
|
+
suspendResult = this.l5c_1.w50(this);
|
|
1659
1659
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1660
1660
|
return suspendResult;
|
|
1661
1661
|
}
|
|
@@ -1677,41 +1677,41 @@
|
|
|
1677
1677
|
}
|
|
1678
1678
|
while (true);
|
|
1679
1679
|
};
|
|
1680
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1681
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1682
|
-
i.
|
|
1680
|
+
protoOf(Logging$lambda$lambda$slambda).w3r = function (response, completion) {
|
|
1681
|
+
var i = new Logging$lambda$lambda$slambda(this.j5c_1, completion);
|
|
1682
|
+
i.k5c_1 = response;
|
|
1683
1683
|
return i;
|
|
1684
1684
|
};
|
|
1685
1685
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1686
1686
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1687
1687
|
var l = function (response, $completion) {
|
|
1688
|
-
return i.
|
|
1688
|
+
return i.n3t(response, $completion);
|
|
1689
1689
|
};
|
|
1690
1690
|
l.$arity = 1;
|
|
1691
1691
|
return l;
|
|
1692
1692
|
}
|
|
1693
1693
|
function Logging$lambda$lambda($level) {
|
|
1694
1694
|
return function ($this$prepare) {
|
|
1695
|
-
$this$prepare.
|
|
1696
|
-
$this$prepare.
|
|
1695
|
+
$this$prepare.p4d(Logging$lambda$lambda$lambda);
|
|
1696
|
+
$this$prepare.o4d(Logging$lambda$lambda$slambda_0($level, null));
|
|
1697
1697
|
return Unit_instance;
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1701
|
+
this.u5c_1 = $channel;
|
|
1702
|
+
this.v5c_1 = $firstChunk;
|
|
1703
|
+
this.w5c_1 = $firstReadSize;
|
|
1704
|
+
this.x5c_1 = $body;
|
|
1705
1705
|
CoroutineImpl.call(this, resultContinuation);
|
|
1706
1706
|
}
|
|
1707
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1708
|
-
var tmp = this.
|
|
1707
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).a5d = function ($this$async, $completion) {
|
|
1708
|
+
var tmp = this.k1x($this$async, $completion);
|
|
1709
1709
|
tmp.i9_1 = Unit_instance;
|
|
1710
1710
|
tmp.j9_1 = null;
|
|
1711
1711
|
return tmp.o9();
|
|
1712
1712
|
};
|
|
1713
1713
|
protoOf(Logging$lambda$detectIfBinary$slambda).ca = function (p1, $completion) {
|
|
1714
|
-
return this.
|
|
1714
|
+
return this.a5d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1715
1715
|
};
|
|
1716
1716
|
protoOf(Logging$lambda$detectIfBinary$slambda).o9 = function () {
|
|
1717
1717
|
var suspendResult = this.i9_1;
|
|
@@ -1722,7 +1722,7 @@
|
|
|
1722
1722
|
case 0:
|
|
1723
1723
|
this.h9_1 = 4;
|
|
1724
1724
|
this.g9_1 = 1;
|
|
1725
|
-
suspendResult = writeFully(this.
|
|
1725
|
+
suspendResult = writeFully(this.u5c_1, this.v5c_1, 0, this.w5c_1, this);
|
|
1726
1726
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1727
1727
|
return suspendResult;
|
|
1728
1728
|
}
|
|
@@ -1730,23 +1730,23 @@
|
|
|
1730
1730
|
continue $sm;
|
|
1731
1731
|
case 1:
|
|
1732
1732
|
this.g9_1 = 2;
|
|
1733
|
-
suspendResult = copyTo(this.
|
|
1733
|
+
suspendResult = copyTo(this.x5c_1, this.u5c_1, this);
|
|
1734
1734
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1735
1735
|
return suspendResult;
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
1738
|
continue $sm;
|
|
1739
1739
|
case 2:
|
|
1740
|
-
this.
|
|
1740
|
+
this.z5c_1 = suspendResult;
|
|
1741
1741
|
this.g9_1 = 3;
|
|
1742
|
-
suspendResult = this.
|
|
1742
|
+
suspendResult = this.u5c_1.n1n(this);
|
|
1743
1743
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1744
1744
|
return suspendResult;
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
continue $sm;
|
|
1748
1748
|
case 3:
|
|
1749
|
-
return this.
|
|
1749
|
+
return this.z5c_1;
|
|
1750
1750
|
case 4:
|
|
1751
1751
|
throw this.j9_1;
|
|
1752
1752
|
}
|
|
@@ -1761,15 +1761,15 @@
|
|
|
1761
1761
|
}
|
|
1762
1762
|
while (true);
|
|
1763
1763
|
};
|
|
1764
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1765
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
1766
|
-
i.
|
|
1764
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).k1x = function ($this$async, completion) {
|
|
1765
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.u5c_1, this.v5c_1, this.w5c_1, this.x5c_1, completion);
|
|
1766
|
+
i.y5c_1 = $this$async;
|
|
1767
1767
|
return i;
|
|
1768
1768
|
};
|
|
1769
1769
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1770
1770
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
1771
1771
|
var l = function ($this$async, $completion) {
|
|
1772
|
-
return i.
|
|
1772
|
+
return i.a5d($this$async, $completion);
|
|
1773
1773
|
};
|
|
1774
1774
|
l.$arity = 1;
|
|
1775
1775
|
return l;
|
|
@@ -1779,18 +1779,18 @@
|
|
|
1779
1779
|
return it;
|
|
1780
1780
|
}
|
|
1781
1781
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1782
|
+
this.j5d_1 = $content;
|
|
1783
|
+
this.k5d_1 = $channel;
|
|
1784
1784
|
CoroutineImpl.call(this, resultContinuation);
|
|
1785
1785
|
}
|
|
1786
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1787
|
-
var tmp = this.
|
|
1786
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).j1x = function ($this$launch, $completion) {
|
|
1787
|
+
var tmp = this.k1x($this$launch, $completion);
|
|
1788
1788
|
tmp.i9_1 = Unit_instance;
|
|
1789
1789
|
tmp.j9_1 = null;
|
|
1790
1790
|
return tmp.o9();
|
|
1791
1791
|
};
|
|
1792
1792
|
protoOf(Logging$lambda$logOutgoingContent$slambda).ca = function (p1, $completion) {
|
|
1793
|
-
return this.
|
|
1793
|
+
return this.j1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1794
1794
|
};
|
|
1795
1795
|
protoOf(Logging$lambda$logOutgoingContent$slambda).o9 = function () {
|
|
1796
1796
|
var suspendResult = this.i9_1;
|
|
@@ -1801,14 +1801,14 @@
|
|
|
1801
1801
|
case 0:
|
|
1802
1802
|
this.h9_1 = 2;
|
|
1803
1803
|
this.g9_1 = 1;
|
|
1804
|
-
suspendResult = this.
|
|
1804
|
+
suspendResult = this.j5d_1.r35(this.k5d_1, this);
|
|
1805
1805
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1806
1806
|
return suspendResult;
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
1809
|
continue $sm;
|
|
1810
1810
|
case 1:
|
|
1811
|
-
this.
|
|
1811
|
+
this.k5d_1.p4();
|
|
1812
1812
|
return Unit_instance;
|
|
1813
1813
|
case 2:
|
|
1814
1814
|
throw this.j9_1;
|
|
@@ -1824,22 +1824,22 @@
|
|
|
1824
1824
|
}
|
|
1825
1825
|
while (true);
|
|
1826
1826
|
};
|
|
1827
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1828
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1829
|
-
i.
|
|
1827
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).k1x = function ($this$launch, completion) {
|
|
1828
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.j5d_1, this.k5d_1, completion);
|
|
1829
|
+
i.l5d_1 = $this$launch;
|
|
1830
1830
|
return i;
|
|
1831
1831
|
};
|
|
1832
1832
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1833
1833
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1834
1834
|
var l = function ($this$launch, $completion) {
|
|
1835
|
-
return i.
|
|
1835
|
+
return i.j1x($this$launch, $completion);
|
|
1836
1836
|
};
|
|
1837
1837
|
l.$arity = 1;
|
|
1838
1838
|
return l;
|
|
1839
1839
|
}
|
|
1840
1840
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1841
1841
|
_init_properties_Logging_kt__66pui5();
|
|
1842
|
-
return GZipEncoder_getInstance().
|
|
1842
|
+
return GZipEncoder_getInstance().p2n(channel);
|
|
1843
1843
|
}
|
|
1844
1844
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1845
1845
|
return function ($this$replaceResponse) {
|
|
@@ -1847,20 +1847,20 @@
|
|
|
1847
1847
|
};
|
|
1848
1848
|
}
|
|
1849
1849
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1850
|
-
this.
|
|
1851
|
-
this.
|
|
1852
|
-
this.
|
|
1853
|
-
this.
|
|
1850
|
+
this.u5d_1 = $channel;
|
|
1851
|
+
this.v5d_1 = $charset;
|
|
1852
|
+
this.w5d_1 = $requestLog;
|
|
1853
|
+
this.x5d_1 = $logger;
|
|
1854
1854
|
CoroutineImpl.call(this, resultContinuation);
|
|
1855
1855
|
}
|
|
1856
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1857
|
-
var tmp = this.
|
|
1856
|
+
protoOf(Logging$lambda$logRequestBody$slambda).j1x = function ($this$launch, $completion) {
|
|
1857
|
+
var tmp = this.k1x($this$launch, $completion);
|
|
1858
1858
|
tmp.i9_1 = Unit_instance;
|
|
1859
1859
|
tmp.j9_1 = null;
|
|
1860
1860
|
return tmp.o9();
|
|
1861
1861
|
};
|
|
1862
1862
|
protoOf(Logging$lambda$logRequestBody$slambda).ca = function (p1, $completion) {
|
|
1863
|
-
return this.
|
|
1863
|
+
return this.j1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1864
1864
|
};
|
|
1865
1865
|
protoOf(Logging$lambda$logRequestBody$slambda).o9 = function () {
|
|
1866
1866
|
var suspendResult = this.i9_1;
|
|
@@ -1875,14 +1875,14 @@
|
|
|
1875
1875
|
case 1:
|
|
1876
1876
|
this.h9_1 = 6;
|
|
1877
1877
|
var tmp_0 = this;
|
|
1878
|
-
tmp_0.
|
|
1878
|
+
tmp_0.a5e_1 = this.u5d_1;
|
|
1879
1879
|
var tmp_1 = this;
|
|
1880
|
-
tmp_1.
|
|
1881
|
-
this.
|
|
1882
|
-
this.
|
|
1880
|
+
tmp_1.b5e_1 = this.v5d_1;
|
|
1881
|
+
this.c5e_1 = this.a5e_1;
|
|
1882
|
+
this.d5e_1 = this.b5e_1;
|
|
1883
1883
|
this.h9_1 = 3;
|
|
1884
1884
|
this.g9_1 = 2;
|
|
1885
|
-
suspendResult = readRemaining(this.
|
|
1885
|
+
suspendResult = readRemaining(this.c5e_1, this);
|
|
1886
1886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1887
1887
|
return suspendResult;
|
|
1888
1888
|
}
|
|
@@ -1890,7 +1890,7 @@
|
|
|
1890
1890
|
continue $sm;
|
|
1891
1891
|
case 2:
|
|
1892
1892
|
var ARGUMENT = suspendResult;
|
|
1893
|
-
this.
|
|
1893
|
+
this.e5e_1 = readText(ARGUMENT, this.d5e_1);
|
|
1894
1894
|
this.h9_1 = 6;
|
|
1895
1895
|
this.g9_1 = 4;
|
|
1896
1896
|
continue $sm;
|
|
@@ -1900,7 +1900,7 @@
|
|
|
1900
1900
|
if (tmp_2 instanceof Error) {
|
|
1901
1901
|
var cause = this.j9_1;
|
|
1902
1902
|
var tmp_3 = this;
|
|
1903
|
-
tmp_3.
|
|
1903
|
+
tmp_3.e5e_1 = null;
|
|
1904
1904
|
this.g9_1 = 4;
|
|
1905
1905
|
continue $sm;
|
|
1906
1906
|
} else {
|
|
@@ -1909,27 +1909,27 @@
|
|
|
1909
1909
|
|
|
1910
1910
|
case 4:
|
|
1911
1911
|
this.h9_1 = 6;
|
|
1912
|
-
var tmp0_elvis_lhs = this.
|
|
1912
|
+
var tmp0_elvis_lhs = this.e5e_1;
|
|
1913
1913
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1914
|
-
var tmp0 = this.
|
|
1914
|
+
var tmp0 = this.w5d_1;
|
|
1915
1915
|
var value = 'BODY START';
|
|
1916
1916
|
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1917
|
+
this.w5d_1.r8(text).s8(_Char___init__impl__6a9atx(10));
|
|
1918
|
+
this.z5d_1 = this.w5d_1.r8('BODY END');
|
|
1919
1919
|
this.h9_1 = 7;
|
|
1920
1920
|
this.g9_1 = 5;
|
|
1921
1921
|
continue $sm;
|
|
1922
1922
|
case 5:
|
|
1923
|
-
this.
|
|
1923
|
+
this.z5d_1;
|
|
1924
1924
|
this.h9_1 = 7;
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1925
|
+
this.x5d_1.r50(this.w5d_1.toString());
|
|
1926
|
+
this.x5d_1.v50();
|
|
1927
1927
|
return Unit_instance;
|
|
1928
1928
|
case 6:
|
|
1929
1929
|
this.h9_1 = 7;
|
|
1930
1930
|
var t = this.j9_1;
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1931
|
+
this.x5d_1.r50(this.w5d_1.toString());
|
|
1932
|
+
this.x5d_1.v50();
|
|
1933
1933
|
throw t;
|
|
1934
1934
|
case 7:
|
|
1935
1935
|
throw this.j9_1;
|
|
@@ -1945,26 +1945,26 @@
|
|
|
1945
1945
|
}
|
|
1946
1946
|
while (true);
|
|
1947
1947
|
};
|
|
1948
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1949
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1950
|
-
i.
|
|
1948
|
+
protoOf(Logging$lambda$logRequestBody$slambda).k1x = function ($this$launch, completion) {
|
|
1949
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.u5d_1, this.v5d_1, this.w5d_1, this.x5d_1, completion);
|
|
1950
|
+
i.y5d_1 = $this$launch;
|
|
1951
1951
|
return i;
|
|
1952
1952
|
};
|
|
1953
1953
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1954
1954
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1955
1955
|
var l = function ($this$launch, $completion) {
|
|
1956
|
-
return i.
|
|
1956
|
+
return i.j1x($this$launch, $completion);
|
|
1957
1957
|
};
|
|
1958
1958
|
l.$arity = 1;
|
|
1959
1959
|
return l;
|
|
1960
1960
|
}
|
|
1961
1961
|
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1962
1962
|
CoroutineImpl.call(this, resultContinuation);
|
|
1963
|
-
this.
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1967
|
-
this.
|
|
1963
|
+
this.c54_1 = $this_createClientPlugin;
|
|
1964
|
+
this.d54_1 = body;
|
|
1965
|
+
this.e54_1 = contentLength;
|
|
1966
|
+
this.f54_1 = contentType;
|
|
1967
|
+
this.g54_1 = headers;
|
|
1968
1968
|
}
|
|
1969
1969
|
protoOf($invoke$detectIfBinaryCOROUTINE$).o9 = function () {
|
|
1970
1970
|
var suspendResult = this.i9_1;
|
|
@@ -1974,48 +1974,48 @@
|
|
|
1974
1974
|
switch (tmp) {
|
|
1975
1975
|
case 0:
|
|
1976
1976
|
this.h9_1 = 4;
|
|
1977
|
-
if (this.
|
|
1978
|
-
return new Triple(true, this.
|
|
1977
|
+
if (this.g54_1.f2o(HttpHeaders_getInstance().y2v_1)) {
|
|
1978
|
+
return new Triple(true, this.e54_1, this.d54_1);
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
1981
|
var tmp_0 = this;
|
|
1982
1982
|
var tmp_1;
|
|
1983
|
-
if (!(this.
|
|
1984
|
-
var tmp0_elvis_lhs = charset(this.
|
|
1985
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
1983
|
+
if (!(this.f54_1 == null)) {
|
|
1984
|
+
var tmp0_elvis_lhs = charset(this.f54_1);
|
|
1985
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().e1y_1 : tmp0_elvis_lhs;
|
|
1986
1986
|
} else {
|
|
1987
|
-
tmp_1 = Charsets_getInstance().
|
|
1987
|
+
tmp_1 = Charsets_getInstance().e1y_1;
|
|
1988
1988
|
}
|
|
1989
1989
|
|
|
1990
|
-
tmp_0.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1990
|
+
tmp_0.h54_1 = tmp_1;
|
|
1991
|
+
this.i54_1 = false;
|
|
1992
|
+
this.j54_1 = new Int8Array(1024);
|
|
1993
1993
|
this.g9_1 = 1;
|
|
1994
|
-
suspendResult = readAvailable(this.
|
|
1994
|
+
suspendResult = readAvailable(this.d54_1, this.j54_1, VOID, VOID, this);
|
|
1995
1995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1996
1996
|
return suspendResult;
|
|
1997
1997
|
}
|
|
1998
1998
|
|
|
1999
1999
|
continue $sm;
|
|
2000
2000
|
case 1:
|
|
2001
|
-
this.
|
|
2002
|
-
if (this.
|
|
2003
|
-
return new Triple(false, new Long(0, 0), this.
|
|
2001
|
+
this.k54_1 = suspendResult;
|
|
2002
|
+
if (this.k54_1 < 1) {
|
|
2003
|
+
return new Triple(false, new Long(0, 0), this.d54_1);
|
|
2004
2004
|
}
|
|
2005
2005
|
|
|
2006
2006
|
var tmp_2 = this;
|
|
2007
2007
|
var this_0 = new Buffer();
|
|
2008
|
-
writeFully_0(this_0, this.
|
|
2009
|
-
tmp_2.
|
|
2008
|
+
writeFully_0(this_0, this.j54_1, 0, this.k54_1);
|
|
2009
|
+
tmp_2.l54_1 = this_0;
|
|
2010
2010
|
var tmp_3 = this;
|
|
2011
2011
|
var tmp_4;
|
|
2012
2012
|
try {
|
|
2013
|
-
tmp_4 = decode(this.
|
|
2013
|
+
tmp_4 = decode(this.h54_1.i1y(), this.l54_1);
|
|
2014
2014
|
} catch ($p) {
|
|
2015
2015
|
var tmp_5;
|
|
2016
2016
|
if ($p instanceof MalformedInputException) {
|
|
2017
2017
|
var _unused_var__etf5q3 = $p;
|
|
2018
|
-
this.
|
|
2018
|
+
this.i54_1 = true;
|
|
2019
2019
|
tmp_5 = '';
|
|
2020
2020
|
} else {
|
|
2021
2021
|
throw $p;
|
|
@@ -2023,10 +2023,10 @@
|
|
|
2023
2023
|
tmp_4 = tmp_5;
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
tmp_3.
|
|
2027
|
-
if (!this.
|
|
2026
|
+
tmp_3.m54_1 = tmp_4;
|
|
2027
|
+
if (!this.i54_1) {
|
|
2028
2028
|
var lastCharIndex = -1;
|
|
2029
|
-
var indexedObject = this.
|
|
2029
|
+
var indexedObject = this.m54_1;
|
|
2030
2030
|
var inductionVariable = 0;
|
|
2031
2031
|
var last = indexedObject.length;
|
|
2032
2032
|
while (inductionVariable < last) {
|
|
@@ -2034,7 +2034,7 @@
|
|
|
2034
2034
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2035
2035
|
lastCharIndex = lastCharIndex + 1 | 0;
|
|
2036
2036
|
}
|
|
2037
|
-
var indexedObject_0 = this.
|
|
2037
|
+
var indexedObject_0 = this.m54_1;
|
|
2038
2038
|
var inductionVariable_0 = 0;
|
|
2039
2039
|
var last_0 = indexedObject_0.length;
|
|
2040
2040
|
$l$loop: while (inductionVariable_0 < last_0) {
|
|
@@ -2042,16 +2042,16 @@
|
|
|
2042
2042
|
var ch_0 = charCodeAt(indexedObject_0, inductionVariable_0);
|
|
2043
2043
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2044
2044
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2045
|
-
this.
|
|
2045
|
+
this.i54_1 = true;
|
|
2046
2046
|
break $l$loop;
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
|
-
if (!this.
|
|
2052
|
-
this.
|
|
2051
|
+
if (!this.i54_1) {
|
|
2052
|
+
this.n54_1 = new ByteChannel();
|
|
2053
2053
|
this.g9_1 = 3;
|
|
2054
|
-
suspendResult = async(this.
|
|
2054
|
+
suspendResult = async(this.c54_1.v3q_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.n54_1, this.j54_1, this.k54_1, this.d54_1, null)).eu(this);
|
|
2055
2055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2056
2056
|
return suspendResult;
|
|
2057
2057
|
}
|
|
@@ -2062,12 +2062,12 @@
|
|
|
2062
2062
|
}
|
|
2063
2063
|
|
|
2064
2064
|
case 2:
|
|
2065
|
-
return new Triple(this.
|
|
2065
|
+
return new Triple(this.i54_1, this.e54_1, this.d54_1);
|
|
2066
2066
|
case 3:
|
|
2067
2067
|
var copied = suspendResult;
|
|
2068
|
-
var tmp_6 = this.
|
|
2069
|
-
var other = this.
|
|
2070
|
-
return new Triple(tmp_6, copied.z2(toLong(other)), this.
|
|
2068
|
+
var tmp_6 = this.i54_1;
|
|
2069
|
+
var other = this.k54_1;
|
|
2070
|
+
return new Triple(tmp_6, copied.z2(toLong(other)), this.n54_1);
|
|
2071
2071
|
case 4:
|
|
2072
2072
|
throw this.j9_1;
|
|
2073
2073
|
}
|
|
@@ -2084,13 +2084,13 @@
|
|
|
2084
2084
|
};
|
|
2085
2085
|
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2086
2086
|
CoroutineImpl.call(this, resultContinuation);
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2093
|
-
this.
|
|
2087
|
+
this.w54_1 = $this_createClientPlugin;
|
|
2088
|
+
this.x54_1 = content;
|
|
2089
|
+
this.y54_1 = contentLength;
|
|
2090
|
+
this.z54_1 = headers;
|
|
2091
|
+
this.a55_1 = method;
|
|
2092
|
+
this.b55_1 = logLines;
|
|
2093
|
+
this.c55_1 = body;
|
|
2094
2094
|
}
|
|
2095
2095
|
protoOf($invoke$logRequestBodyCOROUTINE$).o9 = function () {
|
|
2096
2096
|
var suspendResult = this.i9_1;
|
|
@@ -2101,30 +2101,30 @@
|
|
|
2101
2101
|
case 0:
|
|
2102
2102
|
this.h9_1 = 4;
|
|
2103
2103
|
this.g9_1 = 1;
|
|
2104
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2104
|
+
suspendResult = invoke$detectIfBinary(this.w54_1, this.c55_1, this.y54_1, this.x54_1.j35(), this.z54_1, this);
|
|
2105
2105
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2106
2106
|
return suspendResult;
|
|
2107
2107
|
}
|
|
2108
2108
|
|
|
2109
2109
|
continue $sm;
|
|
2110
2110
|
case 1:
|
|
2111
|
-
this.
|
|
2112
|
-
this.
|
|
2113
|
-
this.
|
|
2114
|
-
this.
|
|
2115
|
-
if (!this.
|
|
2116
|
-
this.
|
|
2111
|
+
this.d55_1 = suspendResult;
|
|
2112
|
+
this.e55_1 = this.d55_1.tg();
|
|
2113
|
+
this.f55_1 = this.d55_1.ug();
|
|
2114
|
+
this.g55_1 = this.d55_1.tl();
|
|
2115
|
+
if (!this.e55_1) {
|
|
2116
|
+
this.i55_1 = this.x54_1.j35();
|
|
2117
2117
|
var tmp_0 = this;
|
|
2118
2118
|
var tmp_1;
|
|
2119
|
-
if (!(this.
|
|
2120
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2121
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2119
|
+
if (!(this.i55_1 == null)) {
|
|
2120
|
+
var tmp0_elvis_lhs = charset(this.i55_1);
|
|
2121
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().e1y_1 : tmp0_elvis_lhs;
|
|
2122
2122
|
} else {
|
|
2123
|
-
tmp_1 = Charsets_getInstance().
|
|
2123
|
+
tmp_1 = Charsets_getInstance().e1y_1;
|
|
2124
2124
|
}
|
|
2125
|
-
tmp_0.
|
|
2125
|
+
tmp_0.j55_1 = tmp_1;
|
|
2126
2126
|
this.g9_1 = 2;
|
|
2127
|
-
suspendResult = readRemaining(this.
|
|
2127
|
+
suspendResult = readRemaining(this.g55_1, this);
|
|
2128
2128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2129
2129
|
return suspendResult;
|
|
2130
2130
|
}
|
|
@@ -2132,25 +2132,25 @@
|
|
|
2132
2132
|
} else {
|
|
2133
2133
|
var tmp_2 = this;
|
|
2134
2134
|
var type = 'binary';
|
|
2135
|
-
if (this.
|
|
2135
|
+
if (this.z54_1.f2o(HttpHeaders_getInstance().y2v_1)) {
|
|
2136
2136
|
type = 'encoded';
|
|
2137
2137
|
}
|
|
2138
2138
|
var tmp_3;
|
|
2139
|
-
if (!(this.
|
|
2140
|
-
tmp_3 = this.
|
|
2139
|
+
if (!(this.f55_1 == null)) {
|
|
2140
|
+
tmp_3 = this.b55_1.k('--> END ' + this.a55_1.x2z_1 + ' (' + type + ' ' + toString_0(this.f55_1) + '-byte body omitted)');
|
|
2141
2141
|
} else {
|
|
2142
|
-
tmp_3 = this.
|
|
2142
|
+
tmp_3 = this.b55_1.k('--> END ' + this.a55_1.x2z_1 + ' (' + type + ' body omitted)');
|
|
2143
2143
|
}
|
|
2144
|
-
tmp_2.
|
|
2144
|
+
tmp_2.h55_1 = tmp_3;
|
|
2145
2145
|
this.g9_1 = 3;
|
|
2146
2146
|
continue $sm;
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
2149
|
case 2:
|
|
2150
2150
|
var ARGUMENT = suspendResult;
|
|
2151
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2152
|
-
this.
|
|
2153
|
-
this.
|
|
2151
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.j55_1);
|
|
2152
|
+
this.b55_1.k(ARGUMENT_0);
|
|
2153
|
+
this.h55_1 = this.b55_1.k('--> END ' + this.a55_1.x2z_1 + ' (' + toString_0(this.f55_1) + '-byte body)');
|
|
2154
2154
|
this.g9_1 = 3;
|
|
2155
2155
|
continue $sm;
|
|
2156
2156
|
case 3:
|
|
@@ -2171,12 +2171,12 @@
|
|
|
2171
2171
|
};
|
|
2172
2172
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2173
2173
|
CoroutineImpl.call(this, resultContinuation);
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2177
|
-
this.
|
|
2178
|
-
this.
|
|
2179
|
-
this.
|
|
2174
|
+
this.s55_1 = $this_createClientPlugin;
|
|
2175
|
+
this.t55_1 = content;
|
|
2176
|
+
this.u55_1 = method;
|
|
2177
|
+
this.v55_1 = headers;
|
|
2178
|
+
this.w55_1 = logLines;
|
|
2179
|
+
this.x55_1 = process;
|
|
2180
2180
|
}
|
|
2181
2181
|
protoOf($invoke$logOutgoingContentCOROUTINE$).o9 = function () {
|
|
2182
2182
|
var suspendResult = this.i9_1;
|
|
@@ -2186,63 +2186,63 @@
|
|
|
2186
2186
|
switch (tmp) {
|
|
2187
2187
|
case 0:
|
|
2188
2188
|
this.h9_1 = 6;
|
|
2189
|
-
this.
|
|
2190
|
-
var tmp_0 = this.
|
|
2189
|
+
this.y55_1 = this.t55_1;
|
|
2190
|
+
var tmp_0 = this.y55_1;
|
|
2191
2191
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
2192
|
-
this.
|
|
2192
|
+
this.a56_1 = this.t55_1.m35();
|
|
2193
2193
|
this.g9_1 = 4;
|
|
2194
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2194
|
+
suspendResult = invoke$logRequestBody(this.s55_1, this.t55_1, toLong(this.a56_1.length), this.v55_1, this.u55_1, this.w55_1, ByteReadChannel(this.a56_1), this);
|
|
2195
2195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2196
2196
|
return suspendResult;
|
|
2197
2197
|
}
|
|
2198
2198
|
continue $sm;
|
|
2199
2199
|
} else {
|
|
2200
|
-
var tmp_1 = this.
|
|
2200
|
+
var tmp_1 = this.y55_1;
|
|
2201
2201
|
if (tmp_1 instanceof ContentWrapper) {
|
|
2202
2202
|
this.g9_1 = 3;
|
|
2203
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2203
|
+
suspendResult = invoke$logOutgoingContent(this.s55_1, this.t55_1.v35(), this.u55_1, this.v55_1, this.w55_1, this.x55_1, this);
|
|
2204
2204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2205
2205
|
return suspendResult;
|
|
2206
2206
|
}
|
|
2207
2207
|
continue $sm;
|
|
2208
2208
|
} else {
|
|
2209
|
-
var tmp_2 = this.
|
|
2209
|
+
var tmp_2 = this.y55_1;
|
|
2210
2210
|
if (tmp_2 instanceof NoContent) {
|
|
2211
2211
|
var tmp_3 = this;
|
|
2212
|
-
this.
|
|
2213
|
-
tmp_3.
|
|
2212
|
+
this.w55_1.k('--> END ' + this.u55_1.x2z_1);
|
|
2213
|
+
tmp_3.z55_1 = null;
|
|
2214
2214
|
this.g9_1 = 5;
|
|
2215
2215
|
continue $sm;
|
|
2216
2216
|
} else {
|
|
2217
|
-
var tmp_4 = this.
|
|
2217
|
+
var tmp_4 = this.y55_1;
|
|
2218
2218
|
if (tmp_4 instanceof ProtocolUpgrade) {
|
|
2219
2219
|
var tmp_5 = this;
|
|
2220
|
-
this.
|
|
2221
|
-
tmp_5.
|
|
2220
|
+
this.w55_1.k('--> END ' + this.u55_1.x2z_1);
|
|
2221
|
+
tmp_5.z55_1 = null;
|
|
2222
2222
|
this.g9_1 = 5;
|
|
2223
2223
|
continue $sm;
|
|
2224
2224
|
} else {
|
|
2225
|
-
var tmp_6 = this.
|
|
2225
|
+
var tmp_6 = this.y55_1;
|
|
2226
2226
|
if (tmp_6 instanceof ReadChannelContent) {
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2229
|
-
this.
|
|
2227
|
+
this.b56_1 = split(this.t55_1.p35(), this.s55_1.v3q_1);
|
|
2228
|
+
this.c56_1 = this.b56_1.tg();
|
|
2229
|
+
this.d56_1 = this.b56_1.ug();
|
|
2230
2230
|
this.g9_1 = 2;
|
|
2231
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2231
|
+
suspendResult = invoke$logRequestBody(this.s55_1, this.t55_1, this.t55_1.l35(), this.v55_1, this.u55_1, this.w55_1, this.d56_1, this);
|
|
2232
2232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2233
2233
|
return suspendResult;
|
|
2234
2234
|
}
|
|
2235
2235
|
continue $sm;
|
|
2236
2236
|
} else {
|
|
2237
|
-
var tmp_7 = this.
|
|
2237
|
+
var tmp_7 = this.y55_1;
|
|
2238
2238
|
if (tmp_7 instanceof WriteChannelContent) {
|
|
2239
|
-
this.
|
|
2240
|
-
launch(this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2239
|
+
this.e56_1 = new ByteChannel();
|
|
2240
|
+
launch(this.s55_1.v3q_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.t55_1, this.e56_1, null));
|
|
2241
|
+
this.f56_1 = split(this.e56_1, this.s55_1.v3q_1);
|
|
2242
|
+
this.g56_1 = this.f56_1.tg();
|
|
2243
|
+
this.h56_1 = this.f56_1.ug();
|
|
2244
2244
|
this.g9_1 = 1;
|
|
2245
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2245
|
+
suspendResult = invoke$logRequestBody(this.s55_1, this.t55_1, this.t55_1.l35(), this.v55_1, this.u55_1, this.w55_1, this.h56_1, this);
|
|
2246
2246
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2247
2247
|
return suspendResult;
|
|
2248
2248
|
}
|
|
@@ -2259,23 +2259,23 @@
|
|
|
2259
2259
|
|
|
2260
2260
|
break;
|
|
2261
2261
|
case 1:
|
|
2262
|
-
this.
|
|
2262
|
+
this.z55_1 = new LoggedContent(this.t55_1, this.g56_1);
|
|
2263
2263
|
this.g9_1 = 5;
|
|
2264
2264
|
continue $sm;
|
|
2265
2265
|
case 2:
|
|
2266
|
-
this.
|
|
2266
|
+
this.z55_1 = new LoggedContent(this.t55_1, this.c56_1);
|
|
2267
2267
|
this.g9_1 = 5;
|
|
2268
2268
|
continue $sm;
|
|
2269
2269
|
case 3:
|
|
2270
|
-
this.
|
|
2270
|
+
this.z55_1 = suspendResult;
|
|
2271
2271
|
this.g9_1 = 5;
|
|
2272
2272
|
continue $sm;
|
|
2273
2273
|
case 4:
|
|
2274
|
-
this.
|
|
2274
|
+
this.z55_1 = null;
|
|
2275
2275
|
this.g9_1 = 5;
|
|
2276
2276
|
continue $sm;
|
|
2277
2277
|
case 5:
|
|
2278
|
-
return this.
|
|
2278
|
+
return this.z55_1;
|
|
2279
2279
|
case 6:
|
|
2280
2280
|
throw this.j9_1;
|
|
2281
2281
|
}
|
|
@@ -2292,11 +2292,11 @@
|
|
|
2292
2292
|
};
|
|
2293
2293
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2294
2294
|
CoroutineImpl.call(this, resultContinuation);
|
|
2295
|
-
this.
|
|
2296
|
-
this.
|
|
2297
|
-
this.
|
|
2298
|
-
this.
|
|
2299
|
-
this.
|
|
2295
|
+
this.q56_1 = sanitizedHeaders;
|
|
2296
|
+
this.r56_1 = level;
|
|
2297
|
+
this.s56_1 = $this_createClientPlugin;
|
|
2298
|
+
this.t56_1 = request;
|
|
2299
|
+
this.u56_1 = logLines;
|
|
2300
2300
|
}
|
|
2301
2301
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).o9 = function () {
|
|
2302
2302
|
var suspendResult = this.i9_1;
|
|
@@ -2306,98 +2306,98 @@
|
|
|
2306
2306
|
switch (tmp) {
|
|
2307
2307
|
case 0:
|
|
2308
2308
|
this.h9_1 = 4;
|
|
2309
|
-
if (invoke$isNone(this.
|
|
2309
|
+
if (invoke$isNone(this.r56_1))
|
|
2310
2310
|
return null;
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2311
|
+
this.v56_1 = pathQuery(takeFrom(new URLBuilder(), this.t56_1.g3i_1).k2v());
|
|
2312
|
+
this.w56_1 = this.t56_1.j3i_1;
|
|
2313
2313
|
var tmp_0 = this;
|
|
2314
2314
|
var this_0 = new HeadersBuilder();
|
|
2315
2315
|
var tmp_1;
|
|
2316
2316
|
var tmp_2;
|
|
2317
2317
|
var tmp_3;
|
|
2318
|
-
var tmp_4 = this.
|
|
2318
|
+
var tmp_4 = this.w56_1;
|
|
2319
2319
|
if (tmp_4 instanceof OutgoingContent) {
|
|
2320
|
-
tmp_3 = !this.
|
|
2320
|
+
tmp_3 = !this.t56_1.h3i_1.equals(Companion_getInstance().p2z_1);
|
|
2321
2321
|
} else {
|
|
2322
2322
|
tmp_3 = false;
|
|
2323
2323
|
}
|
|
2324
2324
|
|
|
2325
2325
|
if (tmp_3) {
|
|
2326
|
-
tmp_2 = !this.
|
|
2326
|
+
tmp_2 = !this.t56_1.h3i_1.equals(Companion_getInstance().u2z_1);
|
|
2327
2327
|
} else {
|
|
2328
2328
|
tmp_2 = false;
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
2331
|
if (tmp_2) {
|
|
2332
|
-
var tmp_5 = this.
|
|
2332
|
+
var tmp_5 = this.w56_1;
|
|
2333
2333
|
tmp_1 = !(tmp_5 instanceof EmptyContent);
|
|
2334
2334
|
} else {
|
|
2335
2335
|
tmp_1 = false;
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
2338
|
if (tmp_1) {
|
|
2339
|
-
var tmp0_safe_receiver = this.
|
|
2339
|
+
var tmp0_safe_receiver = this.w56_1.j35();
|
|
2340
2340
|
if (tmp0_safe_receiver == null)
|
|
2341
2341
|
null;
|
|
2342
2342
|
else {
|
|
2343
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2343
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().d2w_1, tmp0_safe_receiver.toString());
|
|
2344
2344
|
}
|
|
2345
|
-
var tmp1_safe_receiver = this.
|
|
2345
|
+
var tmp1_safe_receiver = this.w56_1.l35();
|
|
2346
2346
|
if (tmp1_safe_receiver == null)
|
|
2347
2347
|
null;
|
|
2348
2348
|
else {
|
|
2349
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2349
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().a2w_1, tmp1_safe_receiver.toString());
|
|
2350
2350
|
}
|
|
2351
2351
|
}
|
|
2352
2352
|
|
|
2353
|
-
appendAll(this_0, this.
|
|
2354
|
-
tmp_0.
|
|
2353
|
+
appendAll(this_0, this.t56_1.i3i_1);
|
|
2354
|
+
tmp_0.x56_1 = this_0.k2v();
|
|
2355
2355
|
var tmp_6 = this;
|
|
2356
|
-
var tmp0_safe_receiver_0 = this.
|
|
2357
|
-
tmp_6.
|
|
2356
|
+
var tmp0_safe_receiver_0 = this.x56_1.v2m(HttpHeaders_getInstance().a2w_1);
|
|
2357
|
+
tmp_6.y56_1 = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2358
2358
|
var tmp_7 = this;
|
|
2359
2359
|
var tmp_8;
|
|
2360
|
-
if (this.
|
|
2361
|
-
tmp_8 = '--> ' + this.
|
|
2360
|
+
if (this.t56_1.h3i_1.equals(Companion_getInstance().p2z_1) || this.t56_1.h3i_1.equals(Companion_getInstance().u2z_1) || ((invoke$isHeaders(this.r56_1) || invoke$isBody(this.r56_1)) && !(this.y56_1 == null)) || (invoke$isHeaders(this.r56_1) && this.y56_1 == null) || this.x56_1.f2o(HttpHeaders_getInstance().y2v_1)) {
|
|
2361
|
+
tmp_8 = '--> ' + this.t56_1.h3i_1.x2z_1 + ' ' + this.v56_1;
|
|
2362
2362
|
} else {
|
|
2363
|
-
if (invoke$isInfo(this.
|
|
2364
|
-
tmp_8 = '--> ' + this.
|
|
2363
|
+
if (invoke$isInfo(this.r56_1) && !(this.y56_1 == null)) {
|
|
2364
|
+
tmp_8 = '--> ' + this.t56_1.h3i_1.x2z_1 + ' ' + this.v56_1 + ' (' + toString_0(this.y56_1) + '-byte body)';
|
|
2365
2365
|
} else {
|
|
2366
2366
|
var tmp_9;
|
|
2367
|
-
var tmp_10 = this.
|
|
2367
|
+
var tmp_10 = this.w56_1;
|
|
2368
2368
|
if (tmp_10 instanceof WriteChannelContent) {
|
|
2369
2369
|
tmp_9 = true;
|
|
2370
2370
|
} else {
|
|
2371
|
-
var tmp_11 = this.
|
|
2371
|
+
var tmp_11 = this.w56_1;
|
|
2372
2372
|
tmp_9 = tmp_11 instanceof ReadChannelContent;
|
|
2373
2373
|
}
|
|
2374
2374
|
if (tmp_9) {
|
|
2375
|
-
tmp_8 = '--> ' + this.
|
|
2375
|
+
tmp_8 = '--> ' + this.t56_1.h3i_1.x2z_1 + ' ' + this.v56_1 + ' (unknown-byte body)';
|
|
2376
2376
|
} else {
|
|
2377
|
-
var size = computeRequestBodySize(this.
|
|
2378
|
-
tmp_8 = '--> ' + this.
|
|
2377
|
+
var size = computeRequestBodySize(this.t56_1.j3i_1);
|
|
2378
|
+
tmp_8 = '--> ' + this.t56_1.h3i_1.x2z_1 + ' ' + this.v56_1 + ' (' + size.toString() + '-byte body)';
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
|
-
tmp_7.
|
|
2384
|
-
this.
|
|
2385
|
-
if (!invoke$isHeaders(this.
|
|
2383
|
+
tmp_7.z56_1 = tmp_8;
|
|
2384
|
+
this.u56_1.k(this.z56_1);
|
|
2385
|
+
if (!invoke$isHeaders(this.r56_1) && !invoke$isBody(this.r56_1)) {
|
|
2386
2386
|
return null;
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
var _iterator__ex2g4s = this.
|
|
2389
|
+
var _iterator__ex2g4s = this.x56_1.e2o().p();
|
|
2390
2390
|
while (_iterator__ex2g4s.q()) {
|
|
2391
2391
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2392
2392
|
var name = _destruct__k2r9zo.y();
|
|
2393
2393
|
var values = _destruct__k2r9zo.z();
|
|
2394
|
-
var tmp0 = this.
|
|
2394
|
+
var tmp0 = this.q56_1;
|
|
2395
2395
|
var tmp$ret$0 = Unit_instance;
|
|
2396
2396
|
l$ret$1: do {
|
|
2397
2397
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2398
2398
|
while (_iterator__ex2g4s_0.q()) {
|
|
2399
2399
|
var element = _iterator__ex2g4s_0.r();
|
|
2400
|
-
if (element.
|
|
2400
|
+
if (element.q58_1(name)) {
|
|
2401
2401
|
tmp$ret$0 = element;
|
|
2402
2402
|
break l$ret$1;
|
|
2403
2403
|
}
|
|
@@ -2406,35 +2406,35 @@
|
|
|
2406
2406
|
}
|
|
2407
2407
|
while (false);
|
|
2408
2408
|
if (tmp$ret$0 == null) {
|
|
2409
|
-
this.
|
|
2409
|
+
this.u56_1.k(name + ': ' + joinToString(values, ', '));
|
|
2410
2410
|
} else {
|
|
2411
|
-
this.
|
|
2411
|
+
this.u56_1.k(name + ': \u2588\u2588');
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
2414
|
|
|
2415
|
-
if (!invoke$isBody(this.
|
|
2416
|
-
this.
|
|
2415
|
+
if (!invoke$isBody(this.r56_1) || this.t56_1.h3i_1.equals(Companion_getInstance().p2z_1) || this.t56_1.h3i_1.equals(Companion_getInstance().u2z_1)) {
|
|
2416
|
+
this.u56_1.k('--> END ' + this.t56_1.h3i_1.x2z_1);
|
|
2417
2417
|
return null;
|
|
2418
2418
|
}
|
|
2419
2419
|
|
|
2420
|
-
this.
|
|
2421
|
-
var tmp_12 = this.
|
|
2420
|
+
this.u56_1.k('');
|
|
2421
|
+
var tmp_12 = this.w56_1;
|
|
2422
2422
|
if (!(tmp_12 instanceof OutgoingContent)) {
|
|
2423
|
-
this.
|
|
2423
|
+
this.u56_1.k('--> END ' + this.t56_1.h3i_1.x2z_1);
|
|
2424
2424
|
return null;
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
|
-
if (this.
|
|
2427
|
+
if (this.t56_1.i3i_1.v2m(HttpHeaders_getInstance().y2v_1) === 'gzip') {
|
|
2428
2428
|
this.g9_1 = 2;
|
|
2429
|
-
var tmp_13 = this.
|
|
2430
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2429
|
+
var tmp_13 = this.t56_1.h3i_1;
|
|
2430
|
+
suspendResult = invoke$logOutgoingContent(this.s56_1, this.w56_1, tmp_13, this.x56_1, this.u56_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2431
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2432
2432
|
return suspendResult;
|
|
2433
2433
|
}
|
|
2434
2434
|
continue $sm;
|
|
2435
2435
|
} else {
|
|
2436
2436
|
this.g9_1 = 1;
|
|
2437
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2437
|
+
suspendResult = invoke$logOutgoingContent(this.s56_1, this.w56_1, this.t56_1.h3i_1, this.x56_1, this.u56_1, VOID, this);
|
|
2438
2438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2439
2439
|
return suspendResult;
|
|
2440
2440
|
}
|
|
@@ -2442,15 +2442,15 @@
|
|
|
2442
2442
|
}
|
|
2443
2443
|
|
|
2444
2444
|
case 1:
|
|
2445
|
-
this.
|
|
2445
|
+
this.a57_1 = suspendResult;
|
|
2446
2446
|
this.g9_1 = 3;
|
|
2447
2447
|
continue $sm;
|
|
2448
2448
|
case 2:
|
|
2449
|
-
this.
|
|
2449
|
+
this.a57_1 = suspendResult;
|
|
2450
2450
|
this.g9_1 = 3;
|
|
2451
2451
|
continue $sm;
|
|
2452
2452
|
case 3:
|
|
2453
|
-
var newContent = this.
|
|
2453
|
+
var newContent = this.a57_1;
|
|
2454
2454
|
return newContent;
|
|
2455
2455
|
case 4:
|
|
2456
2456
|
throw this.j9_1;
|
|
@@ -2468,10 +2468,10 @@
|
|
|
2468
2468
|
};
|
|
2469
2469
|
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2470
2470
|
CoroutineImpl.call(this, resultContinuation);
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2471
|
+
this.j57_1 = $this_createClientPlugin;
|
|
2472
|
+
this.k57_1 = response;
|
|
2473
|
+
this.l57_1 = body;
|
|
2474
|
+
this.m57_1 = logLines;
|
|
2475
2475
|
}
|
|
2476
2476
|
protoOf($invoke$logResponseBodyCOROUTINE$).o9 = function () {
|
|
2477
2477
|
var suspendResult = this.i9_1;
|
|
@@ -2481,38 +2481,38 @@
|
|
|
2481
2481
|
switch (tmp) {
|
|
2482
2482
|
case 0:
|
|
2483
2483
|
this.h9_1 = 4;
|
|
2484
|
-
this.
|
|
2484
|
+
this.m57_1.k('');
|
|
2485
2485
|
this.g9_1 = 1;
|
|
2486
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2486
|
+
suspendResult = invoke$detectIfBinary(this.j57_1, this.l57_1, contentLength(this.k57_1), contentType(this.k57_1), this.k57_1.o2z(), this);
|
|
2487
2487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2488
2488
|
return suspendResult;
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
2491
|
continue $sm;
|
|
2492
2492
|
case 1:
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2495
|
-
this.
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
if (equals(this.
|
|
2499
|
-
this.
|
|
2493
|
+
this.n57_1 = suspendResult;
|
|
2494
|
+
this.o57_1 = this.n57_1.tg();
|
|
2495
|
+
this.p57_1 = this.n57_1.ug();
|
|
2496
|
+
this.q57_1 = this.n57_1.tl();
|
|
2497
|
+
this.r57_1 = this.k57_1.g3k().m2p_1.a3(this.k57_1.f3k().m2p_1);
|
|
2498
|
+
if (equals(this.p57_1, new Long(0, 0))) {
|
|
2499
|
+
this.m57_1.k('<-- END HTTP (' + this.r57_1.toString() + 'ms, ' + toString_0(this.p57_1) + '-byte body)');
|
|
2500
2500
|
return Unit_instance;
|
|
2501
2501
|
}
|
|
2502
2502
|
|
|
2503
|
-
if (!this.
|
|
2504
|
-
this.
|
|
2503
|
+
if (!this.o57_1) {
|
|
2504
|
+
this.t57_1 = contentType(this.k57_1);
|
|
2505
2505
|
var tmp_0 = this;
|
|
2506
2506
|
var tmp_1;
|
|
2507
|
-
if (!(this.
|
|
2508
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2509
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2507
|
+
if (!(this.t57_1 == null)) {
|
|
2508
|
+
var tmp0_elvis_lhs = charset(this.t57_1);
|
|
2509
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().e1y_1 : tmp0_elvis_lhs;
|
|
2510
2510
|
} else {
|
|
2511
|
-
tmp_1 = Charsets_getInstance().
|
|
2511
|
+
tmp_1 = Charsets_getInstance().e1y_1;
|
|
2512
2512
|
}
|
|
2513
|
-
tmp_0.
|
|
2513
|
+
tmp_0.u57_1 = tmp_1;
|
|
2514
2514
|
this.g9_1 = 2;
|
|
2515
|
-
suspendResult = readRemaining(this.
|
|
2515
|
+
suspendResult = readRemaining(this.q57_1, this);
|
|
2516
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2517
2517
|
return suspendResult;
|
|
2518
2518
|
}
|
|
@@ -2520,25 +2520,25 @@
|
|
|
2520
2520
|
} else {
|
|
2521
2521
|
var tmp_2 = this;
|
|
2522
2522
|
var type = 'binary';
|
|
2523
|
-
if (this.
|
|
2523
|
+
if (this.k57_1.o2z().f2o(HttpHeaders_getInstance().y2v_1)) {
|
|
2524
2524
|
type = 'encoded';
|
|
2525
2525
|
}
|
|
2526
2526
|
var tmp_3;
|
|
2527
|
-
if (!(this.
|
|
2528
|
-
tmp_3 = this.
|
|
2527
|
+
if (!(this.p57_1 == null)) {
|
|
2528
|
+
tmp_3 = this.m57_1.k('<-- END HTTP (' + this.r57_1.toString() + 'ms, ' + type + ' ' + toString_0(this.p57_1) + '-byte body omitted)');
|
|
2529
2529
|
} else {
|
|
2530
|
-
tmp_3 = this.
|
|
2530
|
+
tmp_3 = this.m57_1.k('<-- END HTTP (' + this.r57_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2531
2531
|
}
|
|
2532
|
-
tmp_2.
|
|
2532
|
+
tmp_2.s57_1 = tmp_3;
|
|
2533
2533
|
this.g9_1 = 3;
|
|
2534
2534
|
continue $sm;
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
2537
|
case 2:
|
|
2538
2538
|
var ARGUMENT = suspendResult;
|
|
2539
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2539
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.u57_1);
|
|
2540
|
+
this.m57_1.k(ARGUMENT_0);
|
|
2541
|
+
this.s57_1 = this.m57_1.k('<-- END HTTP (' + this.r57_1.toString() + 'ms, ' + toString_0(this.p57_1) + '-byte body)');
|
|
2542
2542
|
this.g9_1 = 3;
|
|
2543
2543
|
continue $sm;
|
|
2544
2544
|
case 3:
|
|
@@ -2559,11 +2559,11 @@
|
|
|
2559
2559
|
};
|
|
2560
2560
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2561
2561
|
CoroutineImpl.call(this, resultContinuation);
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2562
|
+
this.d58_1 = sanitizedHeaders;
|
|
2563
|
+
this.e58_1 = level;
|
|
2564
|
+
this.f58_1 = $this_createClientPlugin;
|
|
2565
|
+
this.g58_1 = response;
|
|
2566
|
+
this.h58_1 = logLines;
|
|
2567
2567
|
}
|
|
2568
2568
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).o9 = function () {
|
|
2569
2569
|
var suspendResult = this.i9_1;
|
|
@@ -2573,31 +2573,31 @@
|
|
|
2573
2573
|
switch (tmp) {
|
|
2574
2574
|
case 0:
|
|
2575
2575
|
this.h9_1 = 4;
|
|
2576
|
-
if (invoke$isNone(this.
|
|
2577
|
-
return this.
|
|
2576
|
+
if (invoke$isNone(this.e58_1))
|
|
2577
|
+
return this.g58_1;
|
|
2578
2578
|
var tmp_0 = this;
|
|
2579
|
-
var tmp0_safe_receiver = this.
|
|
2580
|
-
tmp_0.
|
|
2581
|
-
this.
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
if (!invoke$isHeaders(this.
|
|
2586
|
-
return this.
|
|
2579
|
+
var tmp0_safe_receiver = this.g58_1.o2z().v2m(HttpHeaders_getInstance().a2w_1);
|
|
2580
|
+
tmp_0.i58_1 = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2581
|
+
this.j58_1 = get_request(this.g58_1);
|
|
2582
|
+
this.k58_1 = this.g58_1.g3k().m2p_1.a3(this.g58_1.f3k().m2p_1);
|
|
2583
|
+
this.l58_1 = this.g58_1.o2z().v2m(HttpHeaders_getInstance().h2y_1) === 'chunked' && (invoke$isInfo(this.e58_1) || invoke$isHeaders(this.e58_1)) ? '<-- ' + this.g58_1.k35().toString() + ' ' + pathQuery(this.j58_1.x3j()) + ' (' + this.k58_1.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.e58_1) && !(this.i58_1 == null) ? '<-- ' + this.g58_1.k35().toString() + ' ' + pathQuery(this.j58_1.x3j()) + ' (' + this.k58_1.toString() + 'ms, ' + toString_0(this.i58_1) + '-byte body)' : invoke$isBody(this.e58_1) || (invoke$isInfo(this.e58_1) && this.i58_1 == null) || (invoke$isHeaders(this.e58_1) && !(this.i58_1 == null)) || this.g58_1.o2z().v2m(HttpHeaders_getInstance().y2v_1) === 'gzip' ? '<-- ' + this.g58_1.k35().toString() + ' ' + pathQuery(this.j58_1.x3j()) + ' (' + this.k58_1.toString() + 'ms)' : '<-- ' + this.g58_1.k35().toString() + ' ' + pathQuery(this.j58_1.x3j()) + ' (' + this.k58_1.toString() + 'ms, unknown-byte body)';
|
|
2584
|
+
this.h58_1.k(this.l58_1);
|
|
2585
|
+
if (!invoke$isHeaders(this.e58_1) && !invoke$isBody(this.e58_1)) {
|
|
2586
|
+
return this.g58_1;
|
|
2587
2587
|
}
|
|
2588
2588
|
|
|
2589
|
-
var _iterator__ex2g4s = this.
|
|
2589
|
+
var _iterator__ex2g4s = this.g58_1.o2z().e2o().p();
|
|
2590
2590
|
while (_iterator__ex2g4s.q()) {
|
|
2591
2591
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2592
2592
|
var name = _destruct__k2r9zo.y();
|
|
2593
2593
|
var values = _destruct__k2r9zo.z();
|
|
2594
|
-
var tmp0 = this.
|
|
2594
|
+
var tmp0 = this.d58_1;
|
|
2595
2595
|
var tmp$ret$0 = Unit_instance;
|
|
2596
2596
|
l$ret$1: do {
|
|
2597
2597
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2598
2598
|
while (_iterator__ex2g4s_0.q()) {
|
|
2599
2599
|
var element = _iterator__ex2g4s_0.r();
|
|
2600
|
-
if (element.
|
|
2600
|
+
if (element.q58_1(name)) {
|
|
2601
2601
|
tmp$ret$0 = element;
|
|
2602
2602
|
break l$ret$1;
|
|
2603
2603
|
}
|
|
@@ -2606,30 +2606,30 @@
|
|
|
2606
2606
|
}
|
|
2607
2607
|
while (false);
|
|
2608
2608
|
if (tmp$ret$0 == null) {
|
|
2609
|
-
this.
|
|
2609
|
+
this.h58_1.k(name + ': ' + joinToString(values, ', '));
|
|
2610
2610
|
} else {
|
|
2611
|
-
this.
|
|
2611
|
+
this.h58_1.k(name + ': \u2588\u2588');
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
|
|
2615
|
-
if (!invoke$isBody(this.
|
|
2616
|
-
this.
|
|
2617
|
-
return this.
|
|
2615
|
+
if (!invoke$isBody(this.e58_1)) {
|
|
2616
|
+
this.h58_1.k('<-- END HTTP');
|
|
2617
|
+
return this.g58_1;
|
|
2618
2618
|
}
|
|
2619
2619
|
|
|
2620
|
-
if (!(this.
|
|
2621
|
-
this.
|
|
2622
|
-
return this.
|
|
2620
|
+
if (!(this.i58_1 == null) && equals(this.i58_1, new Long(0, 0))) {
|
|
2621
|
+
this.h58_1.k('<-- END HTTP (' + this.k58_1.toString() + 'ms, ' + toString_0(this.i58_1) + '-byte body)');
|
|
2622
|
+
return this.g58_1;
|
|
2623
2623
|
}
|
|
2624
2624
|
|
|
2625
|
-
if (equals(contentType(this.
|
|
2626
|
-
this.
|
|
2627
|
-
return this.
|
|
2625
|
+
if (equals(contentType(this.g58_1), Text_getInstance().y2u_1)) {
|
|
2626
|
+
this.h58_1.k('<-- END HTTP (streaming)');
|
|
2627
|
+
return this.g58_1;
|
|
2628
2628
|
}
|
|
2629
2629
|
|
|
2630
|
-
if (get_isSaved(this.
|
|
2630
|
+
if (get_isSaved(this.g58_1)) {
|
|
2631
2631
|
this.g9_1 = 3;
|
|
2632
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2632
|
+
suspendResult = invoke$logResponseBody(this.f58_1, this.g58_1, this.g58_1.d3k(), this.h58_1, this);
|
|
2633
2633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2634
2634
|
return suspendResult;
|
|
2635
2635
|
}
|
|
@@ -2640,22 +2640,22 @@
|
|
|
2640
2640
|
}
|
|
2641
2641
|
|
|
2642
2642
|
case 1:
|
|
2643
|
-
this.
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2643
|
+
this.m58_1 = split(this.g58_1.d3k(), this.g58_1);
|
|
2644
|
+
this.n58_1 = this.m58_1.tg();
|
|
2645
|
+
this.o58_1 = this.m58_1.ug();
|
|
2646
2646
|
this.g9_1 = 2;
|
|
2647
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.f58_1, this.g58_1, this.o58_1, this.h58_1, this);
|
|
2648
2648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2649
2649
|
return suspendResult;
|
|
2650
2650
|
}
|
|
2651
2651
|
|
|
2652
2652
|
continue $sm;
|
|
2653
2653
|
case 2:
|
|
2654
|
-
var tmp_1 = this.
|
|
2655
|
-
var call = replaceResponse(tmp_1, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2656
|
-
return call.
|
|
2654
|
+
var tmp_1 = this.g58_1.v3j();
|
|
2655
|
+
var call = replaceResponse(tmp_1, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.n58_1));
|
|
2656
|
+
return call.g3h();
|
|
2657
2657
|
case 3:
|
|
2658
|
-
return this.
|
|
2658
|
+
return this.g58_1;
|
|
2659
2659
|
case 4:
|
|
2660
2660
|
throw this.j9_1;
|
|
2661
2661
|
}
|
|
@@ -2749,7 +2749,7 @@
|
|
|
2749
2749
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
2750
2750
|
while (_iterator__ex2g4s_0.q()) {
|
|
2751
2751
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
2752
|
-
if (element_0.
|
|
2752
|
+
if (element_0.q58_1(key)) {
|
|
2753
2753
|
tmp$ret$5 = element_0;
|
|
2754
2754
|
break $l$block;
|
|
2755
2755
|
}
|
|
@@ -2757,7 +2757,7 @@
|
|
|
2757
2757
|
tmp$ret$5 = null;
|
|
2758
2758
|
}
|
|
2759
2759
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2760
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2760
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p58_1;
|
|
2761
2761
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
@@ -2769,26 +2769,26 @@
|
|
|
2769
2769
|
}
|
|
2770
2770
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2771
2771
|
// Inline function 'kotlin.with' call
|
|
2772
|
-
if (level.
|
|
2772
|
+
if (level.z50_1) {
|
|
2773
2773
|
// Inline function 'kotlin.text.appendLine' call
|
|
2774
|
-
var value = 'RESPONSE: ' + response.
|
|
2774
|
+
var value = 'RESPONSE: ' + response.k35().toString();
|
|
2775
2775
|
// Inline function 'kotlin.text.appendLine' call
|
|
2776
2776
|
log.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
2777
2777
|
// Inline function 'kotlin.text.appendLine' call
|
|
2778
|
-
var value_0 = 'METHOD: ' + response.
|
|
2778
|
+
var value_0 = 'METHOD: ' + response.v3j().o3j().w3j().toString();
|
|
2779
2779
|
// Inline function 'kotlin.text.appendLine' call
|
|
2780
2780
|
log.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
2781
2781
|
// Inline function 'kotlin.text.appendLine' call
|
|
2782
|
-
var value_1 = 'FROM: ' + response.
|
|
2782
|
+
var value_1 = 'FROM: ' + response.v3j().o3j().x3j().toString();
|
|
2783
2783
|
// Inline function 'kotlin.text.appendLine' call
|
|
2784
2784
|
log.r8(value_1).s8(_Char___init__impl__6a9atx(10));
|
|
2785
2785
|
}
|
|
2786
|
-
if (level.
|
|
2786
|
+
if (level.a51_1) {
|
|
2787
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2788
2788
|
var value_2 = 'COMMON HEADERS';
|
|
2789
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2790
2790
|
log.r8(value_2).s8(_Char___init__impl__6a9atx(10));
|
|
2791
|
-
logHeaders(log, response.
|
|
2791
|
+
logHeaders(log, response.o2z().e2o(), sanitizedHeaders);
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2804,16 +2804,16 @@
|
|
|
2804
2804
|
return tmp.o9();
|
|
2805
2805
|
}
|
|
2806
2806
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2807
|
-
this.
|
|
2807
|
+
this.j5f_1 = function_0;
|
|
2808
2808
|
}
|
|
2809
2809
|
protoOf(sam$kotlin_Comparator$0).ne = function (a, b) {
|
|
2810
|
-
return this.
|
|
2810
|
+
return this.j5f_1(a, b);
|
|
2811
2811
|
};
|
|
2812
2812
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2813
2813
|
return this.ne(a, b);
|
|
2814
2814
|
};
|
|
2815
2815
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
2816
|
-
return this.
|
|
2816
|
+
return this.j5f_1;
|
|
2817
2817
|
};
|
|
2818
2818
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2819
2819
|
var tmp;
|
|
@@ -2841,8 +2841,8 @@
|
|
|
2841
2841
|
}
|
|
2842
2842
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2843
2843
|
CoroutineImpl.call(this, resultContinuation);
|
|
2844
|
-
this.
|
|
2845
|
-
this.
|
|
2844
|
+
this.n5e_1 = _this__u8e3s4;
|
|
2845
|
+
this.o5e_1 = response;
|
|
2846
2846
|
}
|
|
2847
2847
|
protoOf($logResponseBodyCOROUTINE$_0).o9 = function () {
|
|
2848
2848
|
var suspendResult = this.i9_1;
|
|
@@ -2852,21 +2852,21 @@
|
|
|
2852
2852
|
switch (tmp) {
|
|
2853
2853
|
case 0:
|
|
2854
2854
|
this.h9_1 = 8;
|
|
2855
|
-
this.
|
|
2855
|
+
this.p5e_1 = StringBuilder_init_$Create$();
|
|
2856
2856
|
this.g9_1 = 1;
|
|
2857
2857
|
continue $sm;
|
|
2858
2858
|
case 1:
|
|
2859
2859
|
this.h9_1 = 4;
|
|
2860
2860
|
this.h9_1 = 3;
|
|
2861
2861
|
this.g9_1 = 2;
|
|
2862
|
-
suspendResult = appendResponseBody(this.
|
|
2862
|
+
suspendResult = appendResponseBody(this.p5e_1, contentType(this.o5e_1), this.o5e_1.d3k(), this);
|
|
2863
2863
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2864
2864
|
return suspendResult;
|
|
2865
2865
|
}
|
|
2866
2866
|
|
|
2867
2867
|
continue $sm;
|
|
2868
2868
|
case 2:
|
|
2869
|
-
this.
|
|
2869
|
+
this.q5e_1 = suspendResult;
|
|
2870
2870
|
this.h9_1 = 8;
|
|
2871
2871
|
this.g9_1 = 6;
|
|
2872
2872
|
continue $sm;
|
|
@@ -2874,9 +2874,9 @@
|
|
|
2874
2874
|
this.h9_1 = 4;
|
|
2875
2875
|
var tmp_0 = this.j9_1;
|
|
2876
2876
|
if (tmp_0 instanceof Error) {
|
|
2877
|
-
this.
|
|
2877
|
+
this.r5e_1 = this.j9_1;
|
|
2878
2878
|
var tmp_1 = this;
|
|
2879
|
-
tmp_1.
|
|
2879
|
+
tmp_1.q5e_1 = Unit_instance;
|
|
2880
2880
|
this.h9_1 = 8;
|
|
2881
2881
|
this.g9_1 = 6;
|
|
2882
2882
|
continue $sm;
|
|
@@ -2886,22 +2886,22 @@
|
|
|
2886
2886
|
|
|
2887
2887
|
case 4:
|
|
2888
2888
|
this.h9_1 = 8;
|
|
2889
|
-
this.
|
|
2889
|
+
this.s5e_1 = this.j9_1;
|
|
2890
2890
|
this.g9_1 = 5;
|
|
2891
|
-
var this_0 = this.
|
|
2892
|
-
suspendResult = this.
|
|
2891
|
+
var this_0 = this.p5e_1.toString();
|
|
2892
|
+
suspendResult = this.n5e_1.u50(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2893
2893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2894
2894
|
return suspendResult;
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
2897
2897
|
continue $sm;
|
|
2898
2898
|
case 5:
|
|
2899
|
-
throw this.
|
|
2899
|
+
throw this.s5e_1;
|
|
2900
2900
|
case 6:
|
|
2901
2901
|
this.h9_1 = 8;
|
|
2902
2902
|
this.g9_1 = 7;
|
|
2903
|
-
var this_1 = this.
|
|
2904
|
-
suspendResult = this.
|
|
2903
|
+
var this_1 = this.p5e_1.toString();
|
|
2904
|
+
suspendResult = this.n5e_1.u50(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2905
2905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2906
2906
|
return suspendResult;
|
|
2907
2907
|
}
|
|
@@ -2925,9 +2925,9 @@
|
|
|
2925
2925
|
};
|
|
2926
2926
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2927
2927
|
CoroutineImpl.call(this, resultContinuation);
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2928
|
+
this.b5f_1 = _this__u8e3s4;
|
|
2929
|
+
this.c5f_1 = contentType;
|
|
2930
|
+
this.d5f_1 = content;
|
|
2931
2931
|
}
|
|
2932
2932
|
protoOf($appendResponseBodyCOROUTINE$).o9 = function () {
|
|
2933
2933
|
var suspendResult = this.i9_1;
|
|
@@ -2937,23 +2937,23 @@
|
|
|
2937
2937
|
switch (tmp) {
|
|
2938
2938
|
case 0:
|
|
2939
2939
|
this.h9_1 = 3;
|
|
2940
|
-
var tmp0 = this.
|
|
2941
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2940
|
+
var tmp0 = this.b5f_1;
|
|
2941
|
+
var value = 'BODY Content-Type: ' + toString_0(this.c5f_1);
|
|
2942
2942
|
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
2943
|
-
var tmp0_0 = this.
|
|
2943
|
+
var tmp0_0 = this.b5f_1;
|
|
2944
2944
|
var value_0 = 'BODY START';
|
|
2945
2945
|
tmp0_0.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
2946
2946
|
var tmp_0 = this;
|
|
2947
|
-
tmp_0.
|
|
2947
|
+
tmp_0.e5f_1 = this.d5f_1;
|
|
2948
2948
|
var tmp_1 = this;
|
|
2949
|
-
var tmp0_safe_receiver = this.
|
|
2949
|
+
var tmp0_safe_receiver = this.c5f_1;
|
|
2950
2950
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2951
|
-
tmp_1.
|
|
2952
|
-
this.
|
|
2953
|
-
this.
|
|
2951
|
+
tmp_1.f5f_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().e1y_1 : tmp1_elvis_lhs;
|
|
2952
|
+
this.g5f_1 = this.e5f_1;
|
|
2953
|
+
this.h5f_1 = this.f5f_1;
|
|
2954
2954
|
this.h9_1 = 2;
|
|
2955
2955
|
this.g9_1 = 1;
|
|
2956
|
-
suspendResult = readRemaining(this.
|
|
2956
|
+
suspendResult = readRemaining(this.g5f_1, this);
|
|
2957
2957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2958
2958
|
return suspendResult;
|
|
2959
2959
|
}
|
|
@@ -2961,7 +2961,7 @@
|
|
|
2961
2961
|
continue $sm;
|
|
2962
2962
|
case 1:
|
|
2963
2963
|
var ARGUMENT = suspendResult;
|
|
2964
|
-
this.
|
|
2964
|
+
this.i5f_1 = readText(ARGUMENT, this.h5f_1);
|
|
2965
2965
|
this.h9_1 = 3;
|
|
2966
2966
|
this.g9_1 = 4;
|
|
2967
2967
|
continue $sm;
|
|
@@ -2971,7 +2971,7 @@
|
|
|
2971
2971
|
if (tmp_2 instanceof Error) {
|
|
2972
2972
|
var cause = this.j9_1;
|
|
2973
2973
|
var tmp_3 = this;
|
|
2974
|
-
tmp_3.
|
|
2974
|
+
tmp_3.i5f_1 = null;
|
|
2975
2975
|
this.g9_1 = 4;
|
|
2976
2976
|
continue $sm;
|
|
2977
2977
|
} else {
|
|
@@ -2982,10 +2982,10 @@
|
|
|
2982
2982
|
throw this.j9_1;
|
|
2983
2983
|
case 4:
|
|
2984
2984
|
this.h9_1 = 3;
|
|
2985
|
-
var tmp2_elvis_lhs = this.
|
|
2985
|
+
var tmp2_elvis_lhs = this.i5f_1;
|
|
2986
2986
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2987
|
-
this.
|
|
2988
|
-
this.
|
|
2987
|
+
this.b5f_1.r8(message).s8(_Char___init__impl__6a9atx(10));
|
|
2988
|
+
this.b5f_1.r8('BODY END');
|
|
2989
2989
|
return Unit_instance;
|
|
2990
2990
|
}
|
|
2991
2991
|
} catch ($p) {
|
|
@@ -3007,21 +3007,21 @@
|
|
|
3007
3007
|
}
|
|
3008
3008
|
function toReadChannel(_this__u8e3s4) {
|
|
3009
3009
|
var tmp = GlobalScope_instance;
|
|
3010
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3011
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3010
|
+
var tmp_0 = Dispatchers_getInstance().h11_1;
|
|
3011
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).p1v_1;
|
|
3012
3012
|
}
|
|
3013
3013
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3014
|
-
this.
|
|
3014
|
+
this.g5g_1 = $this_toReadChannel;
|
|
3015
3015
|
CoroutineImpl.call(this, resultContinuation);
|
|
3016
3016
|
}
|
|
3017
|
-
protoOf(toReadChannel$slambda).
|
|
3018
|
-
var tmp = this.
|
|
3017
|
+
protoOf(toReadChannel$slambda).r3a = function ($this$writer, $completion) {
|
|
3018
|
+
var tmp = this.s3a($this$writer, $completion);
|
|
3019
3019
|
tmp.i9_1 = Unit_instance;
|
|
3020
3020
|
tmp.j9_1 = null;
|
|
3021
3021
|
return tmp.o9();
|
|
3022
3022
|
};
|
|
3023
3023
|
protoOf(toReadChannel$slambda).ca = function (p1, $completion) {
|
|
3024
|
-
return this.
|
|
3024
|
+
return this.r3a(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3025
3025
|
};
|
|
3026
3026
|
protoOf(toReadChannel$slambda).o9 = function () {
|
|
3027
3027
|
var suspendResult = this.i9_1;
|
|
@@ -3032,7 +3032,7 @@
|
|
|
3032
3032
|
case 0:
|
|
3033
3033
|
this.h9_1 = 2;
|
|
3034
3034
|
this.g9_1 = 1;
|
|
3035
|
-
suspendResult = this.
|
|
3035
|
+
suspendResult = this.g5g_1.r35(this.h5g_1.r1v_1, this);
|
|
3036
3036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3037
3037
|
return suspendResult;
|
|
3038
3038
|
}
|
|
@@ -3054,23 +3054,23 @@
|
|
|
3054
3054
|
}
|
|
3055
3055
|
while (true);
|
|
3056
3056
|
};
|
|
3057
|
-
protoOf(toReadChannel$slambda).
|
|
3058
|
-
var i = new toReadChannel$slambda(this.
|
|
3059
|
-
i.
|
|
3057
|
+
protoOf(toReadChannel$slambda).s3a = function ($this$writer, completion) {
|
|
3058
|
+
var i = new toReadChannel$slambda(this.g5g_1, completion);
|
|
3059
|
+
i.h5g_1 = $this$writer;
|
|
3060
3060
|
return i;
|
|
3061
3061
|
};
|
|
3062
3062
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3063
3063
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3064
3064
|
var l = function ($this$writer, $completion) {
|
|
3065
|
-
return i.
|
|
3065
|
+
return i.r3a($this$writer, $completion);
|
|
3066
3066
|
};
|
|
3067
3067
|
l.$arity = 1;
|
|
3068
3068
|
return l;
|
|
3069
3069
|
}
|
|
3070
3070
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3071
3071
|
CoroutineImpl.call(this, resultContinuation);
|
|
3072
|
-
this.
|
|
3073
|
-
this.
|
|
3072
|
+
this.s5f_1 = _this__u8e3s4;
|
|
3073
|
+
this.t5f_1 = log;
|
|
3074
3074
|
}
|
|
3075
3075
|
protoOf($observeCOROUTINE$).o9 = function () {
|
|
3076
3076
|
var suspendResult = this.i9_1;
|
|
@@ -3080,57 +3080,57 @@
|
|
|
3080
3080
|
switch (tmp) {
|
|
3081
3081
|
case 0:
|
|
3082
3082
|
this.h9_1 = 6;
|
|
3083
|
-
this.
|
|
3084
|
-
var tmp_0 = this.
|
|
3083
|
+
this.u5f_1 = this.s5f_1;
|
|
3084
|
+
var tmp_0 = this.u5f_1;
|
|
3085
3085
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
3086
3086
|
this.g9_1 = 3;
|
|
3087
|
-
suspendResult = writeFully(this.
|
|
3087
|
+
suspendResult = writeFully(this.t5f_1, this.s5f_1.m35(), VOID, VOID, this);
|
|
3088
3088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3089
3089
|
return suspendResult;
|
|
3090
3090
|
}
|
|
3091
3091
|
continue $sm;
|
|
3092
3092
|
} else {
|
|
3093
|
-
var tmp_1 = this.
|
|
3093
|
+
var tmp_1 = this.u5f_1;
|
|
3094
3094
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
3095
3095
|
var tmp_2 = this;
|
|
3096
3096
|
var responseChannel = new ByteChannel();
|
|
3097
|
-
var content = this.
|
|
3098
|
-
copyToBoth(content, this.
|
|
3099
|
-
tmp_2.
|
|
3097
|
+
var content = this.s5f_1.p35();
|
|
3098
|
+
copyToBoth(content, this.t5f_1, responseChannel);
|
|
3099
|
+
tmp_2.v5f_1 = new LoggedContent(this.s5f_1, responseChannel);
|
|
3100
3100
|
this.g9_1 = 5;
|
|
3101
3101
|
continue $sm;
|
|
3102
3102
|
} else {
|
|
3103
|
-
var tmp_3 = this.
|
|
3103
|
+
var tmp_3 = this.u5f_1;
|
|
3104
3104
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
3105
3105
|
var tmp_4 = this;
|
|
3106
3106
|
var responseChannel_0 = new ByteChannel();
|
|
3107
|
-
var content_0 = toReadChannel(this.
|
|
3108
|
-
copyToBoth(content_0, this.
|
|
3109
|
-
tmp_4.
|
|
3107
|
+
var content_0 = toReadChannel(this.s5f_1);
|
|
3108
|
+
copyToBoth(content_0, this.t5f_1, responseChannel_0);
|
|
3109
|
+
tmp_4.v5f_1 = new LoggedContent(this.s5f_1, responseChannel_0);
|
|
3110
3110
|
this.g9_1 = 5;
|
|
3111
3111
|
continue $sm;
|
|
3112
3112
|
} else {
|
|
3113
|
-
var tmp_5 = this.
|
|
3113
|
+
var tmp_5 = this.u5f_1;
|
|
3114
3114
|
if (tmp_5 instanceof ContentWrapper) {
|
|
3115
|
-
this.
|
|
3115
|
+
this.w5f_1 = this.s5f_1;
|
|
3116
3116
|
this.g9_1 = 2;
|
|
3117
|
-
suspendResult = observe(this.
|
|
3117
|
+
suspendResult = observe(this.s5f_1.v35(), this.t5f_1, this);
|
|
3118
3118
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3119
3119
|
return suspendResult;
|
|
3120
3120
|
}
|
|
3121
3121
|
continue $sm;
|
|
3122
3122
|
} else {
|
|
3123
3123
|
var tmp_6;
|
|
3124
|
-
var tmp_7 = this.
|
|
3124
|
+
var tmp_7 = this.u5f_1;
|
|
3125
3125
|
if (tmp_7 instanceof NoContent) {
|
|
3126
3126
|
tmp_6 = true;
|
|
3127
3127
|
} else {
|
|
3128
|
-
var tmp_8 = this.
|
|
3128
|
+
var tmp_8 = this.u5f_1;
|
|
3129
3129
|
tmp_6 = tmp_8 instanceof ProtocolUpgrade;
|
|
3130
3130
|
}
|
|
3131
3131
|
if (tmp_6) {
|
|
3132
3132
|
this.g9_1 = 1;
|
|
3133
|
-
suspendResult = this.
|
|
3133
|
+
suspendResult = this.t5f_1.n1n(this);
|
|
3134
3134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3135
3135
|
return suspendResult;
|
|
3136
3136
|
}
|
|
@@ -3146,28 +3146,28 @@
|
|
|
3146
3146
|
|
|
3147
3147
|
break;
|
|
3148
3148
|
case 1:
|
|
3149
|
-
this.
|
|
3149
|
+
this.v5f_1 = this.s5f_1;
|
|
3150
3150
|
this.g9_1 = 5;
|
|
3151
3151
|
continue $sm;
|
|
3152
3152
|
case 2:
|
|
3153
|
-
this.
|
|
3154
|
-
this.
|
|
3153
|
+
this.x5f_1 = suspendResult;
|
|
3154
|
+
this.v5f_1 = this.w5f_1.w35(this.x5f_1);
|
|
3155
3155
|
this.g9_1 = 5;
|
|
3156
3156
|
continue $sm;
|
|
3157
3157
|
case 3:
|
|
3158
3158
|
this.g9_1 = 4;
|
|
3159
|
-
suspendResult = this.
|
|
3159
|
+
suspendResult = this.t5f_1.n1n(this);
|
|
3160
3160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3161
3161
|
return suspendResult;
|
|
3162
3162
|
}
|
|
3163
3163
|
|
|
3164
3164
|
continue $sm;
|
|
3165
3165
|
case 4:
|
|
3166
|
-
this.
|
|
3166
|
+
this.v5f_1 = this.s5f_1;
|
|
3167
3167
|
this.g9_1 = 5;
|
|
3168
3168
|
continue $sm;
|
|
3169
3169
|
case 5:
|
|
3170
|
-
return this.
|
|
3170
|
+
return this.v5f_1;
|
|
3171
3171
|
case 6:
|
|
3172
3172
|
throw this.j9_1;
|
|
3173
3173
|
}
|