@doordeck/doordeck-headless-sdk 0.155.0 → 0.156.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 +5 -5
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +1 -1
- package/kotlin/doordeck-sdk.js +3768 -3768
- package/kotlin/kotlin-kotlin-stdlib.js +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1671 -1671
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +306 -306
- package/kotlin/ktor-ktor-client-auth.js +52 -52
- package/kotlin/ktor-ktor-client-content-negotiation.js +43 -43
- package/kotlin/ktor-ktor-client-core.js +1568 -1578
- package/kotlin/ktor-ktor-client-logging.js +200 -200
- package/kotlin/ktor-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-http-cio.js +314 -314
- package/kotlin/ktor-ktor-http.js +685 -683
- package/kotlin/ktor-ktor-io.js +468 -463
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx.js +17 -17
- package/kotlin/ktor-ktor-serialization.js +6 -6
- package/kotlin/ktor-ktor-utils.js +635 -635
- package/kotlin/ktor-ktor-websockets.js +36 -36
- package/package.json +2 -2
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
var Comparator = kotlin_kotlin.$_$.lf;
|
|
105
105
|
var hashCode = kotlin_kotlin.$_$.ya;
|
|
106
106
|
var compareValues = kotlin_kotlin.$_$.p8;
|
|
107
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
107
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
108
108
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
109
109
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
110
110
|
var get = kotlin_kotlin.$_$.d9;
|
|
@@ -378,24 +378,24 @@
|
|
|
378
378
|
ReadChannelContent.call(this);
|
|
379
379
|
this.b4r_1 = originalContent;
|
|
380
380
|
this.c4r_1 = channel;
|
|
381
|
-
this.d4r_1 = this.b4r_1.
|
|
382
|
-
this.e4r_1 = this.b4r_1.
|
|
383
|
-
this.f4r_1 = this.b4r_1.
|
|
384
|
-
this.g4r_1 = this.b4r_1.
|
|
381
|
+
this.d4r_1 = this.b4r_1.l33();
|
|
382
|
+
this.e4r_1 = this.b4r_1.n33();
|
|
383
|
+
this.f4r_1 = this.b4r_1.m33();
|
|
384
|
+
this.g4r_1 = this.b4r_1.p2x();
|
|
385
385
|
}
|
|
386
|
-
protoOf(LoggedContent).
|
|
386
|
+
protoOf(LoggedContent).l33 = function () {
|
|
387
387
|
return this.d4r_1;
|
|
388
388
|
};
|
|
389
|
-
protoOf(LoggedContent).
|
|
389
|
+
protoOf(LoggedContent).n33 = function () {
|
|
390
390
|
return this.e4r_1;
|
|
391
391
|
};
|
|
392
|
-
protoOf(LoggedContent).
|
|
392
|
+
protoOf(LoggedContent).m33 = function () {
|
|
393
393
|
return this.f4r_1;
|
|
394
394
|
};
|
|
395
|
-
protoOf(LoggedContent).
|
|
395
|
+
protoOf(LoggedContent).p2x = function () {
|
|
396
396
|
return this.g4r_1;
|
|
397
397
|
};
|
|
398
|
-
protoOf(LoggedContent).
|
|
398
|
+
protoOf(LoggedContent).r33 = function () {
|
|
399
399
|
return this.c4r_1;
|
|
400
400
|
};
|
|
401
401
|
function Companion() {
|
|
@@ -464,17 +464,17 @@
|
|
|
464
464
|
// Inline function 'kotlin.apply' call
|
|
465
465
|
var this_0 = StringBuilder_init_$Create$();
|
|
466
466
|
// Inline function 'kotlin.text.isEmpty' call
|
|
467
|
-
var this_1 = _this__u8e3s4.
|
|
467
|
+
var this_1 = _this__u8e3s4.q32();
|
|
468
468
|
if (charSequenceLength(this_1) === 0) {
|
|
469
469
|
this_0.f8('/');
|
|
470
470
|
} else {
|
|
471
|
-
this_0.f8(_this__u8e3s4.
|
|
471
|
+
this_0.f8(_this__u8e3s4.q32());
|
|
472
472
|
}
|
|
473
473
|
// Inline function 'kotlin.text.isEmpty' call
|
|
474
|
-
var this_2 = _this__u8e3s4.
|
|
474
|
+
var this_2 = _this__u8e3s4.t32();
|
|
475
475
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
476
476
|
this_0.f8('?');
|
|
477
|
-
this_0.f8(_this__u8e3s4.
|
|
477
|
+
this_0.f8(_this__u8e3s4.t32());
|
|
478
478
|
}
|
|
479
479
|
return this_0.toString();
|
|
480
480
|
}
|
|
@@ -486,10 +486,10 @@
|
|
|
486
486
|
}
|
|
487
487
|
var tmp;
|
|
488
488
|
if (content instanceof ByteArrayContent) {
|
|
489
|
-
tmp = fromInt(content.
|
|
489
|
+
tmp = fromInt(content.o33().length);
|
|
490
490
|
} else {
|
|
491
491
|
if (content instanceof ContentWrapper) {
|
|
492
|
-
tmp = computeRequestBodySize(content.
|
|
492
|
+
tmp = computeRequestBodySize(content.x33());
|
|
493
493
|
} else {
|
|
494
494
|
if (content instanceof NoContent) {
|
|
495
495
|
tmp = new Long(0, 0);
|
|
@@ -509,24 +509,24 @@
|
|
|
509
509
|
this.o4r_1 = context;
|
|
510
510
|
}
|
|
511
511
|
protoOf(Context).p4r = function (content, $completion) {
|
|
512
|
-
return this.o4r_1.
|
|
512
|
+
return this.o4r_1.p2o(content, $completion);
|
|
513
513
|
};
|
|
514
514
|
protoOf(Context).q4r = function ($completion) {
|
|
515
|
-
return this.o4r_1.
|
|
515
|
+
return this.o4r_1.q2o($completion);
|
|
516
516
|
};
|
|
517
517
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
518
518
|
this.z4r_1 = $handler;
|
|
519
519
|
CoroutineImpl.call(this, resultContinuation);
|
|
520
520
|
}
|
|
521
|
-
protoOf(SendHook$install$slambda).
|
|
522
|
-
var tmp = this.
|
|
521
|
+
protoOf(SendHook$install$slambda).z3b = function ($this$intercept, it, $completion) {
|
|
522
|
+
var tmp = this.a3c($this$intercept, it, $completion);
|
|
523
523
|
tmp.w8_1 = Unit_instance;
|
|
524
524
|
tmp.x8_1 = null;
|
|
525
525
|
return tmp.c9();
|
|
526
526
|
};
|
|
527
527
|
protoOf(SendHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
528
528
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
529
|
-
return this.
|
|
529
|
+
return this.z3b(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
530
530
|
};
|
|
531
531
|
protoOf(SendHook$install$slambda).c9 = function () {
|
|
532
532
|
var suspendResult = this.w8_1;
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
case 0:
|
|
538
538
|
this.v8_1 = 2;
|
|
539
539
|
this.u8_1 = 1;
|
|
540
|
-
suspendResult = this.z4r_1(new Context(this.a4s_1), this.a4s_1.
|
|
540
|
+
suspendResult = this.z4r_1(new Context(this.a4s_1), this.a4s_1.l2p_1, this);
|
|
541
541
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
542
542
|
return suspendResult;
|
|
543
543
|
}
|
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
}
|
|
560
560
|
while (true);
|
|
561
561
|
};
|
|
562
|
-
protoOf(SendHook$install$slambda).
|
|
562
|
+
protoOf(SendHook$install$slambda).a3c = function ($this$intercept, it, completion) {
|
|
563
563
|
var i = new SendHook$install$slambda(this.z4r_1, completion);
|
|
564
564
|
i.a4s_1 = $this$intercept;
|
|
565
565
|
i.b4s_1 = it;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
569
569
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
570
570
|
var l = function ($this$intercept, it, $completion) {
|
|
571
|
-
return i.
|
|
571
|
+
return i.z3b($this$intercept, it, $completion);
|
|
572
572
|
};
|
|
573
573
|
l.$arity = 2;
|
|
574
574
|
return l;
|
|
@@ -576,10 +576,10 @@
|
|
|
576
576
|
function SendHook() {
|
|
577
577
|
}
|
|
578
578
|
protoOf(SendHook).c4s = function (client, handler) {
|
|
579
|
-
var tmp = Phases_getInstance().
|
|
580
|
-
client.
|
|
579
|
+
var tmp = Phases_getInstance().q3d_1;
|
|
580
|
+
client.i3b_1.p2p(tmp, SendHook$install$slambda_0(handler, null));
|
|
581
581
|
};
|
|
582
|
-
protoOf(SendHook).
|
|
582
|
+
protoOf(SendHook).p3k = function (client, handler) {
|
|
583
583
|
return this.c4s(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
584
584
|
};
|
|
585
585
|
var SendHook_instance;
|
|
@@ -589,22 +589,22 @@
|
|
|
589
589
|
function Context_0(context) {
|
|
590
590
|
this.d4s_1 = context;
|
|
591
591
|
}
|
|
592
|
-
protoOf(Context_0).
|
|
593
|
-
return this.d4s_1.
|
|
592
|
+
protoOf(Context_0).z45 = function (response, $completion) {
|
|
593
|
+
return this.d4s_1.p2o(response, $completion);
|
|
594
594
|
};
|
|
595
595
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
596
596
|
this.m4s_1 = $handler;
|
|
597
597
|
CoroutineImpl.call(this, resultContinuation);
|
|
598
598
|
}
|
|
599
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
600
|
-
var tmp = this.
|
|
599
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).b3l = function ($this$intercept, it, $completion) {
|
|
600
|
+
var tmp = this.c3l($this$intercept, it, $completion);
|
|
601
601
|
tmp.w8_1 = Unit_instance;
|
|
602
602
|
tmp.x8_1 = null;
|
|
603
603
|
return tmp.c9();
|
|
604
604
|
};
|
|
605
605
|
protoOf(ResponseAfterEncodingHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
606
606
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
607
|
-
return this.
|
|
607
|
+
return this.b3l(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
608
608
|
};
|
|
609
609
|
protoOf(ResponseAfterEncodingHook$install$slambda).c9 = function () {
|
|
610
610
|
var suspendResult = this.w8_1;
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
case 0:
|
|
616
616
|
this.v8_1 = 2;
|
|
617
617
|
this.u8_1 = 1;
|
|
618
|
-
suspendResult = this.m4s_1(new Context_0(this.n4s_1), this.n4s_1.
|
|
618
|
+
suspendResult = this.m4s_1(new Context_0(this.n4s_1), this.n4s_1.o2o(), this);
|
|
619
619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
620
620
|
return suspendResult;
|
|
621
621
|
}
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
}
|
|
638
638
|
while (true);
|
|
639
639
|
};
|
|
640
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
640
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).c3l = function ($this$intercept, it, completion) {
|
|
641
641
|
var i = new ResponseAfterEncodingHook$install$slambda(this.m4s_1, completion);
|
|
642
642
|
i.n4s_1 = $this$intercept;
|
|
643
643
|
i.o4s_1 = it;
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
647
647
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
648
648
|
var l = function ($this$intercept, it, $completion) {
|
|
649
|
-
return i.
|
|
649
|
+
return i.b3l($this$intercept, it, $completion);
|
|
650
650
|
};
|
|
651
651
|
l.$arity = 2;
|
|
652
652
|
return l;
|
|
@@ -655,10 +655,10 @@
|
|
|
655
655
|
}
|
|
656
656
|
protoOf(ResponseAfterEncodingHook).p4s = function (client, handler) {
|
|
657
657
|
var afterState = new PipelinePhase('AfterState');
|
|
658
|
-
client.
|
|
659
|
-
client.
|
|
658
|
+
client.j3b_1.m2p(Phases_getInstance_0().f3l_1, afterState);
|
|
659
|
+
client.j3b_1.p2p(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
660
660
|
};
|
|
661
|
-
protoOf(ResponseAfterEncodingHook).
|
|
661
|
+
protoOf(ResponseAfterEncodingHook).p3k = function (client, handler) {
|
|
662
662
|
return this.p4s(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
663
663
|
};
|
|
664
664
|
var ResponseAfterEncodingHook_instance;
|
|
@@ -669,21 +669,21 @@
|
|
|
669
669
|
this.q4s_1 = context;
|
|
670
670
|
}
|
|
671
671
|
protoOf(Context_1).r4s = function ($completion) {
|
|
672
|
-
return this.q4s_1.
|
|
672
|
+
return this.q4s_1.q2o($completion);
|
|
673
673
|
};
|
|
674
674
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
675
675
|
this.a4t_1 = $handler;
|
|
676
676
|
CoroutineImpl.call(this, resultContinuation);
|
|
677
677
|
}
|
|
678
|
-
protoOf(ResponseHook$install$slambda).
|
|
679
|
-
var tmp = this.
|
|
678
|
+
protoOf(ResponseHook$install$slambda).b3l = function ($this$intercept, it, $completion) {
|
|
679
|
+
var tmp = this.c3l($this$intercept, it, $completion);
|
|
680
680
|
tmp.w8_1 = Unit_instance;
|
|
681
681
|
tmp.x8_1 = null;
|
|
682
682
|
return tmp.c9();
|
|
683
683
|
};
|
|
684
684
|
protoOf(ResponseHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
685
685
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
686
|
-
return this.
|
|
686
|
+
return this.b3l(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
687
687
|
};
|
|
688
688
|
protoOf(ResponseHook$install$slambda).c9 = function () {
|
|
689
689
|
var suspendResult = this.w8_1;
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
case 0:
|
|
695
695
|
this.v8_1 = 2;
|
|
696
696
|
this.u8_1 = 1;
|
|
697
|
-
suspendResult = this.a4t_1(new Context_1(this.b4t_1), this.b4t_1.
|
|
697
|
+
suspendResult = this.a4t_1(new Context_1(this.b4t_1), this.b4t_1.o2o(), this);
|
|
698
698
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
699
699
|
return suspendResult;
|
|
700
700
|
}
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
}
|
|
717
717
|
while (true);
|
|
718
718
|
};
|
|
719
|
-
protoOf(ResponseHook$install$slambda).
|
|
719
|
+
protoOf(ResponseHook$install$slambda).c3l = function ($this$intercept, it, completion) {
|
|
720
720
|
var i = new ResponseHook$install$slambda(this.a4t_1, completion);
|
|
721
721
|
i.b4t_1 = $this$intercept;
|
|
722
722
|
i.c4t_1 = it;
|
|
@@ -725,7 +725,7 @@
|
|
|
725
725
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
726
726
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
727
727
|
var l = function ($this$intercept, it, $completion) {
|
|
728
|
-
return i.
|
|
728
|
+
return i.b3l($this$intercept, it, $completion);
|
|
729
729
|
};
|
|
730
730
|
l.$arity = 2;
|
|
731
731
|
return l;
|
|
@@ -733,10 +733,10 @@
|
|
|
733
733
|
function ResponseHook() {
|
|
734
734
|
}
|
|
735
735
|
protoOf(ResponseHook).d4t = function (client, handler) {
|
|
736
|
-
var tmp = Phases_getInstance_0().
|
|
737
|
-
client.
|
|
736
|
+
var tmp = Phases_getInstance_0().f3l_1;
|
|
737
|
+
client.j3b_1.p2p(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
738
738
|
};
|
|
739
|
-
protoOf(ResponseHook).
|
|
739
|
+
protoOf(ResponseHook).p3k = function (client, handler) {
|
|
740
740
|
return this.d4t(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
741
741
|
};
|
|
742
742
|
var ResponseHook_instance;
|
|
@@ -747,21 +747,21 @@
|
|
|
747
747
|
this.e4t_1 = context;
|
|
748
748
|
}
|
|
749
749
|
protoOf(Context_2).f4t = function ($completion) {
|
|
750
|
-
return this.e4t_1.
|
|
750
|
+
return this.e4t_1.q2o($completion);
|
|
751
751
|
};
|
|
752
752
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
753
753
|
this.o4t_1 = $handler;
|
|
754
754
|
CoroutineImpl.call(this, resultContinuation);
|
|
755
755
|
}
|
|
756
|
-
protoOf(ReceiveHook$install$slambda).
|
|
757
|
-
var tmp = this.
|
|
756
|
+
protoOf(ReceiveHook$install$slambda).u3c = function ($this$intercept, it, $completion) {
|
|
757
|
+
var tmp = this.v3c($this$intercept, it, $completion);
|
|
758
758
|
tmp.w8_1 = Unit_instance;
|
|
759
759
|
tmp.x8_1 = null;
|
|
760
760
|
return tmp.c9();
|
|
761
761
|
};
|
|
762
762
|
protoOf(ReceiveHook$install$slambda).p9 = function (p1, p2, $completion) {
|
|
763
763
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
764
|
-
return this.
|
|
764
|
+
return this.u3c(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
765
765
|
};
|
|
766
766
|
protoOf(ReceiveHook$install$slambda).c9 = function () {
|
|
767
767
|
var suspendResult = this.w8_1;
|
|
@@ -772,7 +772,7 @@
|
|
|
772
772
|
case 0:
|
|
773
773
|
this.v8_1 = 2;
|
|
774
774
|
this.u8_1 = 1;
|
|
775
|
-
suspendResult = this.o4t_1(new Context_2(this.p4t_1), this.p4t_1.
|
|
775
|
+
suspendResult = this.o4t_1(new Context_2(this.p4t_1), this.p4t_1.l2p_1, this);
|
|
776
776
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
777
777
|
return suspendResult;
|
|
778
778
|
}
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
}
|
|
795
795
|
while (true);
|
|
796
796
|
};
|
|
797
|
-
protoOf(ReceiveHook$install$slambda).
|
|
797
|
+
protoOf(ReceiveHook$install$slambda).v3c = function ($this$intercept, it, completion) {
|
|
798
798
|
var i = new ReceiveHook$install$slambda(this.o4t_1, completion);
|
|
799
799
|
i.p4t_1 = $this$intercept;
|
|
800
800
|
i.q4t_1 = it;
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
804
804
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
805
805
|
var l = function ($this$intercept, it, $completion) {
|
|
806
|
-
return i.
|
|
806
|
+
return i.u3c($this$intercept, it, $completion);
|
|
807
807
|
};
|
|
808
808
|
l.$arity = 2;
|
|
809
809
|
return l;
|
|
@@ -811,10 +811,10 @@
|
|
|
811
811
|
function ReceiveHook() {
|
|
812
812
|
}
|
|
813
813
|
protoOf(ReceiveHook).r4t = function (client, handler) {
|
|
814
|
-
var tmp = Phases_getInstance_1().
|
|
815
|
-
client.
|
|
814
|
+
var tmp = Phases_getInstance_1().e3e_1;
|
|
815
|
+
client.h3b_1.p2p(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
816
816
|
};
|
|
817
|
-
protoOf(ReceiveHook).
|
|
817
|
+
protoOf(ReceiveHook).p3k = function (client, handler) {
|
|
818
818
|
return this.r4t(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
819
819
|
};
|
|
820
820
|
var ReceiveHook_instance;
|
|
@@ -830,26 +830,26 @@
|
|
|
830
830
|
}
|
|
831
831
|
function Logging$lambda($this$createClientPlugin) {
|
|
832
832
|
_init_properties_Logging_kt__66pui5();
|
|
833
|
-
var logger = $this$createClientPlugin.
|
|
834
|
-
var level = $this$createClientPlugin.
|
|
835
|
-
var filters = $this$createClientPlugin.
|
|
836
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
837
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
833
|
+
var logger = $this$createClientPlugin.j3l_1.n4r();
|
|
834
|
+
var level = $this$createClientPlugin.j3l_1.l4r_1;
|
|
835
|
+
var filters = $this$createClientPlugin.j3l_1.h4r_1;
|
|
836
|
+
var sanitizedHeaders = $this$createClientPlugin.j3l_1.i4r_1;
|
|
837
|
+
var okHttpFormat = $this$createClientPlugin.j3l_1.k4r_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
838
838
|
var tmp = SendHook_instance;
|
|
839
|
-
$this$createClientPlugin.
|
|
839
|
+
$this$createClientPlugin.m3l(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
840
840
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
841
|
-
$this$createClientPlugin.
|
|
841
|
+
$this$createClientPlugin.m3l(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
842
842
|
var tmp_1 = ResponseHook_instance;
|
|
843
|
-
$this$createClientPlugin.
|
|
843
|
+
$this$createClientPlugin.m3l(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
844
844
|
var tmp_2 = ReceiveHook_instance;
|
|
845
|
-
$this$createClientPlugin.
|
|
845
|
+
$this$createClientPlugin.m3l(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
846
846
|
if (okHttpFormat)
|
|
847
847
|
return Unit_instance;
|
|
848
848
|
if (!level.z4q_1)
|
|
849
849
|
return Unit_instance;
|
|
850
850
|
var tmp_3 = get_ResponseObserver();
|
|
851
|
-
var responseObserver = tmp_3.
|
|
852
|
-
get_ResponseObserver().
|
|
851
|
+
var responseObserver = tmp_3.l3e(Logging$lambda$lambda(level));
|
|
852
|
+
get_ResponseObserver().m3e(responseObserver, $this$createClientPlugin.i3l_1);
|
|
853
853
|
return Unit_instance;
|
|
854
854
|
}
|
|
855
855
|
function invoke$shouldBeLogged(filters, request) {
|
|
@@ -942,12 +942,12 @@
|
|
|
942
942
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
943
943
|
var requestLog = StringBuilder_init_$Create$();
|
|
944
944
|
// Inline function 'kotlin.text.appendLine' call
|
|
945
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
945
|
+
var value = 'BODY Content-Type: ' + toString_0(content.l33());
|
|
946
946
|
// Inline function 'kotlin.text.appendLine' call
|
|
947
947
|
requestLog.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
948
|
-
var tmp0_safe_receiver = content.
|
|
948
|
+
var tmp0_safe_receiver = content.l33();
|
|
949
949
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
950
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
950
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().e1w_1 : tmp1_elvis_lhs;
|
|
951
951
|
var channel = new ByteChannel();
|
|
952
952
|
var tmp = GlobalScope_instance;
|
|
953
953
|
var tmp_0 = Dispatchers_getInstance().f15_1.gh(MDCContext());
|
|
@@ -956,24 +956,24 @@
|
|
|
956
956
|
}
|
|
957
957
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
958
958
|
if (level.x4q_1) {
|
|
959
|
-
logger.v4p('REQUEST ' + Url(context.
|
|
959
|
+
logger.v4p('REQUEST ' + Url(context.g3d_1).toString() + ' failed with exception: ' + cause.toString());
|
|
960
960
|
}
|
|
961
961
|
}
|
|
962
962
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
963
|
-
var tmp = request.
|
|
963
|
+
var tmp = request.j3d_1;
|
|
964
964
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
965
965
|
var callLogger = new HttpClientCallLogger(logger);
|
|
966
|
-
request.
|
|
966
|
+
request.l3d_1.c2i(get_ClientCallLogger(), callLogger);
|
|
967
967
|
// Inline function 'kotlin.text.buildString' call
|
|
968
968
|
// Inline function 'kotlin.apply' call
|
|
969
969
|
var this_0 = StringBuilder_init_$Create$();
|
|
970
970
|
if (level.x4q_1) {
|
|
971
971
|
// Inline function 'kotlin.text.appendLine' call
|
|
972
|
-
var value = 'REQUEST: ' + Url(request.
|
|
972
|
+
var value = 'REQUEST: ' + Url(request.g3d_1).toString();
|
|
973
973
|
// Inline function 'kotlin.text.appendLine' call
|
|
974
974
|
this_0.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
975
975
|
// Inline function 'kotlin.text.appendLine' call
|
|
976
|
-
var value_0 = 'METHOD: ' + request.
|
|
976
|
+
var value_0 = 'METHOD: ' + request.h3d_1.toString();
|
|
977
977
|
// Inline function 'kotlin.text.appendLine' call
|
|
978
978
|
this_0.f8(value_0).g8(_Char___init__impl__6a9atx(10));
|
|
979
979
|
}
|
|
@@ -982,7 +982,7 @@
|
|
|
982
982
|
var value_1 = 'COMMON HEADERS';
|
|
983
983
|
// Inline function 'kotlin.text.appendLine' call
|
|
984
984
|
this_0.f8(value_1).g8(_Char___init__impl__6a9atx(10));
|
|
985
|
-
logHeaders(this_0, request.
|
|
985
|
+
logHeaders(this_0, request.i3d_1.a2m(), sanitizedHeaders);
|
|
986
986
|
// Inline function 'kotlin.text.appendLine' call
|
|
987
987
|
var value_2 = 'CONTENT HEADERS';
|
|
988
988
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
var _iterator__ex2g4s = sanitizedHeaders.r();
|
|
994
994
|
while (_iterator__ex2g4s.s()) {
|
|
995
995
|
var element = _iterator__ex2g4s.t();
|
|
996
|
-
if (element.m4x_1(HttpHeaders_getInstance().
|
|
996
|
+
if (element.m4x_1(HttpHeaders_getInstance().a2u_1)) {
|
|
997
997
|
tmp$ret$9 = element;
|
|
998
998
|
break $l$block;
|
|
999
999
|
}
|
|
@@ -1008,7 +1008,7 @@
|
|
|
1008
1008
|
var _iterator__ex2g4s_0 = sanitizedHeaders.r();
|
|
1009
1009
|
while (_iterator__ex2g4s_0.s()) {
|
|
1010
1010
|
var element_0 = _iterator__ex2g4s_0.t();
|
|
1011
|
-
if (element_0.m4x_1(HttpHeaders_getInstance().
|
|
1011
|
+
if (element_0.m4x_1(HttpHeaders_getInstance().d2u_1)) {
|
|
1012
1012
|
tmp$ret$11 = element_0;
|
|
1013
1013
|
break $l$block_0;
|
|
1014
1014
|
}
|
|
@@ -1017,23 +1017,23 @@
|
|
|
1017
1017
|
}
|
|
1018
1018
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1019
1019
|
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.l4x_1;
|
|
1020
|
-
var tmp2_safe_receiver = content.
|
|
1020
|
+
var tmp2_safe_receiver = content.n33();
|
|
1021
1021
|
if (tmp2_safe_receiver == null)
|
|
1022
1022
|
null;
|
|
1023
1023
|
else {
|
|
1024
1024
|
// Inline function 'kotlin.let' call
|
|
1025
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1025
|
+
var tmp_0 = HttpHeaders_getInstance().a2u_1;
|
|
1026
1026
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1027
1027
|
}
|
|
1028
|
-
var tmp3_safe_receiver = content.
|
|
1028
|
+
var tmp3_safe_receiver = content.l33();
|
|
1029
1029
|
if (tmp3_safe_receiver == null)
|
|
1030
1030
|
null;
|
|
1031
1031
|
else {
|
|
1032
1032
|
// Inline function 'kotlin.let' call
|
|
1033
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1033
|
+
var tmp_1 = HttpHeaders_getInstance().d2u_1;
|
|
1034
1034
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1035
1035
|
}
|
|
1036
|
-
logHeaders(this_0, content.
|
|
1036
|
+
logHeaders(this_0, content.p2x().a2m(), sanitizedHeaders);
|
|
1037
1037
|
}
|
|
1038
1038
|
var message = this_0.toString();
|
|
1039
1039
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
@@ -1056,7 +1056,7 @@
|
|
|
1056
1056
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1057
1057
|
if (!level.x4q_1)
|
|
1058
1058
|
return Unit_instance;
|
|
1059
|
-
log.f8('RESPONSE ' + request.
|
|
1059
|
+
log.f8('RESPONSE ' + request.x3e().toString() + ' failed with exception: ' + cause.toString());
|
|
1060
1060
|
}
|
|
1061
1061
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1062
1062
|
this.v4x_1 = $okHttpFormat;
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
case 0:
|
|
1087
1087
|
this.v8_1 = 16;
|
|
1088
1088
|
if (!invoke$shouldBeLogged(this.x4x_1, this.c4y_1)) {
|
|
1089
|
-
this.c4y_1.
|
|
1089
|
+
this.c4y_1.l3d_1.c2i(get_DisableLogging(), Unit_instance);
|
|
1090
1090
|
return Unit_instance;
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
this.v8_1 = 7;
|
|
1143
1143
|
this.u8_1 = 6;
|
|
1144
1144
|
var tmp0_elvis_lhs = this.h4y_1;
|
|
1145
|
-
suspendResult = this.b4y_1.p4r(tmp0_elvis_lhs == null ? this.c4y_1.
|
|
1145
|
+
suspendResult = this.b4y_1.p4r(tmp0_elvis_lhs == null ? this.c4y_1.j3d_1 : tmp0_elvis_lhs, this);
|
|
1146
1146
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1147
1147
|
return suspendResult;
|
|
1148
1148
|
}
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
|
|
1301
1301
|
if (!equals(newResponse, this.z4y_1)) {
|
|
1302
1302
|
this.u8_1 = 2;
|
|
1303
|
-
suspendResult = this.y4y_1.
|
|
1303
|
+
suspendResult = this.y4y_1.z45(newResponse, this);
|
|
1304
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
1305
|
return suspendResult;
|
|
1306
1306
|
}
|
|
@@ -1372,9 +1372,9 @@
|
|
|
1372
1372
|
this.v8_1 = 14;
|
|
1373
1373
|
if (this.l4z_1)
|
|
1374
1374
|
return Unit_instance;
|
|
1375
|
-
if (this.m4z_1.equals(LogLevel_NONE_getInstance()) || this.p4z_1.
|
|
1375
|
+
if (this.m4z_1.equals(LogLevel_NONE_getInstance()) || this.p4z_1.v3e().p3e().b2i(get_DisableLogging()))
|
|
1376
1376
|
return Unit_instance;
|
|
1377
|
-
this.r4z_1 = this.p4z_1.
|
|
1377
|
+
this.r4z_1 = this.p4z_1.v3e().p3e().z2h(get_ClientCallLogger());
|
|
1378
1378
|
this.t4z_1 = StringBuilder_init_$Create$();
|
|
1379
1379
|
this.s4z_1 = false;
|
|
1380
1380
|
this.u8_1 = 1;
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
case 1:
|
|
1383
1383
|
this.v8_1 = 4;
|
|
1384
1384
|
this.v8_1 = 3;
|
|
1385
|
-
logResponseHeader(this.t4z_1, this.p4z_1.
|
|
1385
|
+
logResponseHeader(this.t4z_1, this.p4z_1.v3e().g3c(), this.m4z_1, this.n4z_1);
|
|
1386
1386
|
this.u8_1 = 2;
|
|
1387
1387
|
suspendResult = this.o4z_1.r4s(this);
|
|
1388
1388
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1401,7 +1401,7 @@
|
|
|
1401
1401
|
if (tmp_0 instanceof Error) {
|
|
1402
1402
|
var cause = this.x8_1;
|
|
1403
1403
|
var tmp_1 = this;
|
|
1404
|
-
invoke$logResponseException(this.m4z_1, this.t4z_1, this.p4z_1.
|
|
1404
|
+
invoke$logResponseException(this.m4z_1, this.t4z_1, this.p4z_1.v3e().o3e(), cause);
|
|
1405
1405
|
this.s4z_1 = true;
|
|
1406
1406
|
throw cause;
|
|
1407
1407
|
} else {
|
|
@@ -1543,7 +1543,7 @@
|
|
|
1543
1543
|
this.v8_1 = 6;
|
|
1544
1544
|
if (this.g50_1)
|
|
1545
1545
|
return Unit_instance;
|
|
1546
|
-
if (this.h50_1.equals(LogLevel_NONE_getInstance()) || this.j50_1.
|
|
1546
|
+
if (this.h50_1.equals(LogLevel_NONE_getInstance()) || this.j50_1.p3e().b2i(get_DisableLogging())) {
|
|
1547
1547
|
return Unit_instance;
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
@@ -1566,8 +1566,8 @@
|
|
|
1566
1566
|
if (tmp_0 instanceof Error) {
|
|
1567
1567
|
this.l50_1 = this.x8_1;
|
|
1568
1568
|
var log = StringBuilder_init_$Create$();
|
|
1569
|
-
this.m50_1 = this.j50_1.
|
|
1570
|
-
invoke$logResponseException(this.h50_1, log, this.j50_1.
|
|
1569
|
+
this.m50_1 = this.j50_1.p3e().z2h(get_ClientCallLogger());
|
|
1570
|
+
invoke$logResponseException(this.h50_1, log, this.j50_1.o3e(), this.l50_1);
|
|
1571
1571
|
this.u8_1 = 3;
|
|
1572
1572
|
suspendResult = this.m50_1.r4q(log.toString(), this);
|
|
1573
1573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1622,20 +1622,20 @@
|
|
|
1622
1622
|
}
|
|
1623
1623
|
function Logging$lambda$lambda$lambda(it) {
|
|
1624
1624
|
_init_properties_Logging_kt__66pui5();
|
|
1625
|
-
return !get_isSaved(it.
|
|
1625
|
+
return !get_isSaved(it.g3c());
|
|
1626
1626
|
}
|
|
1627
1627
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1628
1628
|
this.x50_1 = $level;
|
|
1629
1629
|
CoroutineImpl.call(this, resultContinuation);
|
|
1630
1630
|
}
|
|
1631
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1632
|
-
var tmp = this.
|
|
1631
|
+
protoOf(Logging$lambda$lambda$slambda).w3n = function (response, $completion) {
|
|
1632
|
+
var tmp = this.j3m(response, $completion);
|
|
1633
1633
|
tmp.w8_1 = Unit_instance;
|
|
1634
1634
|
tmp.x8_1 = null;
|
|
1635
1635
|
return tmp.c9();
|
|
1636
1636
|
};
|
|
1637
1637
|
protoOf(Logging$lambda$lambda$slambda).o9 = function (p1, $completion) {
|
|
1638
|
-
return this.
|
|
1638
|
+
return this.w3n(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1639
1639
|
};
|
|
1640
1640
|
protoOf(Logging$lambda$lambda$slambda).c9 = function () {
|
|
1641
1641
|
var suspendResult = this.w8_1;
|
|
@@ -1645,9 +1645,9 @@
|
|
|
1645
1645
|
switch (tmp) {
|
|
1646
1646
|
case 0:
|
|
1647
1647
|
this.v8_1 = 3;
|
|
1648
|
-
if (this.x50_1.equals(LogLevel_NONE_getInstance()) || this.y50_1.
|
|
1648
|
+
if (this.x50_1.equals(LogLevel_NONE_getInstance()) || this.y50_1.v3e().p3e().b2i(get_DisableLogging()))
|
|
1649
1649
|
return Unit_instance;
|
|
1650
|
-
this.z50_1 = this.y50_1.
|
|
1650
|
+
this.z50_1 = this.y50_1.v3e().p3e().z2h(get_ClientCallLogger());
|
|
1651
1651
|
this.u8_1 = 1;
|
|
1652
1652
|
suspendResult = logResponseBody(this.z50_1, this.y50_1, this);
|
|
1653
1653
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1679,7 +1679,7 @@
|
|
|
1679
1679
|
}
|
|
1680
1680
|
while (true);
|
|
1681
1681
|
};
|
|
1682
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1682
|
+
protoOf(Logging$lambda$lambda$slambda).j3m = function (response, completion) {
|
|
1683
1683
|
var i = new Logging$lambda$lambda$slambda(this.x50_1, completion);
|
|
1684
1684
|
i.y50_1 = response;
|
|
1685
1685
|
return i;
|
|
@@ -1687,15 +1687,15 @@
|
|
|
1687
1687
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1688
1688
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1689
1689
|
var l = function (response, $completion) {
|
|
1690
|
-
return i.
|
|
1690
|
+
return i.w3n(response, $completion);
|
|
1691
1691
|
};
|
|
1692
1692
|
l.$arity = 1;
|
|
1693
1693
|
return l;
|
|
1694
1694
|
}
|
|
1695
1695
|
function Logging$lambda$lambda($level) {
|
|
1696
1696
|
return function ($this$prepare) {
|
|
1697
|
-
$this$prepare.
|
|
1698
|
-
$this$prepare.
|
|
1697
|
+
$this$prepare.x45(Logging$lambda$lambda$lambda);
|
|
1698
|
+
$this$prepare.w45(Logging$lambda$lambda$slambda_0($level, null));
|
|
1699
1699
|
return Unit_instance;
|
|
1700
1700
|
};
|
|
1701
1701
|
}
|
|
@@ -1707,7 +1707,7 @@
|
|
|
1707
1707
|
CoroutineImpl.call(this, resultContinuation);
|
|
1708
1708
|
}
|
|
1709
1709
|
protoOf(Logging$lambda$detectIfBinary$slambda).o51 = function ($this$async, $completion) {
|
|
1710
|
-
var tmp = this.
|
|
1710
|
+
var tmp = this.k1v($this$async, $completion);
|
|
1711
1711
|
tmp.w8_1 = Unit_instance;
|
|
1712
1712
|
tmp.x8_1 = null;
|
|
1713
1713
|
return tmp.c9();
|
|
@@ -1741,7 +1741,7 @@
|
|
|
1741
1741
|
case 2:
|
|
1742
1742
|
this.n51_1 = suspendResult;
|
|
1743
1743
|
this.u8_1 = 3;
|
|
1744
|
-
suspendResult = this.i51_1.
|
|
1744
|
+
suspendResult = this.i51_1.k1m(this);
|
|
1745
1745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1746
1746
|
return suspendResult;
|
|
1747
1747
|
}
|
|
@@ -1763,7 +1763,7 @@
|
|
|
1763
1763
|
}
|
|
1764
1764
|
while (true);
|
|
1765
1765
|
};
|
|
1766
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1766
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).k1v = function ($this$async, completion) {
|
|
1767
1767
|
var i = new Logging$lambda$detectIfBinary$slambda(this.i51_1, this.j51_1, this.k51_1, this.l51_1, completion);
|
|
1768
1768
|
i.m51_1 = $this$async;
|
|
1769
1769
|
return i;
|
|
@@ -1785,14 +1785,14 @@
|
|
|
1785
1785
|
this.y51_1 = $channel;
|
|
1786
1786
|
CoroutineImpl.call(this, resultContinuation);
|
|
1787
1787
|
}
|
|
1788
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1789
|
-
var tmp = this.
|
|
1788
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).j1v = function ($this$launch, $completion) {
|
|
1789
|
+
var tmp = this.k1v($this$launch, $completion);
|
|
1790
1790
|
tmp.w8_1 = Unit_instance;
|
|
1791
1791
|
tmp.x8_1 = null;
|
|
1792
1792
|
return tmp.c9();
|
|
1793
1793
|
};
|
|
1794
1794
|
protoOf(Logging$lambda$logOutgoingContent$slambda).o9 = function (p1, $completion) {
|
|
1795
|
-
return this.
|
|
1795
|
+
return this.j1v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1796
1796
|
};
|
|
1797
1797
|
protoOf(Logging$lambda$logOutgoingContent$slambda).c9 = function () {
|
|
1798
1798
|
var suspendResult = this.w8_1;
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
case 0:
|
|
1804
1804
|
this.v8_1 = 2;
|
|
1805
1805
|
this.u8_1 = 1;
|
|
1806
|
-
suspendResult = this.x51_1.
|
|
1806
|
+
suspendResult = this.x51_1.t33(this.y51_1, this);
|
|
1807
1807
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1808
1808
|
return suspendResult;
|
|
1809
1809
|
}
|
|
@@ -1826,7 +1826,7 @@
|
|
|
1826
1826
|
}
|
|
1827
1827
|
while (true);
|
|
1828
1828
|
};
|
|
1829
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1829
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).k1v = function ($this$launch, completion) {
|
|
1830
1830
|
var i = new Logging$lambda$logOutgoingContent$slambda(this.x51_1, this.y51_1, completion);
|
|
1831
1831
|
i.z51_1 = $this$launch;
|
|
1832
1832
|
return i;
|
|
@@ -1834,14 +1834,14 @@
|
|
|
1834
1834
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1835
1835
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1836
1836
|
var l = function ($this$launch, $completion) {
|
|
1837
|
-
return i.
|
|
1837
|
+
return i.j1v($this$launch, $completion);
|
|
1838
1838
|
};
|
|
1839
1839
|
l.$arity = 1;
|
|
1840
1840
|
return l;
|
|
1841
1841
|
}
|
|
1842
1842
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1843
1843
|
_init_properties_Logging_kt__66pui5();
|
|
1844
|
-
return GZipEncoder_getInstance().
|
|
1844
|
+
return GZipEncoder_getInstance().m2l(channel);
|
|
1845
1845
|
}
|
|
1846
1846
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1847
1847
|
return function ($this$replaceResponse) {
|
|
@@ -1855,14 +1855,14 @@
|
|
|
1855
1855
|
this.l52_1 = $logger;
|
|
1856
1856
|
CoroutineImpl.call(this, resultContinuation);
|
|
1857
1857
|
}
|
|
1858
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1859
|
-
var tmp = this.
|
|
1858
|
+
protoOf(Logging$lambda$logRequestBody$slambda).j1v = function ($this$launch, $completion) {
|
|
1859
|
+
var tmp = this.k1v($this$launch, $completion);
|
|
1860
1860
|
tmp.w8_1 = Unit_instance;
|
|
1861
1861
|
tmp.x8_1 = null;
|
|
1862
1862
|
return tmp.c9();
|
|
1863
1863
|
};
|
|
1864
1864
|
protoOf(Logging$lambda$logRequestBody$slambda).o9 = function (p1, $completion) {
|
|
1865
|
-
return this.
|
|
1865
|
+
return this.j1v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1866
1866
|
};
|
|
1867
1867
|
protoOf(Logging$lambda$logRequestBody$slambda).c9 = function () {
|
|
1868
1868
|
var suspendResult = this.w8_1;
|
|
@@ -1943,7 +1943,7 @@
|
|
|
1943
1943
|
}
|
|
1944
1944
|
while (true);
|
|
1945
1945
|
};
|
|
1946
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1946
|
+
protoOf(Logging$lambda$logRequestBody$slambda).k1v = function ($this$launch, completion) {
|
|
1947
1947
|
var i = new Logging$lambda$logRequestBody$slambda(this.i52_1, this.j52_1, this.k52_1, this.l52_1, completion);
|
|
1948
1948
|
i.m52_1 = $this$launch;
|
|
1949
1949
|
return i;
|
|
@@ -1951,7 +1951,7 @@
|
|
|
1951
1951
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1952
1952
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1953
1953
|
var l = function ($this$launch, $completion) {
|
|
1954
|
-
return i.
|
|
1954
|
+
return i.j1v($this$launch, $completion);
|
|
1955
1955
|
};
|
|
1956
1956
|
l.$arity = 1;
|
|
1957
1957
|
return l;
|
|
@@ -1972,7 +1972,7 @@
|
|
|
1972
1972
|
switch (tmp) {
|
|
1973
1973
|
case 0:
|
|
1974
1974
|
this.v8_1 = 4;
|
|
1975
|
-
if (this.e4u_1.
|
|
1975
|
+
if (this.e4u_1.y2l(HttpHeaders_getInstance().y2t_1)) {
|
|
1976
1976
|
return new Triple(true, this.c4u_1, this.b4u_1);
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
@@ -1980,9 +1980,9 @@
|
|
|
1980
1980
|
var tmp_1;
|
|
1981
1981
|
if (!(this.d4u_1 == null)) {
|
|
1982
1982
|
var tmp0_elvis_lhs = charset(this.d4u_1);
|
|
1983
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
1983
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().e1w_1 : tmp0_elvis_lhs;
|
|
1984
1984
|
} else {
|
|
1985
|
-
tmp_1 = Charsets_getInstance().
|
|
1985
|
+
tmp_1 = Charsets_getInstance().e1w_1;
|
|
1986
1986
|
}
|
|
1987
1987
|
|
|
1988
1988
|
tmp_0.j4u_1 = tmp_1;
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
var buffer = this_0;
|
|
2007
2007
|
var tmp_2;
|
|
2008
2008
|
try {
|
|
2009
|
-
tmp_2 = decode(this.j4u_1.
|
|
2009
|
+
tmp_2 = decode(this.j4u_1.h1w(), buffer);
|
|
2010
2010
|
} catch ($p) {
|
|
2011
2011
|
var tmp_3;
|
|
2012
2012
|
if ($p instanceof MalformedInputException) {
|
|
@@ -2045,7 +2045,7 @@
|
|
|
2045
2045
|
if (!this.h4u_1) {
|
|
2046
2046
|
this.f4u_1 = new ByteChannel();
|
|
2047
2047
|
this.u8_1 = 3;
|
|
2048
|
-
suspendResult = async(this.a4u_1.
|
|
2048
|
+
suspendResult = async(this.a4u_1.i3l_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.f4u_1, this.i4u_1, this.g4u_1, this.b4u_1, null)).rx(this);
|
|
2049
2049
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2050
2050
|
return suspendResult;
|
|
2051
2051
|
}
|
|
@@ -2095,7 +2095,7 @@
|
|
|
2095
2095
|
case 0:
|
|
2096
2096
|
this.v8_1 = 4;
|
|
2097
2097
|
this.u8_1 = 1;
|
|
2098
|
-
suspendResult = invoke$detectIfBinary(this.s4u_1, this.y4u_1, this.u4u_1, this.t4u_1.
|
|
2098
|
+
suspendResult = invoke$detectIfBinary(this.s4u_1, this.y4u_1, this.u4u_1, this.t4u_1.l33(), this.v4u_1, this);
|
|
2099
2099
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2100
2100
|
return suspendResult;
|
|
2101
2101
|
}
|
|
@@ -2107,14 +2107,14 @@
|
|
|
2107
2107
|
this.a4v_1 = _destruct__k2r9zo.jg();
|
|
2108
2108
|
var newBody = _destruct__k2r9zo.fm();
|
|
2109
2109
|
if (!isBinary) {
|
|
2110
|
-
var contentType = this.t4u_1.
|
|
2110
|
+
var contentType = this.t4u_1.l33();
|
|
2111
2111
|
var tmp_0 = this;
|
|
2112
2112
|
var tmp_1;
|
|
2113
2113
|
if (!(contentType == null)) {
|
|
2114
2114
|
var tmp0_elvis_lhs = charset(contentType);
|
|
2115
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2115
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().e1w_1 : tmp0_elvis_lhs;
|
|
2116
2116
|
} else {
|
|
2117
|
-
tmp_1 = Charsets_getInstance().
|
|
2117
|
+
tmp_1 = Charsets_getInstance().e1w_1;
|
|
2118
2118
|
}
|
|
2119
2119
|
tmp_0.b4v_1 = tmp_1;
|
|
2120
2120
|
this.u8_1 = 2;
|
|
@@ -2126,14 +2126,14 @@
|
|
|
2126
2126
|
} else {
|
|
2127
2127
|
var tmp_2 = this;
|
|
2128
2128
|
var type = 'binary';
|
|
2129
|
-
if (this.v4u_1.
|
|
2129
|
+
if (this.v4u_1.y2l(HttpHeaders_getInstance().y2t_1)) {
|
|
2130
2130
|
type = 'encoded';
|
|
2131
2131
|
}
|
|
2132
2132
|
var tmp_3;
|
|
2133
2133
|
if (!(this.a4v_1 == null)) {
|
|
2134
|
-
tmp_3 = this.x4u_1.p('--> END ' + this.w4u_1.
|
|
2134
|
+
tmp_3 = this.x4u_1.p('--> END ' + this.w4u_1.y2x_1 + ' (' + type + ' ' + toString_0(this.a4v_1) + '-byte body omitted)');
|
|
2135
2135
|
} else {
|
|
2136
|
-
tmp_3 = this.x4u_1.p('--> END ' + this.w4u_1.
|
|
2136
|
+
tmp_3 = this.x4u_1.p('--> END ' + this.w4u_1.y2x_1 + ' (' + type + ' body omitted)');
|
|
2137
2137
|
}
|
|
2138
2138
|
tmp_2.z4u_1 = tmp_3;
|
|
2139
2139
|
this.u8_1 = 3;
|
|
@@ -2144,7 +2144,7 @@
|
|
|
2144
2144
|
var ARGUMENT = suspendResult;
|
|
2145
2145
|
var ARGUMENT_0 = readText(ARGUMENT, this.b4v_1);
|
|
2146
2146
|
this.x4u_1.p(ARGUMENT_0);
|
|
2147
|
-
this.z4u_1 = this.x4u_1.p('--> END ' + this.w4u_1.
|
|
2147
|
+
this.z4u_1 = this.x4u_1.p('--> END ' + this.w4u_1.y2x_1 + ' (' + toString_0(this.a4v_1) + '-byte body)');
|
|
2148
2148
|
this.u8_1 = 3;
|
|
2149
2149
|
continue $sm;
|
|
2150
2150
|
case 3:
|
|
@@ -2182,7 +2182,7 @@
|
|
|
2182
2182
|
this.v8_1 = 6;
|
|
2183
2183
|
var tmp0_subject = this.l4v_1;
|
|
2184
2184
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2185
|
-
var bytes = this.l4v_1.
|
|
2185
|
+
var bytes = this.l4v_1.o33();
|
|
2186
2186
|
this.u8_1 = 4;
|
|
2187
2187
|
suspendResult = invoke$logRequestBody(this.k4v_1, this.l4v_1, fromInt(bytes.length), this.n4v_1, this.m4v_1, this.o4v_1, ByteReadChannel(bytes), this);
|
|
2188
2188
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2192,7 +2192,7 @@
|
|
|
2192
2192
|
} else {
|
|
2193
2193
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2194
2194
|
this.u8_1 = 3;
|
|
2195
|
-
suspendResult = invoke$logOutgoingContent(this.k4v_1, this.l4v_1.
|
|
2195
|
+
suspendResult = invoke$logOutgoingContent(this.k4v_1, this.l4v_1.x33(), this.m4v_1, this.n4v_1, this.o4v_1, this.p4v_1, this);
|
|
2196
2196
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2197
2197
|
return suspendResult;
|
|
2198
2198
|
}
|
|
@@ -2200,24 +2200,24 @@
|
|
|
2200
2200
|
} else {
|
|
2201
2201
|
if (tmp0_subject instanceof NoContent) {
|
|
2202
2202
|
var tmp_0 = this;
|
|
2203
|
-
this.o4v_1.p('--> END ' + this.m4v_1.
|
|
2203
|
+
this.o4v_1.p('--> END ' + this.m4v_1.y2x_1);
|
|
2204
2204
|
tmp_0.q4v_1 = null;
|
|
2205
2205
|
this.u8_1 = 5;
|
|
2206
2206
|
continue $sm;
|
|
2207
2207
|
} else {
|
|
2208
2208
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2209
2209
|
var tmp_1 = this;
|
|
2210
|
-
this.o4v_1.p('--> END ' + this.m4v_1.
|
|
2210
|
+
this.o4v_1.p('--> END ' + this.m4v_1.y2x_1);
|
|
2211
2211
|
tmp_1.q4v_1 = null;
|
|
2212
2212
|
this.u8_1 = 5;
|
|
2213
2213
|
continue $sm;
|
|
2214
2214
|
} else {
|
|
2215
2215
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2216
|
-
var _destruct__k2r9zo = split(this.l4v_1.
|
|
2216
|
+
var _destruct__k2r9zo = split(this.l4v_1.r33(), this.k4v_1.i3l_1);
|
|
2217
2217
|
this.r4v_1 = _destruct__k2r9zo.ig();
|
|
2218
2218
|
var newChannel = _destruct__k2r9zo.jg();
|
|
2219
2219
|
this.u8_1 = 2;
|
|
2220
|
-
suspendResult = invoke$logRequestBody(this.k4v_1, this.l4v_1, this.l4v_1.
|
|
2220
|
+
suspendResult = invoke$logRequestBody(this.k4v_1, this.l4v_1, this.l4v_1.n33(), this.n4v_1, this.m4v_1, this.o4v_1, newChannel, this);
|
|
2221
2221
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2222
2222
|
return suspendResult;
|
|
2223
2223
|
}
|
|
@@ -2225,12 +2225,12 @@
|
|
|
2225
2225
|
} else {
|
|
2226
2226
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2227
2227
|
var channel = new ByteChannel();
|
|
2228
|
-
launch(this.k4v_1.
|
|
2229
|
-
var _destruct__k2r9zo_0 = split(channel, this.k4v_1.
|
|
2228
|
+
launch(this.k4v_1.i3l_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.l4v_1, channel, null));
|
|
2229
|
+
var _destruct__k2r9zo_0 = split(channel, this.k4v_1.i3l_1);
|
|
2230
2230
|
this.s4v_1 = _destruct__k2r9zo_0.ig();
|
|
2231
2231
|
var newChannel_0 = _destruct__k2r9zo_0.jg();
|
|
2232
2232
|
this.u8_1 = 1;
|
|
2233
|
-
suspendResult = invoke$logRequestBody(this.k4v_1, this.l4v_1, this.l4v_1.
|
|
2233
|
+
suspendResult = invoke$logRequestBody(this.k4v_1, this.l4v_1, this.l4v_1.n33(), this.n4v_1, this.m4v_1, this.o4v_1, newChannel_0, this);
|
|
2234
2234
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2235
2235
|
return suspendResult;
|
|
2236
2236
|
}
|
|
@@ -2296,20 +2296,20 @@
|
|
|
2296
2296
|
this.v8_1 = 4;
|
|
2297
2297
|
if (invoke$isNone(this.c4w_1))
|
|
2298
2298
|
return null;
|
|
2299
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.e4w_1.
|
|
2300
|
-
var body = this.e4w_1.
|
|
2299
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.e4w_1.g3d_1).k2t());
|
|
2300
|
+
var body = this.e4w_1.j3d_1;
|
|
2301
2301
|
var this_0 = new HeadersBuilder();
|
|
2302
2302
|
var tmp_0;
|
|
2303
2303
|
var tmp_1;
|
|
2304
2304
|
var tmp_2;
|
|
2305
2305
|
if (body instanceof OutgoingContent) {
|
|
2306
|
-
tmp_2 = !this.e4w_1.
|
|
2306
|
+
tmp_2 = !this.e4w_1.h3d_1.equals(Companion_getInstance().q2x_1);
|
|
2307
2307
|
} else {
|
|
2308
2308
|
tmp_2 = false;
|
|
2309
2309
|
}
|
|
2310
2310
|
|
|
2311
2311
|
if (tmp_2) {
|
|
2312
|
-
tmp_1 = !this.e4w_1.
|
|
2312
|
+
tmp_1 = !this.e4w_1.h3d_1.equals(Companion_getInstance().v2x_1);
|
|
2313
2313
|
} else {
|
|
2314
2314
|
tmp_1 = false;
|
|
2315
2315
|
}
|
|
@@ -2321,30 +2321,30 @@
|
|
|
2321
2321
|
}
|
|
2322
2322
|
|
|
2323
2323
|
if (tmp_0) {
|
|
2324
|
-
var tmp0_safe_receiver = body.
|
|
2324
|
+
var tmp0_safe_receiver = body.l33();
|
|
2325
2325
|
if (tmp0_safe_receiver == null)
|
|
2326
2326
|
null;
|
|
2327
2327
|
else {
|
|
2328
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2328
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().d2u_1, tmp0_safe_receiver.toString());
|
|
2329
2329
|
}
|
|
2330
|
-
var tmp1_safe_receiver = body.
|
|
2330
|
+
var tmp1_safe_receiver = body.n33();
|
|
2331
2331
|
if (tmp1_safe_receiver == null)
|
|
2332
2332
|
null;
|
|
2333
2333
|
else {
|
|
2334
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2334
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().a2u_1, tmp1_safe_receiver.toString());
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
|
-
appendAll(this_0, this.e4w_1.
|
|
2339
|
-
var headers = this_0.
|
|
2340
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2338
|
+
appendAll(this_0, this.e4w_1.i3d_1);
|
|
2339
|
+
var headers = this_0.k2t();
|
|
2340
|
+
var tmp0_safe_receiver_0 = headers.r2k(HttpHeaders_getInstance().a2u_1);
|
|
2341
2341
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2342
2342
|
var tmp_3;
|
|
2343
|
-
if (this.e4w_1.
|
|
2344
|
-
tmp_3 = '--> ' + this.e4w_1.
|
|
2343
|
+
if (this.e4w_1.h3d_1.equals(Companion_getInstance().q2x_1) || this.e4w_1.h3d_1.equals(Companion_getInstance().v2x_1) || ((invoke$isHeaders(this.c4w_1) || invoke$isBody(this.c4w_1)) && !(contentLength == null)) || (invoke$isHeaders(this.c4w_1) && contentLength == null) || headers.y2l(HttpHeaders_getInstance().y2t_1)) {
|
|
2344
|
+
tmp_3 = '--> ' + this.e4w_1.h3d_1.y2x_1 + ' ' + uri;
|
|
2345
2345
|
} else {
|
|
2346
2346
|
if (invoke$isInfo(this.c4w_1) && !(contentLength == null)) {
|
|
2347
|
-
tmp_3 = '--> ' + this.e4w_1.
|
|
2347
|
+
tmp_3 = '--> ' + this.e4w_1.h3d_1.y2x_1 + ' ' + uri + ' (' + toString_0(contentLength) + '-byte body)';
|
|
2348
2348
|
} else {
|
|
2349
2349
|
var tmp_4;
|
|
2350
2350
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2353,10 +2353,10 @@
|
|
|
2353
2353
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2354
2354
|
}
|
|
2355
2355
|
if (tmp_4) {
|
|
2356
|
-
tmp_3 = '--> ' + this.e4w_1.
|
|
2356
|
+
tmp_3 = '--> ' + this.e4w_1.h3d_1.y2x_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2357
2357
|
} else {
|
|
2358
|
-
var size = computeRequestBodySize(this.e4w_1.
|
|
2359
|
-
tmp_3 = '--> ' + this.e4w_1.
|
|
2358
|
+
var size = computeRequestBodySize(this.e4w_1.j3d_1);
|
|
2359
|
+
tmp_3 = '--> ' + this.e4w_1.h3d_1.y2x_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
@@ -2367,7 +2367,7 @@
|
|
|
2367
2367
|
return null;
|
|
2368
2368
|
}
|
|
2369
2369
|
|
|
2370
|
-
var _iterator__ex2g4s = headers.
|
|
2370
|
+
var _iterator__ex2g4s = headers.a2m().r();
|
|
2371
2371
|
while (_iterator__ex2g4s.s()) {
|
|
2372
2372
|
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
2373
2373
|
var name = _destruct__k2r9zo.z();
|
|
@@ -2393,20 +2393,20 @@
|
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
2395
|
|
|
2396
|
-
if (!invoke$isBody(this.c4w_1) || this.e4w_1.
|
|
2397
|
-
this.f4w_1.p('--> END ' + this.e4w_1.
|
|
2396
|
+
if (!invoke$isBody(this.c4w_1) || this.e4w_1.h3d_1.equals(Companion_getInstance().q2x_1) || this.e4w_1.h3d_1.equals(Companion_getInstance().v2x_1)) {
|
|
2397
|
+
this.f4w_1.p('--> END ' + this.e4w_1.h3d_1.y2x_1);
|
|
2398
2398
|
return null;
|
|
2399
2399
|
}
|
|
2400
2400
|
|
|
2401
2401
|
this.f4w_1.p('');
|
|
2402
2402
|
if (!(body instanceof OutgoingContent)) {
|
|
2403
|
-
this.f4w_1.p('--> END ' + this.e4w_1.
|
|
2403
|
+
this.f4w_1.p('--> END ' + this.e4w_1.h3d_1.y2x_1);
|
|
2404
2404
|
return null;
|
|
2405
2405
|
}
|
|
2406
2406
|
|
|
2407
|
-
if (this.e4w_1.
|
|
2407
|
+
if (this.e4w_1.i3d_1.r2k(HttpHeaders_getInstance().y2t_1) === 'gzip') {
|
|
2408
2408
|
this.u8_1 = 2;
|
|
2409
|
-
var tmp_5 = this.e4w_1.
|
|
2409
|
+
var tmp_5 = this.e4w_1.h3d_1;
|
|
2410
2410
|
suspendResult = invoke$logOutgoingContent(this.d4w_1, body, tmp_5, headers, this.f4w_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2411
2411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2412
2412
|
return suspendResult;
|
|
@@ -2414,7 +2414,7 @@
|
|
|
2414
2414
|
continue $sm;
|
|
2415
2415
|
} else {
|
|
2416
2416
|
this.u8_1 = 1;
|
|
2417
|
-
suspendResult = invoke$logOutgoingContent(this.d4w_1, body, this.e4w_1.
|
|
2417
|
+
suspendResult = invoke$logOutgoingContent(this.d4w_1, body, this.e4w_1.h3d_1, headers, this.f4w_1, VOID, this);
|
|
2418
2418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2419
2419
|
return suspendResult;
|
|
2420
2420
|
}
|
|
@@ -2463,7 +2463,7 @@
|
|
|
2463
2463
|
this.v8_1 = 4;
|
|
2464
2464
|
this.s4w_1.p('');
|
|
2465
2465
|
this.u8_1 = 1;
|
|
2466
|
-
suspendResult = invoke$detectIfBinary(this.p4w_1, this.r4w_1, contentLength(this.q4w_1), contentType(this.q4w_1), this.q4w_1.
|
|
2466
|
+
suspendResult = invoke$detectIfBinary(this.p4w_1, this.r4w_1, contentLength(this.q4w_1), contentType(this.q4w_1), this.q4w_1.p2x(), this);
|
|
2467
2467
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2468
2468
|
return suspendResult;
|
|
2469
2469
|
}
|
|
@@ -2474,7 +2474,7 @@
|
|
|
2474
2474
|
var isBinary = _destruct__k2r9zo.ig();
|
|
2475
2475
|
this.u4w_1 = _destruct__k2r9zo.jg();
|
|
2476
2476
|
var newBody = _destruct__k2r9zo.fm();
|
|
2477
|
-
this.v4w_1 = subtract(this.q4w_1.
|
|
2477
|
+
this.v4w_1 = subtract(this.q4w_1.g3f().j2n_1, this.q4w_1.f3f().j2n_1);
|
|
2478
2478
|
if (equals(this.u4w_1, new Long(0, 0))) {
|
|
2479
2479
|
this.s4w_1.p('<-- END HTTP (' + this.v4w_1.toString() + 'ms, ' + toString_0(this.u4w_1) + '-byte body)');
|
|
2480
2480
|
return Unit_instance;
|
|
@@ -2486,9 +2486,9 @@
|
|
|
2486
2486
|
var tmp_1;
|
|
2487
2487
|
if (!(contentType_0 == null)) {
|
|
2488
2488
|
var tmp0_elvis_lhs = charset(contentType_0);
|
|
2489
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2489
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().e1w_1 : tmp0_elvis_lhs;
|
|
2490
2490
|
} else {
|
|
2491
|
-
tmp_1 = Charsets_getInstance().
|
|
2491
|
+
tmp_1 = Charsets_getInstance().e1w_1;
|
|
2492
2492
|
}
|
|
2493
2493
|
tmp_0.w4w_1 = tmp_1;
|
|
2494
2494
|
this.u8_1 = 2;
|
|
@@ -2500,7 +2500,7 @@
|
|
|
2500
2500
|
} else {
|
|
2501
2501
|
var tmp_2 = this;
|
|
2502
2502
|
var type = 'binary';
|
|
2503
|
-
if (this.q4w_1.
|
|
2503
|
+
if (this.q4w_1.p2x().y2l(HttpHeaders_getInstance().y2t_1)) {
|
|
2504
2504
|
type = 'encoded';
|
|
2505
2505
|
}
|
|
2506
2506
|
var tmp_3;
|
|
@@ -2555,17 +2555,17 @@
|
|
|
2555
2555
|
this.v8_1 = 4;
|
|
2556
2556
|
if (invoke$isNone(this.g4x_1))
|
|
2557
2557
|
return this.i4x_1;
|
|
2558
|
-
var tmp0_safe_receiver = this.i4x_1.
|
|
2558
|
+
var tmp0_safe_receiver = this.i4x_1.p2x().r2k(HttpHeaders_getInstance().a2u_1);
|
|
2559
2559
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2560
2560
|
var request = get_request(this.i4x_1);
|
|
2561
|
-
var duration = subtract(this.i4x_1.
|
|
2562
|
-
var startLine = this.i4x_1.
|
|
2561
|
+
var duration = subtract(this.i4x_1.g3f().j2n_1, this.i4x_1.f3f().j2n_1);
|
|
2562
|
+
var startLine = this.i4x_1.p2x().r2k(HttpHeaders_getInstance().h2w_1) === 'chunked' && (invoke$isInfo(this.g4x_1) || invoke$isHeaders(this.g4x_1)) ? '<-- ' + this.i4x_1.m33().toString() + ' ' + pathQuery(request.x3e()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.g4x_1) && !(contentLength == null) ? '<-- ' + this.i4x_1.m33().toString() + ' ' + pathQuery(request.x3e()) + ' (' + duration.toString() + 'ms, ' + toString_0(contentLength) + '-byte body)' : invoke$isBody(this.g4x_1) || (invoke$isInfo(this.g4x_1) && contentLength == null) || (invoke$isHeaders(this.g4x_1) && !(contentLength == null)) || this.i4x_1.p2x().r2k(HttpHeaders_getInstance().y2t_1) === 'gzip' ? '<-- ' + this.i4x_1.m33().toString() + ' ' + pathQuery(request.x3e()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.i4x_1.m33().toString() + ' ' + pathQuery(request.x3e()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2563
2563
|
this.j4x_1.p(startLine);
|
|
2564
2564
|
if (!invoke$isHeaders(this.g4x_1) && !invoke$isBody(this.g4x_1)) {
|
|
2565
2565
|
return this.i4x_1;
|
|
2566
2566
|
}
|
|
2567
2567
|
|
|
2568
|
-
var _iterator__ex2g4s = this.i4x_1.
|
|
2568
|
+
var _iterator__ex2g4s = this.i4x_1.p2x().a2m().r();
|
|
2569
2569
|
while (_iterator__ex2g4s.s()) {
|
|
2570
2570
|
var _destruct__k2r9zo = _iterator__ex2g4s.t();
|
|
2571
2571
|
var name = _destruct__k2r9zo.z();
|
|
@@ -2601,14 +2601,14 @@
|
|
|
2601
2601
|
return this.i4x_1;
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
|
-
if (equals(contentType(this.i4x_1), Text_getInstance().
|
|
2604
|
+
if (equals(contentType(this.i4x_1), Text_getInstance().y2s_1)) {
|
|
2605
2605
|
this.j4x_1.p('<-- END HTTP (streaming)');
|
|
2606
2606
|
return this.i4x_1;
|
|
2607
2607
|
}
|
|
2608
2608
|
|
|
2609
2609
|
if (get_isSaved(this.i4x_1)) {
|
|
2610
2610
|
this.u8_1 = 3;
|
|
2611
|
-
suspendResult = invoke$logResponseBody(this.h4x_1, this.i4x_1, this.i4x_1.
|
|
2611
|
+
suspendResult = invoke$logResponseBody(this.h4x_1, this.i4x_1, this.i4x_1.d3f(), this.j4x_1, this);
|
|
2612
2612
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2613
2613
|
return suspendResult;
|
|
2614
2614
|
}
|
|
@@ -2619,7 +2619,7 @@
|
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
2621
|
case 1:
|
|
2622
|
-
var _destruct__k2r9zo_0 = split(this.i4x_1.
|
|
2622
|
+
var _destruct__k2r9zo_0 = split(this.i4x_1.d3f(), this.i4x_1);
|
|
2623
2623
|
this.k4x_1 = _destruct__k2r9zo_0.ig();
|
|
2624
2624
|
var newChannel = _destruct__k2r9zo_0.jg();
|
|
2625
2625
|
this.u8_1 = 2;
|
|
@@ -2630,9 +2630,9 @@
|
|
|
2630
2630
|
|
|
2631
2631
|
continue $sm;
|
|
2632
2632
|
case 2:
|
|
2633
|
-
var tmp_0 = this.i4x_1.
|
|
2633
|
+
var tmp_0 = this.i4x_1.v3e();
|
|
2634
2634
|
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.k4x_1));
|
|
2635
|
-
return call.
|
|
2635
|
+
return call.g3c();
|
|
2636
2636
|
case 3:
|
|
2637
2637
|
return this.i4x_1;
|
|
2638
2638
|
case 4:
|
|
@@ -2750,15 +2750,15 @@
|
|
|
2750
2750
|
// Inline function 'kotlin.with' call
|
|
2751
2751
|
if (level.x4q_1) {
|
|
2752
2752
|
// Inline function 'kotlin.text.appendLine' call
|
|
2753
|
-
var value = 'RESPONSE: ' + response.
|
|
2753
|
+
var value = 'RESPONSE: ' + response.m33().toString();
|
|
2754
2754
|
// Inline function 'kotlin.text.appendLine' call
|
|
2755
2755
|
log.f8(value).g8(_Char___init__impl__6a9atx(10));
|
|
2756
2756
|
// Inline function 'kotlin.text.appendLine' call
|
|
2757
|
-
var value_0 = 'METHOD: ' + response.
|
|
2757
|
+
var value_0 = 'METHOD: ' + response.v3e().o3e().w3e().toString();
|
|
2758
2758
|
// Inline function 'kotlin.text.appendLine' call
|
|
2759
2759
|
log.f8(value_0).g8(_Char___init__impl__6a9atx(10));
|
|
2760
2760
|
// Inline function 'kotlin.text.appendLine' call
|
|
2761
|
-
var value_1 = 'FROM: ' + response.
|
|
2761
|
+
var value_1 = 'FROM: ' + response.v3e().o3e().x3e().toString();
|
|
2762
2762
|
// Inline function 'kotlin.text.appendLine' call
|
|
2763
2763
|
log.f8(value_1).g8(_Char___init__impl__6a9atx(10));
|
|
2764
2764
|
}
|
|
@@ -2767,7 +2767,7 @@
|
|
|
2767
2767
|
var value_2 = 'COMMON HEADERS';
|
|
2768
2768
|
// Inline function 'kotlin.text.appendLine' call
|
|
2769
2769
|
log.f8(value_2).g8(_Char___init__impl__6a9atx(10));
|
|
2770
|
-
logHeaders(log, response.
|
|
2770
|
+
logHeaders(log, response.p2x().a2m(), sanitizedHeaders);
|
|
2771
2771
|
}
|
|
2772
2772
|
}
|
|
2773
2773
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2838,7 +2838,7 @@
|
|
|
2838
2838
|
this.v8_1 = 4;
|
|
2839
2839
|
this.v8_1 = 3;
|
|
2840
2840
|
this.u8_1 = 2;
|
|
2841
|
-
suspendResult = appendResponseBody(this.a53_1, contentType(this.z52_1), this.z52_1.
|
|
2841
|
+
suspendResult = appendResponseBody(this.a53_1, contentType(this.z52_1), this.z52_1.d3f(), this);
|
|
2842
2842
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2843
2843
|
return suspendResult;
|
|
2844
2844
|
}
|
|
@@ -2922,7 +2922,7 @@
|
|
|
2922
2922
|
var tmp0_1 = this.m53_1;
|
|
2923
2923
|
var tmp0_safe_receiver = this.l53_1;
|
|
2924
2924
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2925
|
-
this.o53_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
2925
|
+
this.o53_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().e1w_1 : tmp1_elvis_lhs;
|
|
2926
2926
|
this.v8_1 = 2;
|
|
2927
2927
|
this.u8_1 = 1;
|
|
2928
2928
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2980,20 +2980,20 @@
|
|
|
2980
2980
|
function toReadChannel(_this__u8e3s4) {
|
|
2981
2981
|
var tmp = GlobalScope_instance;
|
|
2982
2982
|
var tmp_0 = Dispatchers_getInstance().f15_1;
|
|
2983
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
2983
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).b1u_1;
|
|
2984
2984
|
}
|
|
2985
2985
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2986
2986
|
this.k54_1 = $this_toReadChannel;
|
|
2987
2987
|
CoroutineImpl.call(this, resultContinuation);
|
|
2988
2988
|
}
|
|
2989
|
-
protoOf(toReadChannel$slambda).
|
|
2990
|
-
var tmp = this.
|
|
2989
|
+
protoOf(toReadChannel$slambda).s38 = function ($this$writer, $completion) {
|
|
2990
|
+
var tmp = this.t38($this$writer, $completion);
|
|
2991
2991
|
tmp.w8_1 = Unit_instance;
|
|
2992
2992
|
tmp.x8_1 = null;
|
|
2993
2993
|
return tmp.c9();
|
|
2994
2994
|
};
|
|
2995
2995
|
protoOf(toReadChannel$slambda).o9 = function (p1, $completion) {
|
|
2996
|
-
return this.
|
|
2996
|
+
return this.s38(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
2997
2997
|
};
|
|
2998
2998
|
protoOf(toReadChannel$slambda).c9 = function () {
|
|
2999
2999
|
var suspendResult = this.w8_1;
|
|
@@ -3004,7 +3004,7 @@
|
|
|
3004
3004
|
case 0:
|
|
3005
3005
|
this.v8_1 = 2;
|
|
3006
3006
|
this.u8_1 = 1;
|
|
3007
|
-
suspendResult = this.k54_1.
|
|
3007
|
+
suspendResult = this.k54_1.t33(this.l54_1.d1u_1, this);
|
|
3008
3008
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3009
3009
|
return suspendResult;
|
|
3010
3010
|
}
|
|
@@ -3026,7 +3026,7 @@
|
|
|
3026
3026
|
}
|
|
3027
3027
|
while (true);
|
|
3028
3028
|
};
|
|
3029
|
-
protoOf(toReadChannel$slambda).
|
|
3029
|
+
protoOf(toReadChannel$slambda).t38 = function ($this$writer, completion) {
|
|
3030
3030
|
var i = new toReadChannel$slambda(this.k54_1, completion);
|
|
3031
3031
|
i.l54_1 = $this$writer;
|
|
3032
3032
|
return i;
|
|
@@ -3034,7 +3034,7 @@
|
|
|
3034
3034
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3035
3035
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3036
3036
|
var l = function ($this$writer, $completion) {
|
|
3037
|
-
return i.
|
|
3037
|
+
return i.s38($this$writer, $completion);
|
|
3038
3038
|
};
|
|
3039
3039
|
l.$arity = 1;
|
|
3040
3040
|
return l;
|
|
@@ -3055,7 +3055,7 @@
|
|
|
3055
3055
|
var tmp0_subject = this.y53_1;
|
|
3056
3056
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3057
3057
|
this.u8_1 = 3;
|
|
3058
|
-
suspendResult = writeFully(this.z53_1, this.y53_1.
|
|
3058
|
+
suspendResult = writeFully(this.z53_1, this.y53_1.o33(), VOID, VOID, this);
|
|
3059
3059
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3060
3060
|
return suspendResult;
|
|
3061
3061
|
}
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3065
3065
|
var tmp_0 = this;
|
|
3066
3066
|
var responseChannel = new ByteChannel();
|
|
3067
|
-
var content = this.y53_1.
|
|
3067
|
+
var content = this.y53_1.r33();
|
|
3068
3068
|
copyToBoth(content, this.z53_1, responseChannel);
|
|
3069
3069
|
tmp_0.a54_1 = new LoggedContent(this.y53_1, responseChannel);
|
|
3070
3070
|
this.u8_1 = 5;
|
|
@@ -3082,7 +3082,7 @@
|
|
|
3082
3082
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3083
3083
|
this.b54_1 = this.y53_1;
|
|
3084
3084
|
this.u8_1 = 2;
|
|
3085
|
-
suspendResult = observe(this.y53_1.
|
|
3085
|
+
suspendResult = observe(this.y53_1.x33(), this.z53_1, this);
|
|
3086
3086
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3087
3087
|
return suspendResult;
|
|
3088
3088
|
}
|
|
@@ -3096,7 +3096,7 @@
|
|
|
3096
3096
|
}
|
|
3097
3097
|
if (tmp_2) {
|
|
3098
3098
|
this.u8_1 = 1;
|
|
3099
|
-
suspendResult = this.z53_1.
|
|
3099
|
+
suspendResult = this.z53_1.k1m(this);
|
|
3100
3100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3101
3101
|
return suspendResult;
|
|
3102
3102
|
}
|
|
@@ -3117,12 +3117,12 @@
|
|
|
3117
3117
|
continue $sm;
|
|
3118
3118
|
case 2:
|
|
3119
3119
|
var ARGUMENT = suspendResult;
|
|
3120
|
-
this.a54_1 = this.b54_1.
|
|
3120
|
+
this.a54_1 = this.b54_1.y33(ARGUMENT);
|
|
3121
3121
|
this.u8_1 = 5;
|
|
3122
3122
|
continue $sm;
|
|
3123
3123
|
case 3:
|
|
3124
3124
|
this.u8_1 = 4;
|
|
3125
|
-
suspendResult = this.z53_1.
|
|
3125
|
+
suspendResult = this.z53_1.k1m(this);
|
|
3126
3126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3127
3127
|
return suspendResult;
|
|
3128
3128
|
}
|