client_plugin_logic_deb 1.8.470 → 1.8.472
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/Kosi-Kaverit-kaverit.js +77 -77
- package/Kosi-Kodein-kodein-di.js +595 -595
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1631 -1631
- package/Logic_Debertz-ai_module.js +544 -544
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-bot_engine.js +618 -614
- package/Logic_Debertz-bot_engine.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +4 -3
- package/Logic_Debertz-client_plugin.js +3271 -3272
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1901 -1901
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +17728 -17689
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9591 -9591
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1411 -1411
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +1306 -953
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2589 -2589
- package/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlinx-io-kotlinx-io-core.js +582 -582
- package/kotlinx-serialization-kotlinx-serialization-core.js +1956 -1956
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1444 -1444
- package/ktor-ktor-client-content-negotiation.js +158 -158
- package/ktor-ktor-client-core.js +1977 -1977
- package/ktor-ktor-client-logging.js +652 -652
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http-cio.js +372 -372
- package/ktor-ktor-http.js +742 -742
- package/ktor-ktor-io.js +653 -653
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +153 -153
- package/ktor-ktor-serialization.js +72 -72
- package/ktor-ktor-utils.js +701 -701
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +52 -52
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +8 -8
- package/raspberry-cardgame-lib-core.js +224 -224
- package/raspberry-cardgame-lib-logger.js +106 -106
- package/raspberry-cardgame-lib-random.js +865 -865
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +29 -29
|
@@ -33,41 +33,41 @@
|
|
|
33
33
|
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_io_core) {
|
|
34
34
|
'use strict';
|
|
35
35
|
//region block: imports
|
|
36
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
37
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
38
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
39
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
40
|
-
var trim = kotlin_kotlin.$_$.
|
|
41
|
-
var toString = kotlin_kotlin.$_$.
|
|
42
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
43
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
44
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
45
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
36
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pb;
|
|
37
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.za;
|
|
38
|
+
var THROW_CCE = kotlin_kotlin.$_$.dj;
|
|
39
|
+
var isCharSequence = kotlin_kotlin.$_$.yd;
|
|
40
|
+
var trim = kotlin_kotlin.$_$.di;
|
|
41
|
+
var toString = kotlin_kotlin.$_$.re;
|
|
42
|
+
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.oe;
|
|
44
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pd;
|
|
45
|
+
var charSequenceLength = kotlin_kotlin.$_$.bd;
|
|
46
46
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
47
47
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
48
48
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
49
49
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2;
|
|
50
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
50
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nd;
|
|
51
51
|
var VOID = kotlin_kotlin.$_$.b;
|
|
52
|
-
var Enum = kotlin_kotlin.$_$.
|
|
52
|
+
var Enum = kotlin_kotlin.$_$.si;
|
|
53
53
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
55
|
-
var println = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.od;
|
|
55
|
+
var println = kotlin_kotlin.$_$.tb;
|
|
56
|
+
var initMetadataForObject = kotlin_kotlin.$_$.td;
|
|
57
57
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
58
58
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
59
59
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
60
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
61
|
-
var Long = kotlin_kotlin.$_$.
|
|
60
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.kf;
|
|
61
|
+
var Long = kotlin_kotlin.$_$.xi;
|
|
62
62
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.q;
|
|
63
63
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
64
64
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.o;
|
|
65
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
65
|
+
var fromInt = kotlin_kotlin.$_$.fc;
|
|
66
66
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.n;
|
|
67
67
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
68
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
68
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.sd;
|
|
69
69
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
70
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
70
|
+
var isSuspendFunction = kotlin_kotlin.$_$.fe;
|
|
71
71
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
72
72
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
73
73
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
76
76
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
77
77
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
78
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
78
|
+
var isInterface = kotlin_kotlin.$_$.ce;
|
|
79
79
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.l;
|
|
80
80
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.b;
|
|
81
81
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
82
82
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
83
83
|
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
84
|
-
var Collection = kotlin_kotlin.$_$.
|
|
85
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
84
|
+
var Collection = kotlin_kotlin.$_$.n5;
|
|
85
|
+
var toString_0 = kotlin_kotlin.$_$.hk;
|
|
86
86
|
var charset = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
87
87
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
88
88
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
@@ -92,20 +92,20 @@
|
|
|
92
92
|
var Url = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
93
93
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
94
94
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
95
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
96
|
-
var equals = kotlin_kotlin.$_$.
|
|
95
|
+
var joinToString = kotlin_kotlin.$_$.k8;
|
|
96
|
+
var equals = kotlin_kotlin.$_$.fd;
|
|
97
97
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
98
98
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
99
|
-
var Triple = kotlin_kotlin.$_$.
|
|
99
|
+
var Triple = kotlin_kotlin.$_$.fj;
|
|
100
100
|
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
101
101
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
102
102
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
103
103
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
104
104
|
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
105
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
105
|
+
var charCodeAt = kotlin_kotlin.$_$.zc;
|
|
106
106
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w1;
|
|
107
|
-
var add = kotlin_kotlin.$_$.
|
|
108
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
107
|
+
var add = kotlin_kotlin.$_$.vb;
|
|
108
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ck;
|
|
109
109
|
var split = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
110
110
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.s;
|
|
111
111
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
@@ -116,34 +116,34 @@
|
|
|
116
116
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
117
117
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
118
118
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.x;
|
|
119
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
119
|
+
var toLongOrNull = kotlin_kotlin.$_$.th;
|
|
120
120
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.i1;
|
|
121
121
|
var contentType = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
122
|
-
var subtract = kotlin_kotlin.$_$.
|
|
122
|
+
var subtract = kotlin_kotlin.$_$.qc;
|
|
123
123
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
124
124
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
125
125
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
126
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
127
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
128
|
-
var createKType = kotlin_kotlin.$_$.
|
|
126
|
+
var getKClass = kotlin_kotlin.$_$.lf;
|
|
127
|
+
var arrayOf = kotlin_kotlin.$_$.rj;
|
|
128
|
+
var createKType = kotlin_kotlin.$_$.jf;
|
|
129
129
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
130
130
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
131
|
-
var Unit = kotlin_kotlin.$_$.
|
|
131
|
+
var Unit = kotlin_kotlin.$_$.oj;
|
|
132
132
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
133
|
-
var toList = kotlin_kotlin.$_$.
|
|
134
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
135
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
136
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
137
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
138
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
133
|
+
var toList = kotlin_kotlin.$_$.ia;
|
|
134
|
+
var sortedWith = kotlin_kotlin.$_$.x9;
|
|
135
|
+
var FunctionAdapter = kotlin_kotlin.$_$.sc;
|
|
136
|
+
var Comparator = kotlin_kotlin.$_$.pi;
|
|
137
|
+
var hashCode = kotlin_kotlin.$_$.md;
|
|
138
|
+
var compareValues = kotlin_kotlin.$_$.xa;
|
|
139
139
|
var writer = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
140
140
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
141
141
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
142
|
-
var get = kotlin_kotlin.$_$.
|
|
143
|
-
var fold = kotlin_kotlin.$_$.
|
|
144
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
145
|
-
var plus = kotlin_kotlin.$_$.
|
|
146
|
-
var Element = kotlin_kotlin.$_$.
|
|
142
|
+
var get = kotlin_kotlin.$_$.lb;
|
|
143
|
+
var fold = kotlin_kotlin.$_$.kb;
|
|
144
|
+
var minusKey = kotlin_kotlin.$_$.mb;
|
|
145
|
+
var plus = kotlin_kotlin.$_$.ob;
|
|
146
|
+
var Element = kotlin_kotlin.$_$.nb;
|
|
147
147
|
//endregion
|
|
148
148
|
//region block: pre-declaration
|
|
149
149
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -192,8 +192,8 @@
|
|
|
192
192
|
//endregion
|
|
193
193
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
194
194
|
CoroutineImpl.call(this, resultContinuation);
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
195
|
+
this.r5p_1 = _this__u8e3s4;
|
|
196
|
+
this.s5p_1 = message;
|
|
197
197
|
}
|
|
198
198
|
protoOf($logResponseExceptionCOROUTINE$).q9 = function () {
|
|
199
199
|
var suspendResult = this.k9_1;
|
|
@@ -204,15 +204,15 @@
|
|
|
204
204
|
case 0:
|
|
205
205
|
this.j9_1 = 2;
|
|
206
206
|
this.i9_1 = 1;
|
|
207
|
-
suspendResult = this.
|
|
207
|
+
suspendResult = this.r5p_1.w5p_1.s1o(this);
|
|
208
208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
209
209
|
return suspendResult;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
continue $sm;
|
|
213
213
|
case 1:
|
|
214
|
-
var this_0 = this.
|
|
215
|
-
this.
|
|
214
|
+
var this_0 = this.s5p_1;
|
|
215
|
+
this.r5p_1.t5p_1.a5q(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
216
216
|
return Unit_instance;
|
|
217
217
|
case 2:
|
|
218
218
|
throw this.l9_1;
|
|
@@ -230,8 +230,8 @@
|
|
|
230
230
|
};
|
|
231
231
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
232
232
|
CoroutineImpl.call(this, resultContinuation);
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
233
|
+
this.j5q_1 = _this__u8e3s4;
|
|
234
|
+
this.k5q_1 = message;
|
|
235
235
|
}
|
|
236
236
|
protoOf($logResponseBodyCOROUTINE$).q9 = function () {
|
|
237
237
|
var suspendResult = this.k9_1;
|
|
@@ -242,14 +242,14 @@
|
|
|
242
242
|
case 0:
|
|
243
243
|
this.j9_1 = 2;
|
|
244
244
|
this.i9_1 = 1;
|
|
245
|
-
suspendResult = this.
|
|
245
|
+
suspendResult = this.j5q_1.x5p_1.s1o(this);
|
|
246
246
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
247
247
|
return suspendResult;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
continue $sm;
|
|
251
251
|
case 1:
|
|
252
|
-
this.
|
|
252
|
+
this.j5q_1.v5p_1.q(this.k5q_1);
|
|
253
253
|
return Unit_instance;
|
|
254
254
|
case 2:
|
|
255
255
|
throw this.l9_1;
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
};
|
|
268
268
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
269
269
|
CoroutineImpl.call(this, resultContinuation);
|
|
270
|
-
this.
|
|
270
|
+
this.t5q_1 = _this__u8e3s4;
|
|
271
271
|
}
|
|
272
272
|
protoOf($closeResponseLogCOROUTINE$).q9 = function () {
|
|
273
273
|
var suspendResult = this.k9_1;
|
|
@@ -277,19 +277,19 @@
|
|
|
277
277
|
switch (tmp) {
|
|
278
278
|
case 0:
|
|
279
279
|
this.j9_1 = 2;
|
|
280
|
-
if (!this.
|
|
280
|
+
if (!this.t5q_1.z5p_1.atomicfu$compareAndSet(false, true))
|
|
281
281
|
return Unit_instance;
|
|
282
282
|
this.i9_1 = 1;
|
|
283
|
-
suspendResult = this.
|
|
283
|
+
suspendResult = this.t5q_1.w5p_1.s1o(this);
|
|
284
284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
285
285
|
return suspendResult;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
continue $sm;
|
|
289
289
|
case 1:
|
|
290
|
-
var message = toString(trim(this.
|
|
290
|
+
var message = toString(trim(this.t5q_1.v5p_1));
|
|
291
291
|
if (charSequenceLength(message) > 0) {
|
|
292
|
-
this.
|
|
292
|
+
this.t5q_1.t5p_1.a5q(message);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
return Unit_instance;
|
|
@@ -308,57 +308,57 @@
|
|
|
308
308
|
while (true);
|
|
309
309
|
};
|
|
310
310
|
function HttpClientCallLogger(logger) {
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
318
|
-
}
|
|
319
|
-
protoOf(HttpClientCallLogger).
|
|
320
|
-
var tmp0 = this.
|
|
311
|
+
this.t5p_1 = logger;
|
|
312
|
+
this.u5p_1 = StringBuilder_init_$Create$();
|
|
313
|
+
this.v5p_1 = StringBuilder_init_$Create$();
|
|
314
|
+
this.w5p_1 = Job();
|
|
315
|
+
this.x5p_1 = Job();
|
|
316
|
+
this.y5p_1 = atomic$boolean$1(false);
|
|
317
|
+
this.z5p_1 = atomic$boolean$1(false);
|
|
318
|
+
}
|
|
319
|
+
protoOf(HttpClientCallLogger).u5q = function (message) {
|
|
320
|
+
var tmp0 = this.u5p_1;
|
|
321
321
|
// Inline function 'kotlin.text.trim' call
|
|
322
322
|
// Inline function 'kotlin.text.appendLine' call
|
|
323
323
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
324
324
|
// Inline function 'kotlin.text.appendLine' call
|
|
325
325
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
326
326
|
};
|
|
327
|
-
protoOf(HttpClientCallLogger).
|
|
328
|
-
var tmp0 = this.
|
|
327
|
+
protoOf(HttpClientCallLogger).v5q = function (message) {
|
|
328
|
+
var tmp0 = this.v5p_1;
|
|
329
329
|
// Inline function 'kotlin.text.trim' call
|
|
330
330
|
// Inline function 'kotlin.text.appendLine' call
|
|
331
331
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
332
332
|
// Inline function 'kotlin.text.appendLine' call
|
|
333
333
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
334
|
-
this.
|
|
334
|
+
this.x5p_1.t1v();
|
|
335
335
|
};
|
|
336
|
-
protoOf(HttpClientCallLogger).
|
|
336
|
+
protoOf(HttpClientCallLogger).w5q = function (message, $completion) {
|
|
337
337
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
338
338
|
tmp.k9_1 = Unit_instance;
|
|
339
339
|
tmp.l9_1 = null;
|
|
340
340
|
return tmp.q9();
|
|
341
341
|
};
|
|
342
|
-
protoOf(HttpClientCallLogger).
|
|
342
|
+
protoOf(HttpClientCallLogger).x5q = function (message, $completion) {
|
|
343
343
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
344
344
|
tmp.k9_1 = Unit_instance;
|
|
345
345
|
tmp.l9_1 = null;
|
|
346
346
|
return tmp.q9();
|
|
347
347
|
};
|
|
348
|
-
protoOf(HttpClientCallLogger).
|
|
349
|
-
if (!this.
|
|
348
|
+
protoOf(HttpClientCallLogger).y5q = function () {
|
|
349
|
+
if (!this.y5p_1.atomicfu$compareAndSet(false, true))
|
|
350
350
|
return Unit_instance;
|
|
351
351
|
try {
|
|
352
|
-
var message = toString(trim(this.
|
|
352
|
+
var message = toString(trim(this.u5p_1));
|
|
353
353
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
354
354
|
if (charSequenceLength(message) > 0) {
|
|
355
|
-
this.
|
|
355
|
+
this.t5p_1.a5q(message);
|
|
356
356
|
}
|
|
357
357
|
}finally {
|
|
358
|
-
this.
|
|
358
|
+
this.w5p_1.t1v();
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
|
-
protoOf(HttpClientCallLogger).
|
|
361
|
+
protoOf(HttpClientCallLogger).z5q = function ($completion) {
|
|
362
362
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
363
363
|
tmp.k9_1 = Unit_instance;
|
|
364
364
|
tmp.l9_1 = null;
|
|
@@ -382,9 +382,9 @@
|
|
|
382
382
|
}
|
|
383
383
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
384
384
|
Enum.call(this, name, ordinal);
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
387
|
-
this.
|
|
385
|
+
this.c5r_1 = info;
|
|
386
|
+
this.d5r_1 = headers;
|
|
387
|
+
this.e5r_1 = body;
|
|
388
388
|
}
|
|
389
389
|
function LogLevel_ALL_getInstance() {
|
|
390
390
|
LogLevel_initEntries();
|
|
@@ -408,27 +408,27 @@
|
|
|
408
408
|
}
|
|
409
409
|
function LoggedContent(originalContent, channel) {
|
|
410
410
|
ReadChannelContent.call(this);
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
416
|
-
this.
|
|
411
|
+
this.g5r_1 = originalContent;
|
|
412
|
+
this.h5r_1 = channel;
|
|
413
|
+
this.i5r_1 = this.g5r_1.p3t();
|
|
414
|
+
this.j5r_1 = this.g5r_1.r3t();
|
|
415
|
+
this.k5r_1 = this.g5r_1.q3t();
|
|
416
|
+
this.l5r_1 = this.g5r_1.b3o();
|
|
417
417
|
}
|
|
418
|
-
protoOf(LoggedContent).
|
|
419
|
-
return this.
|
|
418
|
+
protoOf(LoggedContent).p3t = function () {
|
|
419
|
+
return this.i5r_1;
|
|
420
420
|
};
|
|
421
|
-
protoOf(LoggedContent).
|
|
422
|
-
return this.
|
|
421
|
+
protoOf(LoggedContent).r3t = function () {
|
|
422
|
+
return this.j5r_1;
|
|
423
423
|
};
|
|
424
|
-
protoOf(LoggedContent).
|
|
425
|
-
return this.
|
|
424
|
+
protoOf(LoggedContent).q3t = function () {
|
|
425
|
+
return this.k5r_1;
|
|
426
426
|
};
|
|
427
|
-
protoOf(LoggedContent).
|
|
428
|
-
return this.
|
|
427
|
+
protoOf(LoggedContent).b3o = function () {
|
|
428
|
+
return this.l5r_1;
|
|
429
429
|
};
|
|
430
|
-
protoOf(LoggedContent).
|
|
431
|
-
return this.
|
|
430
|
+
protoOf(LoggedContent).v3t = function () {
|
|
431
|
+
return this.h5r_1;
|
|
432
432
|
};
|
|
433
433
|
function Companion() {
|
|
434
434
|
}
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
}
|
|
442
442
|
function SimpleLogger() {
|
|
443
443
|
}
|
|
444
|
-
protoOf(SimpleLogger).
|
|
444
|
+
protoOf(SimpleLogger).a5q = function (message) {
|
|
445
445
|
println('HttpClient: ' + message);
|
|
446
446
|
};
|
|
447
447
|
var SimpleLogger_instance;
|
|
@@ -466,19 +466,19 @@
|
|
|
466
466
|
function LoggingConfig() {
|
|
467
467
|
var tmp = this;
|
|
468
468
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
469
|
-
tmp.
|
|
469
|
+
tmp.m5r_1 = ArrayList_init_$Create$();
|
|
470
470
|
var tmp_0 = this;
|
|
471
471
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
472
|
-
tmp_0.
|
|
473
|
-
this.
|
|
474
|
-
this.
|
|
475
|
-
this.
|
|
472
|
+
tmp_0.n5r_1 = ArrayList_init_$Create$();
|
|
473
|
+
this.o5r_1 = null;
|
|
474
|
+
this.p5r_1 = LoggingFormat_Default_getInstance();
|
|
475
|
+
this.q5r_1 = LogLevel_HEADERS_getInstance();
|
|
476
476
|
}
|
|
477
|
-
protoOf(LoggingConfig).
|
|
478
|
-
this.
|
|
477
|
+
protoOf(LoggingConfig).r5r = function (value) {
|
|
478
|
+
this.o5r_1 = value;
|
|
479
479
|
};
|
|
480
|
-
protoOf(LoggingConfig).
|
|
481
|
-
var tmp0_elvis_lhs = this.
|
|
480
|
+
protoOf(LoggingConfig).s5r = function () {
|
|
481
|
+
var tmp0_elvis_lhs = this.o5r_1;
|
|
482
482
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
483
483
|
};
|
|
484
484
|
var LoggingFormat_Default_instance;
|
|
@@ -500,17 +500,17 @@
|
|
|
500
500
|
// Inline function 'kotlin.apply' call
|
|
501
501
|
var this_0 = StringBuilder_init_$Create$();
|
|
502
502
|
// Inline function 'kotlin.text.isEmpty' call
|
|
503
|
-
var this_1 = _this__u8e3s4.
|
|
503
|
+
var this_1 = _this__u8e3s4.c3t();
|
|
504
504
|
if (charSequenceLength(this_1) === 0) {
|
|
505
505
|
this_0.q('/');
|
|
506
506
|
} else {
|
|
507
|
-
this_0.q(_this__u8e3s4.
|
|
507
|
+
this_0.q(_this__u8e3s4.c3t());
|
|
508
508
|
}
|
|
509
509
|
// Inline function 'kotlin.text.isEmpty' call
|
|
510
|
-
var this_2 = _this__u8e3s4.
|
|
510
|
+
var this_2 = _this__u8e3s4.f3t();
|
|
511
511
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
512
512
|
this_0.q('?');
|
|
513
|
-
this_0.q(_this__u8e3s4.
|
|
513
|
+
this_0.q(_this__u8e3s4.f3t());
|
|
514
514
|
}
|
|
515
515
|
return this_0.toString();
|
|
516
516
|
}
|
|
@@ -522,10 +522,10 @@
|
|
|
522
522
|
}
|
|
523
523
|
var tmp;
|
|
524
524
|
if (content instanceof ByteArrayContent) {
|
|
525
|
-
tmp = fromInt(content.
|
|
525
|
+
tmp = fromInt(content.s3t().length);
|
|
526
526
|
} else {
|
|
527
527
|
if (content instanceof ContentWrapper) {
|
|
528
|
-
tmp = computeRequestBodySize(content.
|
|
528
|
+
tmp = computeRequestBodySize(content.b3u());
|
|
529
529
|
} else {
|
|
530
530
|
if (content instanceof NoContent) {
|
|
531
531
|
tmp = new Long(0, 0);
|
|
@@ -542,27 +542,27 @@
|
|
|
542
542
|
return tmp;
|
|
543
543
|
}
|
|
544
544
|
function Context(context) {
|
|
545
|
-
this.
|
|
545
|
+
this.t5r_1 = context;
|
|
546
546
|
}
|
|
547
|
-
protoOf(Context).
|
|
548
|
-
return this.
|
|
547
|
+
protoOf(Context).u5r = function (content, $completion) {
|
|
548
|
+
return this.t5r_1.j3f(content, $completion);
|
|
549
549
|
};
|
|
550
|
-
protoOf(Context).
|
|
551
|
-
return this.
|
|
550
|
+
protoOf(Context).v5r = function ($completion) {
|
|
551
|
+
return this.t5r_1.k3f($completion);
|
|
552
552
|
};
|
|
553
553
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
554
|
-
this.
|
|
554
|
+
this.e5s_1 = $handler;
|
|
555
555
|
CoroutineImpl.call(this, resultContinuation);
|
|
556
556
|
}
|
|
557
|
-
protoOf(SendHook$install$slambda).
|
|
558
|
-
var tmp = this.
|
|
557
|
+
protoOf(SendHook$install$slambda).e44 = function ($this$intercept, it, $completion) {
|
|
558
|
+
var tmp = this.f44($this$intercept, it, $completion);
|
|
559
559
|
tmp.k9_1 = Unit_instance;
|
|
560
560
|
tmp.l9_1 = null;
|
|
561
561
|
return tmp.q9();
|
|
562
562
|
};
|
|
563
563
|
protoOf(SendHook$install$slambda).da = function (p1, p2, $completion) {
|
|
564
564
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
565
|
-
return this.
|
|
565
|
+
return this.e44(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
566
566
|
};
|
|
567
567
|
protoOf(SendHook$install$slambda).q9 = function () {
|
|
568
568
|
var suspendResult = this.k9_1;
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
case 0:
|
|
574
574
|
this.j9_1 = 2;
|
|
575
575
|
this.i9_1 = 1;
|
|
576
|
-
suspendResult = this.
|
|
576
|
+
suspendResult = this.e5s_1(new Context(this.f5s_1), this.f5s_1.f3g_1, this);
|
|
577
577
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
578
578
|
return suspendResult;
|
|
579
579
|
}
|
|
@@ -595,52 +595,52 @@
|
|
|
595
595
|
}
|
|
596
596
|
while (true);
|
|
597
597
|
};
|
|
598
|
-
protoOf(SendHook$install$slambda).
|
|
599
|
-
var i = new SendHook$install$slambda(this.
|
|
600
|
-
i.
|
|
601
|
-
i.
|
|
598
|
+
protoOf(SendHook$install$slambda).f44 = function ($this$intercept, it, completion) {
|
|
599
|
+
var i = new SendHook$install$slambda(this.e5s_1, completion);
|
|
600
|
+
i.f5s_1 = $this$intercept;
|
|
601
|
+
i.g5s_1 = it;
|
|
602
602
|
return i;
|
|
603
603
|
};
|
|
604
604
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
605
605
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
606
606
|
var l = function ($this$intercept, it, $completion) {
|
|
607
|
-
return i.
|
|
607
|
+
return i.e44($this$intercept, it, $completion);
|
|
608
608
|
};
|
|
609
609
|
l.$arity = 2;
|
|
610
610
|
return l;
|
|
611
611
|
}
|
|
612
612
|
function SendHook() {
|
|
613
613
|
}
|
|
614
|
-
protoOf(SendHook).
|
|
615
|
-
var tmp = Phases_getInstance().
|
|
616
|
-
client.
|
|
614
|
+
protoOf(SendHook).h5s = function (client, handler) {
|
|
615
|
+
var tmp = Phases_getInstance().v45_1;
|
|
616
|
+
client.n43_1.j3g(tmp, SendHook$install$slambda_0(handler, null));
|
|
617
617
|
};
|
|
618
|
-
protoOf(SendHook).
|
|
619
|
-
return this.
|
|
618
|
+
protoOf(SendHook).u4c = function (client, handler) {
|
|
619
|
+
return this.h5s(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
620
620
|
};
|
|
621
621
|
var SendHook_instance;
|
|
622
622
|
function SendHook_getInstance() {
|
|
623
623
|
return SendHook_instance;
|
|
624
624
|
}
|
|
625
625
|
function Context_0(context) {
|
|
626
|
-
this.
|
|
626
|
+
this.i5s_1 = context;
|
|
627
627
|
}
|
|
628
|
-
protoOf(Context_0).
|
|
629
|
-
return this.
|
|
628
|
+
protoOf(Context_0).f51 = function (response, $completion) {
|
|
629
|
+
return this.i5s_1.j3f(response, $completion);
|
|
630
630
|
};
|
|
631
631
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
632
|
-
this.
|
|
632
|
+
this.r5s_1 = $handler;
|
|
633
633
|
CoroutineImpl.call(this, resultContinuation);
|
|
634
634
|
}
|
|
635
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
636
|
-
var tmp = this.
|
|
635
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).g4d = function ($this$intercept, it, $completion) {
|
|
636
|
+
var tmp = this.h4d($this$intercept, it, $completion);
|
|
637
637
|
tmp.k9_1 = Unit_instance;
|
|
638
638
|
tmp.l9_1 = null;
|
|
639
639
|
return tmp.q9();
|
|
640
640
|
};
|
|
641
641
|
protoOf(ResponseAfterEncodingHook$install$slambda).da = function (p1, p2, $completion) {
|
|
642
642
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
643
|
-
return this.
|
|
643
|
+
return this.g4d(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
644
644
|
};
|
|
645
645
|
protoOf(ResponseAfterEncodingHook$install$slambda).q9 = function () {
|
|
646
646
|
var suspendResult = this.k9_1;
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
case 0:
|
|
652
652
|
this.j9_1 = 2;
|
|
653
653
|
this.i9_1 = 1;
|
|
654
|
-
suspendResult = this.
|
|
654
|
+
suspendResult = this.r5s_1(new Context_0(this.s5s_1), this.s5s_1.i3f(), this);
|
|
655
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
656
656
|
return suspendResult;
|
|
657
657
|
}
|
|
@@ -673,53 +673,53 @@
|
|
|
673
673
|
}
|
|
674
674
|
while (true);
|
|
675
675
|
};
|
|
676
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
677
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
678
|
-
i.
|
|
679
|
-
i.
|
|
676
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).h4d = function ($this$intercept, it, completion) {
|
|
677
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.r5s_1, completion);
|
|
678
|
+
i.s5s_1 = $this$intercept;
|
|
679
|
+
i.t5s_1 = it;
|
|
680
680
|
return i;
|
|
681
681
|
};
|
|
682
682
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
683
683
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
684
684
|
var l = function ($this$intercept, it, $completion) {
|
|
685
|
-
return i.
|
|
685
|
+
return i.g4d($this$intercept, it, $completion);
|
|
686
686
|
};
|
|
687
687
|
l.$arity = 2;
|
|
688
688
|
return l;
|
|
689
689
|
}
|
|
690
690
|
function ResponseAfterEncodingHook() {
|
|
691
691
|
}
|
|
692
|
-
protoOf(ResponseAfterEncodingHook).
|
|
692
|
+
protoOf(ResponseAfterEncodingHook).u5s = function (client, handler) {
|
|
693
693
|
var afterState = new PipelinePhase('AfterState');
|
|
694
|
-
client.
|
|
695
|
-
client.
|
|
694
|
+
client.o43_1.g3g(Phases_getInstance_0().k4d_1, afterState);
|
|
695
|
+
client.o43_1.j3g(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
696
696
|
};
|
|
697
|
-
protoOf(ResponseAfterEncodingHook).
|
|
698
|
-
return this.
|
|
697
|
+
protoOf(ResponseAfterEncodingHook).u4c = function (client, handler) {
|
|
698
|
+
return this.u5s(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
699
699
|
};
|
|
700
700
|
var ResponseAfterEncodingHook_instance;
|
|
701
701
|
function ResponseAfterEncodingHook_getInstance() {
|
|
702
702
|
return ResponseAfterEncodingHook_instance;
|
|
703
703
|
}
|
|
704
704
|
function Context_1(context) {
|
|
705
|
-
this.
|
|
705
|
+
this.v5s_1 = context;
|
|
706
706
|
}
|
|
707
|
-
protoOf(Context_1).
|
|
708
|
-
return this.
|
|
707
|
+
protoOf(Context_1).w5s = function ($completion) {
|
|
708
|
+
return this.v5s_1.k3f($completion);
|
|
709
709
|
};
|
|
710
710
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
711
|
-
this.
|
|
711
|
+
this.f5t_1 = $handler;
|
|
712
712
|
CoroutineImpl.call(this, resultContinuation);
|
|
713
713
|
}
|
|
714
|
-
protoOf(ResponseHook$install$slambda).
|
|
715
|
-
var tmp = this.
|
|
714
|
+
protoOf(ResponseHook$install$slambda).g4d = function ($this$intercept, it, $completion) {
|
|
715
|
+
var tmp = this.h4d($this$intercept, it, $completion);
|
|
716
716
|
tmp.k9_1 = Unit_instance;
|
|
717
717
|
tmp.l9_1 = null;
|
|
718
718
|
return tmp.q9();
|
|
719
719
|
};
|
|
720
720
|
protoOf(ResponseHook$install$slambda).da = function (p1, p2, $completion) {
|
|
721
721
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
722
|
-
return this.
|
|
722
|
+
return this.g4d(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
723
723
|
};
|
|
724
724
|
protoOf(ResponseHook$install$slambda).q9 = function () {
|
|
725
725
|
var suspendResult = this.k9_1;
|
|
@@ -730,7 +730,7 @@
|
|
|
730
730
|
case 0:
|
|
731
731
|
this.j9_1 = 2;
|
|
732
732
|
this.i9_1 = 1;
|
|
733
|
-
suspendResult = this.
|
|
733
|
+
suspendResult = this.f5t_1(new Context_1(this.g5t_1), this.g5t_1.i3f(), this);
|
|
734
734
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
735
735
|
return suspendResult;
|
|
736
736
|
}
|
|
@@ -752,52 +752,52 @@
|
|
|
752
752
|
}
|
|
753
753
|
while (true);
|
|
754
754
|
};
|
|
755
|
-
protoOf(ResponseHook$install$slambda).
|
|
756
|
-
var i = new ResponseHook$install$slambda(this.
|
|
757
|
-
i.
|
|
758
|
-
i.
|
|
755
|
+
protoOf(ResponseHook$install$slambda).h4d = function ($this$intercept, it, completion) {
|
|
756
|
+
var i = new ResponseHook$install$slambda(this.f5t_1, completion);
|
|
757
|
+
i.g5t_1 = $this$intercept;
|
|
758
|
+
i.h5t_1 = it;
|
|
759
759
|
return i;
|
|
760
760
|
};
|
|
761
761
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
762
762
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
763
763
|
var l = function ($this$intercept, it, $completion) {
|
|
764
|
-
return i.
|
|
764
|
+
return i.g4d($this$intercept, it, $completion);
|
|
765
765
|
};
|
|
766
766
|
l.$arity = 2;
|
|
767
767
|
return l;
|
|
768
768
|
}
|
|
769
769
|
function ResponseHook() {
|
|
770
770
|
}
|
|
771
|
-
protoOf(ResponseHook).
|
|
772
|
-
var tmp = Phases_getInstance_0().
|
|
773
|
-
client.
|
|
771
|
+
protoOf(ResponseHook).i5t = function (client, handler) {
|
|
772
|
+
var tmp = Phases_getInstance_0().k4d_1;
|
|
773
|
+
client.o43_1.j3g(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
774
774
|
};
|
|
775
|
-
protoOf(ResponseHook).
|
|
776
|
-
return this.
|
|
775
|
+
protoOf(ResponseHook).u4c = function (client, handler) {
|
|
776
|
+
return this.i5t(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
777
777
|
};
|
|
778
778
|
var ResponseHook_instance;
|
|
779
779
|
function ResponseHook_getInstance() {
|
|
780
780
|
return ResponseHook_instance;
|
|
781
781
|
}
|
|
782
782
|
function Context_2(context) {
|
|
783
|
-
this.
|
|
783
|
+
this.j5t_1 = context;
|
|
784
784
|
}
|
|
785
|
-
protoOf(Context_2).
|
|
786
|
-
return this.
|
|
785
|
+
protoOf(Context_2).k5t = function ($completion) {
|
|
786
|
+
return this.j5t_1.k3f($completion);
|
|
787
787
|
};
|
|
788
788
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
789
|
-
this.
|
|
789
|
+
this.t5t_1 = $handler;
|
|
790
790
|
CoroutineImpl.call(this, resultContinuation);
|
|
791
791
|
}
|
|
792
|
-
protoOf(ReceiveHook$install$slambda).
|
|
793
|
-
var tmp = this.
|
|
792
|
+
protoOf(ReceiveHook$install$slambda).z44 = function ($this$intercept, it, $completion) {
|
|
793
|
+
var tmp = this.a45($this$intercept, it, $completion);
|
|
794
794
|
tmp.k9_1 = Unit_instance;
|
|
795
795
|
tmp.l9_1 = null;
|
|
796
796
|
return tmp.q9();
|
|
797
797
|
};
|
|
798
798
|
protoOf(ReceiveHook$install$slambda).da = function (p1, p2, $completion) {
|
|
799
799
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
800
|
-
return this.
|
|
800
|
+
return this.z44(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
801
801
|
};
|
|
802
802
|
protoOf(ReceiveHook$install$slambda).q9 = function () {
|
|
803
803
|
var suspendResult = this.k9_1;
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
case 0:
|
|
809
809
|
this.j9_1 = 2;
|
|
810
810
|
this.i9_1 = 1;
|
|
811
|
-
suspendResult = this.
|
|
811
|
+
suspendResult = this.t5t_1(new Context_2(this.u5t_1), this.u5t_1.f3g_1, this);
|
|
812
812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
813
813
|
return suspendResult;
|
|
814
814
|
}
|
|
@@ -830,28 +830,28 @@
|
|
|
830
830
|
}
|
|
831
831
|
while (true);
|
|
832
832
|
};
|
|
833
|
-
protoOf(ReceiveHook$install$slambda).
|
|
834
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
835
|
-
i.
|
|
836
|
-
i.
|
|
833
|
+
protoOf(ReceiveHook$install$slambda).a45 = function ($this$intercept, it, completion) {
|
|
834
|
+
var i = new ReceiveHook$install$slambda(this.t5t_1, completion);
|
|
835
|
+
i.u5t_1 = $this$intercept;
|
|
836
|
+
i.v5t_1 = it;
|
|
837
837
|
return i;
|
|
838
838
|
};
|
|
839
839
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
840
840
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
841
841
|
var l = function ($this$intercept, it, $completion) {
|
|
842
|
-
return i.
|
|
842
|
+
return i.z44($this$intercept, it, $completion);
|
|
843
843
|
};
|
|
844
844
|
l.$arity = 2;
|
|
845
845
|
return l;
|
|
846
846
|
}
|
|
847
847
|
function ReceiveHook() {
|
|
848
848
|
}
|
|
849
|
-
protoOf(ReceiveHook).
|
|
850
|
-
var tmp = Phases_getInstance_1().
|
|
851
|
-
client.
|
|
849
|
+
protoOf(ReceiveHook).w5t = function (client, handler) {
|
|
850
|
+
var tmp = Phases_getInstance_1().j46_1;
|
|
851
|
+
client.m43_1.j3g(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
852
852
|
};
|
|
853
|
-
protoOf(ReceiveHook).
|
|
854
|
-
return this.
|
|
853
|
+
protoOf(ReceiveHook).u4c = function (client, handler) {
|
|
854
|
+
return this.w5t(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
855
855
|
};
|
|
856
856
|
var ReceiveHook_instance;
|
|
857
857
|
function ReceiveHook_getInstance() {
|
|
@@ -866,43 +866,43 @@
|
|
|
866
866
|
}
|
|
867
867
|
function Logging$lambda($this$createClientPlugin) {
|
|
868
868
|
_init_properties_Logging_kt__66pui5();
|
|
869
|
-
var logger = $this$createClientPlugin.
|
|
870
|
-
var level = $this$createClientPlugin.
|
|
871
|
-
var filters = $this$createClientPlugin.
|
|
872
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
873
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
869
|
+
var logger = $this$createClientPlugin.o4d_1.s5r();
|
|
870
|
+
var level = $this$createClientPlugin.o4d_1.q5r_1;
|
|
871
|
+
var filters = $this$createClientPlugin.o4d_1.m5r_1;
|
|
872
|
+
var sanitizedHeaders = $this$createClientPlugin.o4d_1.n5r_1;
|
|
873
|
+
var okHttpFormat = $this$createClientPlugin.o4d_1.p5r_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
874
874
|
var tmp = SendHook_instance;
|
|
875
|
-
$this$createClientPlugin.
|
|
875
|
+
$this$createClientPlugin.r4d(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
876
876
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
877
|
-
$this$createClientPlugin.
|
|
877
|
+
$this$createClientPlugin.r4d(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
878
878
|
var tmp_1 = ResponseHook_instance;
|
|
879
|
-
$this$createClientPlugin.
|
|
879
|
+
$this$createClientPlugin.r4d(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
880
880
|
var tmp_2 = ReceiveHook_instance;
|
|
881
|
-
$this$createClientPlugin.
|
|
881
|
+
$this$createClientPlugin.r4d(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
882
882
|
if (okHttpFormat)
|
|
883
883
|
return Unit_instance;
|
|
884
|
-
if (!level.
|
|
884
|
+
if (!level.e5r_1)
|
|
885
885
|
return Unit_instance;
|
|
886
886
|
var tmp_3 = get_ResponseObserver();
|
|
887
|
-
var responseObserver = tmp_3.
|
|
888
|
-
get_ResponseObserver().
|
|
887
|
+
var responseObserver = tmp_3.q46(Logging$lambda$lambda(level));
|
|
888
|
+
get_ResponseObserver().r46(responseObserver, $this$createClientPlugin.n4d_1);
|
|
889
889
|
return Unit_instance;
|
|
890
890
|
}
|
|
891
891
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
892
|
-
this.
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
892
|
+
this.f5u_1 = $channel;
|
|
893
|
+
this.g5u_1 = $firstChunk;
|
|
894
|
+
this.h5u_1 = $firstReadSize;
|
|
895
|
+
this.i5u_1 = $body;
|
|
896
896
|
CoroutineImpl.call(this, resultContinuation);
|
|
897
897
|
}
|
|
898
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
899
|
-
var tmp = this.
|
|
898
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).l5u = function ($this$async, $completion) {
|
|
899
|
+
var tmp = this.x2c($this$async, $completion);
|
|
900
900
|
tmp.k9_1 = Unit_instance;
|
|
901
901
|
tmp.l9_1 = null;
|
|
902
902
|
return tmp.q9();
|
|
903
903
|
};
|
|
904
904
|
protoOf(Logging$lambda$detectIfBinary$slambda).ca = function (p1, $completion) {
|
|
905
|
-
return this.
|
|
905
|
+
return this.l5u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
906
906
|
};
|
|
907
907
|
protoOf(Logging$lambda$detectIfBinary$slambda).q9 = function () {
|
|
908
908
|
var suspendResult = this.k9_1;
|
|
@@ -913,7 +913,7 @@
|
|
|
913
913
|
case 0:
|
|
914
914
|
this.j9_1 = 4;
|
|
915
915
|
this.i9_1 = 1;
|
|
916
|
-
suspendResult = writeFully(this.
|
|
916
|
+
suspendResult = writeFully(this.f5u_1, this.g5u_1, 0, this.h5u_1, this);
|
|
917
917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
918
918
|
return suspendResult;
|
|
919
919
|
}
|
|
@@ -921,23 +921,23 @@
|
|
|
921
921
|
continue $sm;
|
|
922
922
|
case 1:
|
|
923
923
|
this.i9_1 = 2;
|
|
924
|
-
suspendResult = copyTo(this.
|
|
924
|
+
suspendResult = copyTo(this.i5u_1, this.f5u_1, this);
|
|
925
925
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
926
926
|
return suspendResult;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
continue $sm;
|
|
930
930
|
case 2:
|
|
931
|
-
this.
|
|
931
|
+
this.k5u_1 = suspendResult;
|
|
932
932
|
this.i9_1 = 3;
|
|
933
|
-
suspendResult = this.
|
|
933
|
+
suspendResult = this.f5u_1.w2x(this);
|
|
934
934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
935
|
return suspendResult;
|
|
936
936
|
}
|
|
937
937
|
|
|
938
938
|
continue $sm;
|
|
939
939
|
case 3:
|
|
940
|
-
return this.
|
|
940
|
+
return this.k5u_1;
|
|
941
941
|
case 4:
|
|
942
942
|
throw this.l9_1;
|
|
943
943
|
}
|
|
@@ -952,15 +952,15 @@
|
|
|
952
952
|
}
|
|
953
953
|
while (true);
|
|
954
954
|
};
|
|
955
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
956
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
957
|
-
i.
|
|
955
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).x2c = function ($this$async, completion) {
|
|
956
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.f5u_1, this.g5u_1, this.h5u_1, this.i5u_1, completion);
|
|
957
|
+
i.j5u_1 = $this$async;
|
|
958
958
|
return i;
|
|
959
959
|
};
|
|
960
960
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
961
961
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
962
962
|
var l = function ($this$async, $completion) {
|
|
963
|
-
return i.
|
|
963
|
+
return i.l5u($this$async, $completion);
|
|
964
964
|
};
|
|
965
965
|
l.$arity = 1;
|
|
966
966
|
return l;
|
|
@@ -970,18 +970,18 @@
|
|
|
970
970
|
return it;
|
|
971
971
|
}
|
|
972
972
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
973
|
+
this.u5u_1 = $content;
|
|
974
|
+
this.v5u_1 = $channel;
|
|
975
975
|
CoroutineImpl.call(this, resultContinuation);
|
|
976
976
|
}
|
|
977
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
978
|
-
var tmp = this.
|
|
977
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).w2c = function ($this$launch, $completion) {
|
|
978
|
+
var tmp = this.x2c($this$launch, $completion);
|
|
979
979
|
tmp.k9_1 = Unit_instance;
|
|
980
980
|
tmp.l9_1 = null;
|
|
981
981
|
return tmp.q9();
|
|
982
982
|
};
|
|
983
983
|
protoOf(Logging$lambda$logOutgoingContent$slambda).ca = function (p1, $completion) {
|
|
984
|
-
return this.
|
|
984
|
+
return this.w2c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
985
985
|
};
|
|
986
986
|
protoOf(Logging$lambda$logOutgoingContent$slambda).q9 = function () {
|
|
987
987
|
var suspendResult = this.k9_1;
|
|
@@ -992,14 +992,14 @@
|
|
|
992
992
|
case 0:
|
|
993
993
|
this.j9_1 = 2;
|
|
994
994
|
this.i9_1 = 1;
|
|
995
|
-
suspendResult = this.
|
|
995
|
+
suspendResult = this.u5u_1.x3t(this.v5u_1, this);
|
|
996
996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
997
|
return suspendResult;
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
continue $sm;
|
|
1001
1001
|
case 1:
|
|
1002
|
-
this.
|
|
1002
|
+
this.v5u_1.r4();
|
|
1003
1003
|
return Unit_instance;
|
|
1004
1004
|
case 2:
|
|
1005
1005
|
throw this.l9_1;
|
|
@@ -1015,22 +1015,22 @@
|
|
|
1015
1015
|
}
|
|
1016
1016
|
while (true);
|
|
1017
1017
|
};
|
|
1018
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1019
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1020
|
-
i.
|
|
1018
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).x2c = function ($this$launch, completion) {
|
|
1019
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.u5u_1, this.v5u_1, completion);
|
|
1020
|
+
i.w5u_1 = $this$launch;
|
|
1021
1021
|
return i;
|
|
1022
1022
|
};
|
|
1023
1023
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1024
1024
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1025
1025
|
var l = function ($this$launch, $completion) {
|
|
1026
|
-
return i.
|
|
1026
|
+
return i.w2c($this$launch, $completion);
|
|
1027
1027
|
};
|
|
1028
1028
|
l.$arity = 1;
|
|
1029
1029
|
return l;
|
|
1030
1030
|
}
|
|
1031
1031
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1032
1032
|
_init_properties_Logging_kt__66pui5();
|
|
1033
|
-
return GZipEncoder_getInstance().
|
|
1033
|
+
return GZipEncoder_getInstance().h3c(channel);
|
|
1034
1034
|
}
|
|
1035
1035
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1036
1036
|
return function ($this$replaceResponse) {
|
|
@@ -1038,20 +1038,20 @@
|
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
1040
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1041
|
+
this.f5v_1 = $channel;
|
|
1042
|
+
this.g5v_1 = $charset;
|
|
1043
|
+
this.h5v_1 = $requestLog;
|
|
1044
|
+
this.i5v_1 = $logger;
|
|
1045
1045
|
CoroutineImpl.call(this, resultContinuation);
|
|
1046
1046
|
}
|
|
1047
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1048
|
-
var tmp = this.
|
|
1047
|
+
protoOf(Logging$lambda$logRequestBody$slambda).w2c = function ($this$launch, $completion) {
|
|
1048
|
+
var tmp = this.x2c($this$launch, $completion);
|
|
1049
1049
|
tmp.k9_1 = Unit_instance;
|
|
1050
1050
|
tmp.l9_1 = null;
|
|
1051
1051
|
return tmp.q9();
|
|
1052
1052
|
};
|
|
1053
1053
|
protoOf(Logging$lambda$logRequestBody$slambda).ca = function (p1, $completion) {
|
|
1054
|
-
return this.
|
|
1054
|
+
return this.w2c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1055
1055
|
};
|
|
1056
1056
|
protoOf(Logging$lambda$logRequestBody$slambda).q9 = function () {
|
|
1057
1057
|
var suspendResult = this.k9_1;
|
|
@@ -1065,8 +1065,8 @@
|
|
|
1065
1065
|
continue $sm;
|
|
1066
1066
|
case 1:
|
|
1067
1067
|
this.j9_1 = 6;
|
|
1068
|
-
var tmp0 = this.
|
|
1069
|
-
this.
|
|
1068
|
+
var tmp0 = this.f5v_1;
|
|
1069
|
+
this.m5v_1 = this.g5v_1;
|
|
1070
1070
|
this.j9_1 = 3;
|
|
1071
1071
|
this.i9_1 = 2;
|
|
1072
1072
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
continue $sm;
|
|
1078
1078
|
case 2:
|
|
1079
1079
|
var ARGUMENT = suspendResult;
|
|
1080
|
-
this.
|
|
1080
|
+
this.l5v_1 = readText(ARGUMENT, this.m5v_1);
|
|
1081
1081
|
this.j9_1 = 6;
|
|
1082
1082
|
this.i9_1 = 4;
|
|
1083
1083
|
continue $sm;
|
|
@@ -1087,7 +1087,7 @@
|
|
|
1087
1087
|
if (tmp_0 instanceof Error) {
|
|
1088
1088
|
var cause = this.l9_1;
|
|
1089
1089
|
var tmp_1 = this;
|
|
1090
|
-
tmp_1.
|
|
1090
|
+
tmp_1.l5v_1 = null;
|
|
1091
1091
|
this.i9_1 = 4;
|
|
1092
1092
|
continue $sm;
|
|
1093
1093
|
} else {
|
|
@@ -1096,27 +1096,27 @@
|
|
|
1096
1096
|
|
|
1097
1097
|
case 4:
|
|
1098
1098
|
this.j9_1 = 6;
|
|
1099
|
-
var tmp0_elvis_lhs = this.
|
|
1099
|
+
var tmp0_elvis_lhs = this.l5v_1;
|
|
1100
1100
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1101
|
-
var tmp0_0 = this.
|
|
1101
|
+
var tmp0_0 = this.h5v_1;
|
|
1102
1102
|
var value = 'BODY START';
|
|
1103
1103
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1104
|
-
this.
|
|
1105
|
-
this.
|
|
1104
|
+
this.h5v_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1105
|
+
this.k5v_1 = this.h5v_1.q('BODY END');
|
|
1106
1106
|
this.j9_1 = 7;
|
|
1107
1107
|
this.i9_1 = 5;
|
|
1108
1108
|
continue $sm;
|
|
1109
1109
|
case 5:
|
|
1110
|
-
this.
|
|
1110
|
+
this.k5v_1;
|
|
1111
1111
|
this.j9_1 = 7;
|
|
1112
|
-
this.
|
|
1113
|
-
this.
|
|
1112
|
+
this.i5v_1.u5q(this.h5v_1.toString());
|
|
1113
|
+
this.i5v_1.y5q();
|
|
1114
1114
|
return Unit_instance;
|
|
1115
1115
|
case 6:
|
|
1116
1116
|
this.j9_1 = 7;
|
|
1117
1117
|
var t = this.l9_1;
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1118
|
+
this.i5v_1.u5q(this.h5v_1.toString());
|
|
1119
|
+
this.i5v_1.y5q();
|
|
1120
1120
|
throw t;
|
|
1121
1121
|
case 7:
|
|
1122
1122
|
throw this.l9_1;
|
|
@@ -1132,15 +1132,15 @@
|
|
|
1132
1132
|
}
|
|
1133
1133
|
while (true);
|
|
1134
1134
|
};
|
|
1135
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1136
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1137
|
-
i.
|
|
1135
|
+
protoOf(Logging$lambda$logRequestBody$slambda).x2c = function ($this$launch, completion) {
|
|
1136
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.f5v_1, this.g5v_1, this.h5v_1, this.i5v_1, completion);
|
|
1137
|
+
i.j5v_1 = $this$launch;
|
|
1138
1138
|
return i;
|
|
1139
1139
|
};
|
|
1140
1140
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1141
1141
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1142
1142
|
var l = function ($this$launch, $completion) {
|
|
1143
|
-
return i.
|
|
1143
|
+
return i.w2c($this$launch, $completion);
|
|
1144
1144
|
};
|
|
1145
1145
|
l.$arity = 1;
|
|
1146
1146
|
return l;
|
|
@@ -1235,47 +1235,47 @@
|
|
|
1235
1235
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1236
1236
|
var requestLog = StringBuilder_init_$Create$();
|
|
1237
1237
|
// Inline function 'kotlin.text.appendLine' call
|
|
1238
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1238
|
+
var value = 'BODY Content-Type: ' + toString_0(content.p3t());
|
|
1239
1239
|
// Inline function 'kotlin.text.appendLine' call
|
|
1240
1240
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1241
|
-
var tmp0_safe_receiver = content.
|
|
1241
|
+
var tmp0_safe_receiver = content.p3t();
|
|
1242
1242
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1243
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1243
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().o37_1 : tmp1_elvis_lhs;
|
|
1244
1244
|
var channel = new ByteChannel();
|
|
1245
1245
|
var tmp = GlobalScope_instance;
|
|
1246
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1246
|
+
var tmp_0 = Dispatchers_getInstance().k1z_1.kh(MDCContext());
|
|
1247
1247
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1248
1248
|
return observe(content, channel, $completion);
|
|
1249
1249
|
}
|
|
1250
1250
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1251
|
-
if (level.
|
|
1252
|
-
logger.
|
|
1251
|
+
if (level.c5r_1) {
|
|
1252
|
+
logger.a5q('REQUEST ' + Url(context.l45_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1256
|
-
var tmp = request.
|
|
1256
|
+
var tmp = request.o45_1;
|
|
1257
1257
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1258
1258
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1259
|
-
request.
|
|
1259
|
+
request.q45_1.w38(get_ClientCallLogger(), callLogger);
|
|
1260
1260
|
// Inline function 'kotlin.text.buildString' call
|
|
1261
1261
|
// Inline function 'kotlin.apply' call
|
|
1262
1262
|
var this_0 = StringBuilder_init_$Create$();
|
|
1263
|
-
if (level.
|
|
1263
|
+
if (level.c5r_1) {
|
|
1264
1264
|
// Inline function 'kotlin.text.appendLine' call
|
|
1265
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1265
|
+
var value = 'REQUEST: ' + Url(request.l45_1).toString();
|
|
1266
1266
|
// Inline function 'kotlin.text.appendLine' call
|
|
1267
1267
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1268
1268
|
// Inline function 'kotlin.text.appendLine' call
|
|
1269
|
-
var value_0 = 'METHOD: ' + request.
|
|
1269
|
+
var value_0 = 'METHOD: ' + request.m45_1.toString();
|
|
1270
1270
|
// Inline function 'kotlin.text.appendLine' call
|
|
1271
1271
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1272
1272
|
}
|
|
1273
|
-
if (level.
|
|
1273
|
+
if (level.d5r_1) {
|
|
1274
1274
|
// Inline function 'kotlin.text.appendLine' call
|
|
1275
1275
|
var value_1 = 'COMMON HEADERS';
|
|
1276
1276
|
// Inline function 'kotlin.text.appendLine' call
|
|
1277
1277
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1278
|
-
logHeaders(this_0, request.
|
|
1278
|
+
logHeaders(this_0, request.n45_1.u3c(), sanitizedHeaders);
|
|
1279
1279
|
// Inline function 'kotlin.text.appendLine' call
|
|
1280
1280
|
var value_2 = 'CONTENT HEADERS';
|
|
1281
1281
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1286,7 +1286,7 @@
|
|
|
1286
1286
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1287
1287
|
while (_iterator__ex2g4s.u()) {
|
|
1288
1288
|
var element = _iterator__ex2g4s.v();
|
|
1289
|
-
if (element.
|
|
1289
|
+
if (element.h5z_1(HttpHeaders_getInstance().l3k_1)) {
|
|
1290
1290
|
tmp$ret$9 = element;
|
|
1291
1291
|
break $l$block;
|
|
1292
1292
|
}
|
|
@@ -1294,14 +1294,14 @@
|
|
|
1294
1294
|
tmp$ret$9 = null;
|
|
1295
1295
|
}
|
|
1296
1296
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1297
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1297
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g5z_1;
|
|
1298
1298
|
var tmp$ret$11;
|
|
1299
1299
|
$l$block_0: {
|
|
1300
1300
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1301
1301
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1302
1302
|
while (_iterator__ex2g4s_0.u()) {
|
|
1303
1303
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1304
|
-
if (element_0.
|
|
1304
|
+
if (element_0.h5z_1(HttpHeaders_getInstance().o3k_1)) {
|
|
1305
1305
|
tmp$ret$11 = element_0;
|
|
1306
1306
|
break $l$block_0;
|
|
1307
1307
|
}
|
|
@@ -1309,66 +1309,66 @@
|
|
|
1309
1309
|
tmp$ret$11 = null;
|
|
1310
1310
|
}
|
|
1311
1311
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1312
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1313
|
-
var tmp2_safe_receiver = content.
|
|
1312
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g5z_1;
|
|
1313
|
+
var tmp2_safe_receiver = content.r3t();
|
|
1314
1314
|
if (tmp2_safe_receiver == null)
|
|
1315
1315
|
null;
|
|
1316
1316
|
else {
|
|
1317
1317
|
// Inline function 'kotlin.let' call
|
|
1318
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1318
|
+
var tmp_0 = HttpHeaders_getInstance().l3k_1;
|
|
1319
1319
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1320
1320
|
}
|
|
1321
|
-
var tmp3_safe_receiver = content.
|
|
1321
|
+
var tmp3_safe_receiver = content.p3t();
|
|
1322
1322
|
if (tmp3_safe_receiver == null)
|
|
1323
1323
|
null;
|
|
1324
1324
|
else {
|
|
1325
1325
|
// Inline function 'kotlin.let' call
|
|
1326
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1326
|
+
var tmp_1 = HttpHeaders_getInstance().o3k_1;
|
|
1327
1327
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1328
1328
|
}
|
|
1329
|
-
logHeaders(this_0, content.
|
|
1329
|
+
logHeaders(this_0, content.b3o().u3c(), sanitizedHeaders);
|
|
1330
1330
|
}
|
|
1331
1331
|
var message = this_0.toString();
|
|
1332
1332
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1333
1333
|
if (charSequenceLength(message) > 0) {
|
|
1334
|
-
callLogger.
|
|
1334
|
+
callLogger.u5q(message);
|
|
1335
1335
|
}
|
|
1336
1336
|
var tmp_2;
|
|
1337
1337
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1338
1338
|
if (charSequenceLength(message) === 0) {
|
|
1339
1339
|
tmp_2 = true;
|
|
1340
1340
|
} else {
|
|
1341
|
-
tmp_2 = !level.
|
|
1341
|
+
tmp_2 = !level.e5r_1;
|
|
1342
1342
|
}
|
|
1343
1343
|
if (tmp_2) {
|
|
1344
|
-
callLogger.
|
|
1344
|
+
callLogger.y5q();
|
|
1345
1345
|
return null;
|
|
1346
1346
|
}
|
|
1347
1347
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1348
1348
|
}
|
|
1349
1349
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1350
|
-
if (!level.
|
|
1350
|
+
if (!level.c5r_1)
|
|
1351
1351
|
return Unit_instance;
|
|
1352
|
-
log.q('RESPONSE ' + request.
|
|
1352
|
+
log.q('RESPONSE ' + request.c47().toString() + ' failed with exception: ' + cause.toString());
|
|
1353
1353
|
}
|
|
1354
1354
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1355
|
+
this.q5z_1 = $okHttpFormat;
|
|
1356
|
+
this.r5z_1 = $logger;
|
|
1357
|
+
this.s5z_1 = $filters;
|
|
1358
|
+
this.t5z_1 = $sanitizedHeaders;
|
|
1359
|
+
this.u5z_1 = $level;
|
|
1360
|
+
this.v5z_1 = $this_createClientPlugin;
|
|
1361
1361
|
CoroutineImpl.call(this, resultContinuation);
|
|
1362
1362
|
}
|
|
1363
|
-
protoOf(Logging$lambda$slambda).
|
|
1364
|
-
var tmp = this.
|
|
1363
|
+
protoOf(Logging$lambda$slambda).e60 = function ($this$on, request, $completion) {
|
|
1364
|
+
var tmp = this.f60($this$on, request, $completion);
|
|
1365
1365
|
tmp.k9_1 = Unit_instance;
|
|
1366
1366
|
tmp.l9_1 = null;
|
|
1367
1367
|
return tmp.q9();
|
|
1368
1368
|
};
|
|
1369
1369
|
protoOf(Logging$lambda$slambda).da = function (p1, p2, $completion) {
|
|
1370
1370
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1371
|
-
return this.
|
|
1371
|
+
return this.e60(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(Logging$lambda$slambda).q9 = function () {
|
|
1374
1374
|
var suspendResult = this.k9_1;
|
|
@@ -1378,16 +1378,16 @@
|
|
|
1378
1378
|
switch (tmp) {
|
|
1379
1379
|
case 0:
|
|
1380
1380
|
this.j9_1 = 16;
|
|
1381
|
-
if (!invoke$shouldBeLogged(this.
|
|
1382
|
-
this.
|
|
1381
|
+
if (!invoke$shouldBeLogged(this.s5z_1, this.x5z_1)) {
|
|
1382
|
+
this.x5z_1.q45_1.w38(get_DisableLogging(), Unit_instance);
|
|
1383
1383
|
return Unit_instance;
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
-
if (this.
|
|
1386
|
+
if (this.q5z_1) {
|
|
1387
1387
|
var tmp_0 = this;
|
|
1388
|
-
tmp_0.
|
|
1388
|
+
tmp_0.a60_1 = ArrayList_init_$Create$();
|
|
1389
1389
|
this.i9_1 = 10;
|
|
1390
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1390
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.t5z_1, this.u5z_1, this.v5z_1, this.x5z_1, this.a60_1, this);
|
|
1391
1391
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1392
1392
|
return suspendResult;
|
|
1393
1393
|
}
|
|
@@ -1400,14 +1400,14 @@
|
|
|
1400
1400
|
case 1:
|
|
1401
1401
|
this.j9_1 = 3;
|
|
1402
1402
|
this.i9_1 = 2;
|
|
1403
|
-
suspendResult = invoke$logRequest(this.
|
|
1403
|
+
suspendResult = invoke$logRequest(this.r5z_1, this.u5z_1, this.t5z_1, this.x5z_1, this);
|
|
1404
1404
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1405
1405
|
return suspendResult;
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
continue $sm;
|
|
1409
1409
|
case 2:
|
|
1410
|
-
this.
|
|
1410
|
+
this.d60_1 = suspendResult;
|
|
1411
1411
|
this.j9_1 = 16;
|
|
1412
1412
|
this.i9_1 = 4;
|
|
1413
1413
|
continue $sm;
|
|
@@ -1417,7 +1417,7 @@
|
|
|
1417
1417
|
if (tmp_1 instanceof Error) {
|
|
1418
1418
|
var _unused_var__etf5q3 = this.l9_1;
|
|
1419
1419
|
var tmp_2 = this;
|
|
1420
|
-
tmp_2.
|
|
1420
|
+
tmp_2.d60_1 = null;
|
|
1421
1421
|
this.i9_1 = 4;
|
|
1422
1422
|
continue $sm;
|
|
1423
1423
|
} else {
|
|
@@ -1426,23 +1426,23 @@
|
|
|
1426
1426
|
|
|
1427
1427
|
case 4:
|
|
1428
1428
|
this.j9_1 = 16;
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1429
|
+
this.c60_1 = this.d60_1;
|
|
1430
|
+
this.b60_1 = Unit_instance;
|
|
1431
1431
|
this.i9_1 = 5;
|
|
1432
1432
|
continue $sm;
|
|
1433
1433
|
case 5:
|
|
1434
1434
|
this.j9_1 = 8;
|
|
1435
1435
|
this.j9_1 = 7;
|
|
1436
1436
|
this.i9_1 = 6;
|
|
1437
|
-
var tmp0_elvis_lhs = this.
|
|
1438
|
-
suspendResult = this.
|
|
1437
|
+
var tmp0_elvis_lhs = this.c60_1;
|
|
1438
|
+
suspendResult = this.w5z_1.u5r(tmp0_elvis_lhs == null ? this.x5z_1.o45_1 : tmp0_elvis_lhs, this);
|
|
1439
1439
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1440
1440
|
return suspendResult;
|
|
1441
1441
|
}
|
|
1442
1442
|
|
|
1443
1443
|
continue $sm;
|
|
1444
1444
|
case 6:
|
|
1445
|
-
this.
|
|
1445
|
+
this.b60_1 = suspendResult;
|
|
1446
1446
|
this.j9_1 = 16;
|
|
1447
1447
|
this.i9_1 = 9;
|
|
1448
1448
|
continue $sm;
|
|
@@ -1452,7 +1452,7 @@
|
|
|
1452
1452
|
if (tmp_3 instanceof Error) {
|
|
1453
1453
|
var cause = this.l9_1;
|
|
1454
1454
|
var tmp_4 = this;
|
|
1455
|
-
invoke$logRequestException(this.
|
|
1455
|
+
invoke$logRequestException(this.u5z_1, this.r5z_1, this.x5z_1, cause);
|
|
1456
1456
|
throw cause;
|
|
1457
1457
|
} else {
|
|
1458
1458
|
throw this.l9_1;
|
|
@@ -1463,26 +1463,26 @@
|
|
|
1463
1463
|
var t = this.l9_1;
|
|
1464
1464
|
throw t;
|
|
1465
1465
|
case 9:
|
|
1466
|
-
this.
|
|
1466
|
+
this.b60_1;
|
|
1467
1467
|
this.j9_1 = 16;
|
|
1468
1468
|
return Unit_instance;
|
|
1469
1469
|
case 10:
|
|
1470
1470
|
var content = suspendResult;
|
|
1471
|
-
if (this.
|
|
1472
|
-
this.
|
|
1471
|
+
if (this.a60_1.g1() > 0) {
|
|
1472
|
+
this.r5z_1.a5q(joinToString(this.a60_1, '\n'));
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
1475
|
this.j9_1 = 14;
|
|
1476
1476
|
if (!(content == null)) {
|
|
1477
1477
|
this.i9_1 = 12;
|
|
1478
|
-
suspendResult = this.
|
|
1478
|
+
suspendResult = this.w5z_1.u5r(content, this);
|
|
1479
1479
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1480
1480
|
return suspendResult;
|
|
1481
1481
|
}
|
|
1482
1482
|
continue $sm;
|
|
1483
1483
|
} else {
|
|
1484
1484
|
this.i9_1 = 11;
|
|
1485
|
-
suspendResult = this.
|
|
1485
|
+
suspendResult = this.w5z_1.v5r(this);
|
|
1486
1486
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1487
1487
|
return suspendResult;
|
|
1488
1488
|
}
|
|
@@ -1490,15 +1490,15 @@
|
|
|
1490
1490
|
}
|
|
1491
1491
|
|
|
1492
1492
|
case 11:
|
|
1493
|
-
this.
|
|
1493
|
+
this.z5z_1 = suspendResult;
|
|
1494
1494
|
this.i9_1 = 13;
|
|
1495
1495
|
continue $sm;
|
|
1496
1496
|
case 12:
|
|
1497
|
-
this.
|
|
1497
|
+
this.z5z_1 = suspendResult;
|
|
1498
1498
|
this.i9_1 = 13;
|
|
1499
1499
|
continue $sm;
|
|
1500
1500
|
case 13:
|
|
1501
|
-
this.
|
|
1501
|
+
this.y5z_1 = this.z5z_1;
|
|
1502
1502
|
this.j9_1 = 16;
|
|
1503
1503
|
this.i9_1 = 15;
|
|
1504
1504
|
continue $sm;
|
|
@@ -1508,7 +1508,7 @@
|
|
|
1508
1508
|
if (tmp_5 instanceof Error) {
|
|
1509
1509
|
var cause_0 = this.l9_1;
|
|
1510
1510
|
var tmp_6 = this;
|
|
1511
|
-
this.
|
|
1511
|
+
this.r5z_1.a5q('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1512
1512
|
throw cause_0;
|
|
1513
1513
|
} else {
|
|
1514
1514
|
throw this.l9_1;
|
|
@@ -1531,37 +1531,37 @@
|
|
|
1531
1531
|
}
|
|
1532
1532
|
while (true);
|
|
1533
1533
|
};
|
|
1534
|
-
protoOf(Logging$lambda$slambda).
|
|
1535
|
-
var i = new Logging$lambda$slambda(this.
|
|
1536
|
-
i.
|
|
1537
|
-
i.
|
|
1534
|
+
protoOf(Logging$lambda$slambda).f60 = function ($this$on, request, completion) {
|
|
1535
|
+
var i = new Logging$lambda$slambda(this.q5z_1, this.r5z_1, this.s5z_1, this.t5z_1, this.u5z_1, this.v5z_1, completion);
|
|
1536
|
+
i.w5z_1 = $this$on;
|
|
1537
|
+
i.x5z_1 = request;
|
|
1538
1538
|
return i;
|
|
1539
1539
|
};
|
|
1540
1540
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1541
1541
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1542
1542
|
var l = function ($this$on, request, $completion) {
|
|
1543
|
-
return i.
|
|
1543
|
+
return i.e60($this$on, request, $completion);
|
|
1544
1544
|
};
|
|
1545
1545
|
l.$arity = 2;
|
|
1546
1546
|
return l;
|
|
1547
1547
|
}
|
|
1548
1548
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1553
|
-
this.
|
|
1549
|
+
this.o60_1 = $okHttpFormat;
|
|
1550
|
+
this.p60_1 = $logger;
|
|
1551
|
+
this.q60_1 = $sanitizedHeaders;
|
|
1552
|
+
this.r60_1 = $level;
|
|
1553
|
+
this.s60_1 = $this_createClientPlugin;
|
|
1554
1554
|
CoroutineImpl.call(this, resultContinuation);
|
|
1555
1555
|
}
|
|
1556
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1557
|
-
var tmp = this.
|
|
1556
|
+
protoOf(Logging$lambda$slambda_1).w60 = function ($this$on, response, $completion) {
|
|
1557
|
+
var tmp = this.x60($this$on, response, $completion);
|
|
1558
1558
|
tmp.k9_1 = Unit_instance;
|
|
1559
1559
|
tmp.l9_1 = null;
|
|
1560
1560
|
return tmp.q9();
|
|
1561
1561
|
};
|
|
1562
1562
|
protoOf(Logging$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
1563
1563
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1564
|
-
return this.
|
|
1564
|
+
return this.w60(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1565
1565
|
};
|
|
1566
1566
|
protoOf(Logging$lambda$slambda_1).q9 = function () {
|
|
1567
1567
|
var suspendResult = this.k9_1;
|
|
@@ -1571,11 +1571,11 @@
|
|
|
1571
1571
|
switch (tmp) {
|
|
1572
1572
|
case 0:
|
|
1573
1573
|
this.j9_1 = 5;
|
|
1574
|
-
if (this.
|
|
1574
|
+
if (this.o60_1) {
|
|
1575
1575
|
var tmp_0 = this;
|
|
1576
|
-
tmp_0.
|
|
1576
|
+
tmp_0.v60_1 = ArrayList_init_$Create$();
|
|
1577
1577
|
this.i9_1 = 1;
|
|
1578
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1578
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.q60_1, this.r60_1, this.s60_1, this.u60_1, this.v60_1, this);
|
|
1579
1579
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1580
1580
|
return suspendResult;
|
|
1581
1581
|
}
|
|
@@ -1587,13 +1587,13 @@
|
|
|
1587
1587
|
|
|
1588
1588
|
case 1:
|
|
1589
1589
|
var newResponse = suspendResult;
|
|
1590
|
-
if (this.
|
|
1591
|
-
this.
|
|
1590
|
+
if (this.v60_1.g1() > 0) {
|
|
1591
|
+
this.p60_1.a5q(joinToString(this.v60_1, '\n'));
|
|
1592
1592
|
}
|
|
1593
1593
|
|
|
1594
|
-
if (!equals(newResponse, this.
|
|
1594
|
+
if (!equals(newResponse, this.u60_1)) {
|
|
1595
1595
|
this.i9_1 = 2;
|
|
1596
|
-
suspendResult = this.
|
|
1596
|
+
suspendResult = this.t60_1.f51(newResponse, this);
|
|
1597
1597
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1598
1598
|
return suspendResult;
|
|
1599
1599
|
}
|
|
@@ -1625,35 +1625,35 @@
|
|
|
1625
1625
|
}
|
|
1626
1626
|
while (true);
|
|
1627
1627
|
};
|
|
1628
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1629
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1630
|
-
i.
|
|
1631
|
-
i.
|
|
1628
|
+
protoOf(Logging$lambda$slambda_1).x60 = function ($this$on, response, completion) {
|
|
1629
|
+
var i = new Logging$lambda$slambda_1(this.o60_1, this.p60_1, this.q60_1, this.r60_1, this.s60_1, completion);
|
|
1630
|
+
i.t60_1 = $this$on;
|
|
1631
|
+
i.u60_1 = response;
|
|
1632
1632
|
return i;
|
|
1633
1633
|
};
|
|
1634
1634
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1635
1635
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1636
1636
|
var l = function ($this$on, response, $completion) {
|
|
1637
|
-
return i.
|
|
1637
|
+
return i.w60($this$on, response, $completion);
|
|
1638
1638
|
};
|
|
1639
1639
|
l.$arity = 2;
|
|
1640
1640
|
return l;
|
|
1641
1641
|
}
|
|
1642
1642
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1643
|
-
this.
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1643
|
+
this.g61_1 = $okHttpFormat;
|
|
1644
|
+
this.h61_1 = $level;
|
|
1645
|
+
this.i61_1 = $sanitizedHeaders;
|
|
1646
1646
|
CoroutineImpl.call(this, resultContinuation);
|
|
1647
1647
|
}
|
|
1648
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1649
|
-
var tmp = this.
|
|
1648
|
+
protoOf(Logging$lambda$slambda_3).r61 = function ($this$on, response, $completion) {
|
|
1649
|
+
var tmp = this.s61($this$on, response, $completion);
|
|
1650
1650
|
tmp.k9_1 = Unit_instance;
|
|
1651
1651
|
tmp.l9_1 = null;
|
|
1652
1652
|
return tmp.q9();
|
|
1653
1653
|
};
|
|
1654
1654
|
protoOf(Logging$lambda$slambda_3).da = function (p1, p2, $completion) {
|
|
1655
1655
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1656
|
-
return this.
|
|
1656
|
+
return this.r61(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1657
1657
|
};
|
|
1658
1658
|
protoOf(Logging$lambda$slambda_3).q9 = function () {
|
|
1659
1659
|
var suspendResult = this.k9_1;
|
|
@@ -1663,28 +1663,28 @@
|
|
|
1663
1663
|
switch (tmp) {
|
|
1664
1664
|
case 0:
|
|
1665
1665
|
this.j9_1 = 14;
|
|
1666
|
-
if (this.
|
|
1666
|
+
if (this.g61_1)
|
|
1667
1667
|
return Unit_instance;
|
|
1668
|
-
if (this.
|
|
1668
|
+
if (this.h61_1.equals(LogLevel_NONE_getInstance()) || this.k61_1.a47().u46().v38(get_DisableLogging()))
|
|
1669
1669
|
return Unit_instance;
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1670
|
+
this.m61_1 = this.k61_1.a47().u46().t38(get_ClientCallLogger());
|
|
1671
|
+
this.o61_1 = StringBuilder_init_$Create$();
|
|
1672
|
+
this.n61_1 = false;
|
|
1673
1673
|
this.i9_1 = 1;
|
|
1674
1674
|
continue $sm;
|
|
1675
1675
|
case 1:
|
|
1676
1676
|
this.j9_1 = 4;
|
|
1677
1677
|
this.j9_1 = 3;
|
|
1678
|
-
logResponseHeader(this.
|
|
1678
|
+
logResponseHeader(this.o61_1, this.k61_1.a47().l44(), this.h61_1, this.i61_1);
|
|
1679
1679
|
this.i9_1 = 2;
|
|
1680
|
-
suspendResult = this.
|
|
1680
|
+
suspendResult = this.j61_1.w5s(this);
|
|
1681
1681
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1682
1682
|
return suspendResult;
|
|
1683
1683
|
}
|
|
1684
1684
|
|
|
1685
1685
|
continue $sm;
|
|
1686
1686
|
case 2:
|
|
1687
|
-
this.
|
|
1687
|
+
this.p61_1 = suspendResult;
|
|
1688
1688
|
this.j9_1 = 14;
|
|
1689
1689
|
this.i9_1 = 9;
|
|
1690
1690
|
continue $sm;
|
|
@@ -1694,8 +1694,8 @@
|
|
|
1694
1694
|
if (tmp_0 instanceof Error) {
|
|
1695
1695
|
var cause = this.l9_1;
|
|
1696
1696
|
var tmp_1 = this;
|
|
1697
|
-
invoke$logResponseException(this.
|
|
1698
|
-
this.
|
|
1697
|
+
invoke$logResponseException(this.h61_1, this.o61_1, this.k61_1.a47().t46(), cause);
|
|
1698
|
+
this.n61_1 = true;
|
|
1699
1699
|
throw cause;
|
|
1700
1700
|
} else {
|
|
1701
1701
|
throw this.l9_1;
|
|
@@ -1703,19 +1703,19 @@
|
|
|
1703
1703
|
|
|
1704
1704
|
case 4:
|
|
1705
1705
|
this.j9_1 = 14;
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1708
|
-
if (this.
|
|
1706
|
+
this.q61_1 = this.l9_1;
|
|
1707
|
+
this.m61_1.v5q(this.o61_1.toString());
|
|
1708
|
+
if (this.n61_1 || !this.h61_1.e5r_1) {
|
|
1709
1709
|
this.i9_1 = 7;
|
|
1710
|
-
suspendResult = this.
|
|
1710
|
+
suspendResult = this.m61_1.z5q(this);
|
|
1711
1711
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1712
1712
|
return suspendResult;
|
|
1713
1713
|
}
|
|
1714
1714
|
continue $sm;
|
|
1715
1715
|
} else {
|
|
1716
|
-
if (this.
|
|
1716
|
+
if (this.h61_1.e5r_1 && get_isSaved(this.k61_1)) {
|
|
1717
1717
|
this.i9_1 = 5;
|
|
1718
|
-
suspendResult = logResponseBody(this.
|
|
1718
|
+
suspendResult = logResponseBody(this.m61_1, this.k61_1, this);
|
|
1719
1719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
1720
|
return suspendResult;
|
|
1721
1721
|
}
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
|
|
1729
1729
|
case 5:
|
|
1730
1730
|
this.i9_1 = 6;
|
|
1731
|
-
suspendResult = this.
|
|
1731
|
+
suspendResult = this.m61_1.z5q(this);
|
|
1732
1732
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1733
1733
|
return suspendResult;
|
|
1734
1734
|
}
|
|
@@ -1741,22 +1741,22 @@
|
|
|
1741
1741
|
this.i9_1 = 8;
|
|
1742
1742
|
continue $sm;
|
|
1743
1743
|
case 8:
|
|
1744
|
-
throw this.
|
|
1744
|
+
throw this.q61_1;
|
|
1745
1745
|
case 9:
|
|
1746
|
-
this.
|
|
1746
|
+
this.l61_1 = this.p61_1;
|
|
1747
1747
|
this.j9_1 = 14;
|
|
1748
|
-
this.
|
|
1749
|
-
if (this.
|
|
1748
|
+
this.m61_1.v5q(this.o61_1.toString());
|
|
1749
|
+
if (this.n61_1 || !this.h61_1.e5r_1) {
|
|
1750
1750
|
this.i9_1 = 12;
|
|
1751
|
-
suspendResult = this.
|
|
1751
|
+
suspendResult = this.m61_1.z5q(this);
|
|
1752
1752
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1753
1753
|
return suspendResult;
|
|
1754
1754
|
}
|
|
1755
1755
|
continue $sm;
|
|
1756
1756
|
} else {
|
|
1757
|
-
if (this.
|
|
1757
|
+
if (this.h61_1.e5r_1 && get_isSaved(this.k61_1)) {
|
|
1758
1758
|
this.i9_1 = 10;
|
|
1759
|
-
suspendResult = logResponseBody(this.
|
|
1759
|
+
suspendResult = logResponseBody(this.m61_1, this.k61_1, this);
|
|
1760
1760
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1761
1761
|
return suspendResult;
|
|
1762
1762
|
}
|
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
|
|
1770
1770
|
case 10:
|
|
1771
1771
|
this.i9_1 = 11;
|
|
1772
|
-
suspendResult = this.
|
|
1772
|
+
suspendResult = this.m61_1.z5q(this);
|
|
1773
1773
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1774
1774
|
return suspendResult;
|
|
1775
1775
|
}
|
|
@@ -1797,34 +1797,34 @@
|
|
|
1797
1797
|
}
|
|
1798
1798
|
while (true);
|
|
1799
1799
|
};
|
|
1800
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1801
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1802
|
-
i.
|
|
1803
|
-
i.
|
|
1800
|
+
protoOf(Logging$lambda$slambda_3).s61 = function ($this$on, response, completion) {
|
|
1801
|
+
var i = new Logging$lambda$slambda_3(this.g61_1, this.h61_1, this.i61_1, completion);
|
|
1802
|
+
i.j61_1 = $this$on;
|
|
1803
|
+
i.k61_1 = response;
|
|
1804
1804
|
return i;
|
|
1805
1805
|
};
|
|
1806
1806
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1807
1807
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1808
1808
|
var l = function ($this$on, response, $completion) {
|
|
1809
|
-
return i.
|
|
1809
|
+
return i.r61($this$on, response, $completion);
|
|
1810
1810
|
};
|
|
1811
1811
|
l.$arity = 2;
|
|
1812
1812
|
return l;
|
|
1813
1813
|
}
|
|
1814
1814
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1815
|
-
this.
|
|
1816
|
-
this.
|
|
1815
|
+
this.b62_1 = $okHttpFormat;
|
|
1816
|
+
this.c62_1 = $level;
|
|
1817
1817
|
CoroutineImpl.call(this, resultContinuation);
|
|
1818
1818
|
}
|
|
1819
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1820
|
-
var tmp = this.
|
|
1819
|
+
protoOf(Logging$lambda$slambda_5).i62 = function ($this$on, call, $completion) {
|
|
1820
|
+
var tmp = this.j62($this$on, call, $completion);
|
|
1821
1821
|
tmp.k9_1 = Unit_instance;
|
|
1822
1822
|
tmp.l9_1 = null;
|
|
1823
1823
|
return tmp.q9();
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(Logging$lambda$slambda_5).da = function (p1, p2, $completion) {
|
|
1826
1826
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1827
|
-
return this.
|
|
1827
|
+
return this.i62(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1828
1828
|
};
|
|
1829
1829
|
protoOf(Logging$lambda$slambda_5).q9 = function () {
|
|
1830
1830
|
var suspendResult = this.k9_1;
|
|
@@ -1834,22 +1834,22 @@
|
|
|
1834
1834
|
switch (tmp) {
|
|
1835
1835
|
case 0:
|
|
1836
1836
|
this.j9_1 = 6;
|
|
1837
|
-
if (this.
|
|
1837
|
+
if (this.b62_1)
|
|
1838
1838
|
return Unit_instance;
|
|
1839
|
-
if (this.
|
|
1839
|
+
if (this.c62_1.equals(LogLevel_NONE_getInstance()) || this.e62_1.u46().v38(get_DisableLogging())) {
|
|
1840
1840
|
return Unit_instance;
|
|
1841
1841
|
}
|
|
1842
1842
|
|
|
1843
1843
|
this.j9_1 = 2;
|
|
1844
1844
|
this.i9_1 = 1;
|
|
1845
|
-
suspendResult = this.
|
|
1845
|
+
suspendResult = this.d62_1.k5t(this);
|
|
1846
1846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1847
1847
|
return suspendResult;
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
1850
|
continue $sm;
|
|
1851
1851
|
case 1:
|
|
1852
|
-
this.
|
|
1852
|
+
this.f62_1 = suspendResult;
|
|
1853
1853
|
this.j9_1 = 6;
|
|
1854
1854
|
this.i9_1 = 5;
|
|
1855
1855
|
continue $sm;
|
|
@@ -1857,12 +1857,12 @@
|
|
|
1857
1857
|
this.j9_1 = 6;
|
|
1858
1858
|
var tmp_0 = this.l9_1;
|
|
1859
1859
|
if (tmp_0 instanceof Error) {
|
|
1860
|
-
this.
|
|
1860
|
+
this.g62_1 = this.l9_1;
|
|
1861
1861
|
var log = StringBuilder_init_$Create$();
|
|
1862
|
-
this.
|
|
1863
|
-
invoke$logResponseException(this.
|
|
1862
|
+
this.h62_1 = this.e62_1.u46().t38(get_ClientCallLogger());
|
|
1863
|
+
invoke$logResponseException(this.c62_1, log, this.e62_1.t46(), this.g62_1);
|
|
1864
1864
|
this.i9_1 = 3;
|
|
1865
|
-
suspendResult = this.
|
|
1865
|
+
suspendResult = this.h62_1.w5q(log.toString(), this);
|
|
1866
1866
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1867
1867
|
return suspendResult;
|
|
1868
1868
|
}
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
|
|
1874
1874
|
case 3:
|
|
1875
1875
|
this.i9_1 = 4;
|
|
1876
|
-
suspendResult = this.
|
|
1876
|
+
suspendResult = this.h62_1.z5q(this);
|
|
1877
1877
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1878
1878
|
return suspendResult;
|
|
1879
1879
|
}
|
|
@@ -1881,7 +1881,7 @@
|
|
|
1881
1881
|
continue $sm;
|
|
1882
1882
|
case 4:
|
|
1883
1883
|
var tmp_1 = this;
|
|
1884
|
-
throw this.
|
|
1884
|
+
throw this.g62_1;
|
|
1885
1885
|
case 5:
|
|
1886
1886
|
this.j9_1 = 6;
|
|
1887
1887
|
return Unit_instance;
|
|
@@ -1899,36 +1899,36 @@
|
|
|
1899
1899
|
}
|
|
1900
1900
|
while (true);
|
|
1901
1901
|
};
|
|
1902
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1903
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1904
|
-
i.
|
|
1905
|
-
i.
|
|
1902
|
+
protoOf(Logging$lambda$slambda_5).j62 = function ($this$on, call, completion) {
|
|
1903
|
+
var i = new Logging$lambda$slambda_5(this.b62_1, this.c62_1, completion);
|
|
1904
|
+
i.d62_1 = $this$on;
|
|
1905
|
+
i.e62_1 = call;
|
|
1906
1906
|
return i;
|
|
1907
1907
|
};
|
|
1908
1908
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1909
1909
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1910
1910
|
var l = function ($this$on, call, $completion) {
|
|
1911
|
-
return i.
|
|
1911
|
+
return i.i62($this$on, call, $completion);
|
|
1912
1912
|
};
|
|
1913
1913
|
l.$arity = 2;
|
|
1914
1914
|
return l;
|
|
1915
1915
|
}
|
|
1916
1916
|
function Logging$lambda$lambda$lambda(it) {
|
|
1917
1917
|
_init_properties_Logging_kt__66pui5();
|
|
1918
|
-
return !get_isSaved(it.
|
|
1918
|
+
return !get_isSaved(it.l44());
|
|
1919
1919
|
}
|
|
1920
1920
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1921
|
-
this.
|
|
1921
|
+
this.s62_1 = $level;
|
|
1922
1922
|
CoroutineImpl.call(this, resultContinuation);
|
|
1923
1923
|
}
|
|
1924
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1925
|
-
var tmp = this.
|
|
1924
|
+
protoOf(Logging$lambda$lambda$slambda).b4g = function (response, $completion) {
|
|
1925
|
+
var tmp = this.o4e(response, $completion);
|
|
1926
1926
|
tmp.k9_1 = Unit_instance;
|
|
1927
1927
|
tmp.l9_1 = null;
|
|
1928
1928
|
return tmp.q9();
|
|
1929
1929
|
};
|
|
1930
1930
|
protoOf(Logging$lambda$lambda$slambda).ca = function (p1, $completion) {
|
|
1931
|
-
return this.
|
|
1931
|
+
return this.b4g(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1932
1932
|
};
|
|
1933
1933
|
protoOf(Logging$lambda$lambda$slambda).q9 = function () {
|
|
1934
1934
|
var suspendResult = this.k9_1;
|
|
@@ -1938,11 +1938,11 @@
|
|
|
1938
1938
|
switch (tmp) {
|
|
1939
1939
|
case 0:
|
|
1940
1940
|
this.j9_1 = 3;
|
|
1941
|
-
if (this.
|
|
1941
|
+
if (this.s62_1.equals(LogLevel_NONE_getInstance()) || this.t62_1.a47().u46().v38(get_DisableLogging()))
|
|
1942
1942
|
return Unit_instance;
|
|
1943
|
-
this.
|
|
1943
|
+
this.u62_1 = this.t62_1.a47().u46().t38(get_ClientCallLogger());
|
|
1944
1944
|
this.i9_1 = 1;
|
|
1945
|
-
suspendResult = logResponseBody(this.
|
|
1945
|
+
suspendResult = logResponseBody(this.u62_1, this.t62_1, this);
|
|
1946
1946
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
1947
|
return suspendResult;
|
|
1948
1948
|
}
|
|
@@ -1950,7 +1950,7 @@
|
|
|
1950
1950
|
continue $sm;
|
|
1951
1951
|
case 1:
|
|
1952
1952
|
this.i9_1 = 2;
|
|
1953
|
-
suspendResult = this.
|
|
1953
|
+
suspendResult = this.u62_1.z5q(this);
|
|
1954
1954
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1955
1955
|
return suspendResult;
|
|
1956
1956
|
}
|
|
@@ -1972,33 +1972,33 @@
|
|
|
1972
1972
|
}
|
|
1973
1973
|
while (true);
|
|
1974
1974
|
};
|
|
1975
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1976
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
1977
|
-
i.
|
|
1975
|
+
protoOf(Logging$lambda$lambda$slambda).o4e = function (response, completion) {
|
|
1976
|
+
var i = new Logging$lambda$lambda$slambda(this.s62_1, completion);
|
|
1977
|
+
i.t62_1 = response;
|
|
1978
1978
|
return i;
|
|
1979
1979
|
};
|
|
1980
1980
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1981
1981
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1982
1982
|
var l = function (response, $completion) {
|
|
1983
|
-
return i.
|
|
1983
|
+
return i.b4g(response, $completion);
|
|
1984
1984
|
};
|
|
1985
1985
|
l.$arity = 1;
|
|
1986
1986
|
return l;
|
|
1987
1987
|
}
|
|
1988
1988
|
function Logging$lambda$lambda($level) {
|
|
1989
1989
|
return function ($this$prepare) {
|
|
1990
|
-
$this$prepare.
|
|
1991
|
-
$this$prepare.
|
|
1990
|
+
$this$prepare.d51(Logging$lambda$lambda$lambda);
|
|
1991
|
+
$this$prepare.c51(Logging$lambda$lambda$slambda_0($level, null));
|
|
1992
1992
|
return Unit_instance;
|
|
1993
1993
|
};
|
|
1994
1994
|
}
|
|
1995
1995
|
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1996
1996
|
CoroutineImpl.call(this, resultContinuation);
|
|
1997
|
-
this.
|
|
1998
|
-
this.
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
2001
|
-
this.
|
|
1997
|
+
this.v5v_1 = $this_createClientPlugin;
|
|
1998
|
+
this.w5v_1 = body;
|
|
1999
|
+
this.x5v_1 = contentLength;
|
|
2000
|
+
this.y5v_1 = contentType;
|
|
2001
|
+
this.z5v_1 = headers;
|
|
2002
2002
|
}
|
|
2003
2003
|
protoOf($invoke$detectIfBinaryCOROUTINE$).q9 = function () {
|
|
2004
2004
|
var suspendResult = this.k9_1;
|
|
@@ -2008,46 +2008,46 @@
|
|
|
2008
2008
|
switch (tmp) {
|
|
2009
2009
|
case 0:
|
|
2010
2010
|
this.j9_1 = 4;
|
|
2011
|
-
if (this.
|
|
2012
|
-
return new Triple(true, this.
|
|
2011
|
+
if (this.z5v_1.s3c(HttpHeaders_getInstance().j3k_1)) {
|
|
2012
|
+
return new Triple(true, this.x5v_1, this.w5v_1);
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
2015
|
var tmp_0 = this;
|
|
2016
2016
|
var tmp_1;
|
|
2017
|
-
if (!(this.
|
|
2018
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2019
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2017
|
+
if (!(this.y5v_1 == null)) {
|
|
2018
|
+
var tmp0_elvis_lhs = charset(this.y5v_1);
|
|
2019
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().o37_1 : tmp0_elvis_lhs;
|
|
2020
2020
|
} else {
|
|
2021
|
-
tmp_1 = Charsets_getInstance().
|
|
2021
|
+
tmp_1 = Charsets_getInstance().o37_1;
|
|
2022
2022
|
}
|
|
2023
2023
|
|
|
2024
|
-
tmp_0.
|
|
2025
|
-
this.
|
|
2026
|
-
this.
|
|
2024
|
+
tmp_0.e5w_1 = tmp_1;
|
|
2025
|
+
this.c5w_1 = false;
|
|
2026
|
+
this.d5w_1 = new Int8Array(1024);
|
|
2027
2027
|
this.i9_1 = 1;
|
|
2028
|
-
suspendResult = readAvailable(this.
|
|
2028
|
+
suspendResult = readAvailable(this.w5v_1, this.d5w_1, VOID, VOID, this);
|
|
2029
2029
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2030
2030
|
return suspendResult;
|
|
2031
2031
|
}
|
|
2032
2032
|
|
|
2033
2033
|
continue $sm;
|
|
2034
2034
|
case 1:
|
|
2035
|
-
this.
|
|
2036
|
-
if (this.
|
|
2037
|
-
return new Triple(false, new Long(0, 0), this.
|
|
2035
|
+
this.b5w_1 = suspendResult;
|
|
2036
|
+
if (this.b5w_1 < 1) {
|
|
2037
|
+
return new Triple(false, new Long(0, 0), this.w5v_1);
|
|
2038
2038
|
}
|
|
2039
2039
|
|
|
2040
2040
|
var this_0 = new Buffer();
|
|
2041
|
-
writeFully_0(this_0, this.
|
|
2041
|
+
writeFully_0(this_0, this.d5w_1, 0, this.b5w_1);
|
|
2042
2042
|
var buffer = this_0;
|
|
2043
2043
|
var tmp_2;
|
|
2044
2044
|
try {
|
|
2045
|
-
tmp_2 = decode(this.
|
|
2045
|
+
tmp_2 = decode(this.e5w_1.r37(), buffer);
|
|
2046
2046
|
} catch ($p) {
|
|
2047
2047
|
var tmp_3;
|
|
2048
2048
|
if ($p instanceof MalformedInputException) {
|
|
2049
2049
|
var _unused_var__etf5q3 = $p;
|
|
2050
|
-
this.
|
|
2050
|
+
this.c5w_1 = true;
|
|
2051
2051
|
tmp_3 = '';
|
|
2052
2052
|
} else {
|
|
2053
2053
|
throw $p;
|
|
@@ -2056,7 +2056,7 @@
|
|
|
2056
2056
|
}
|
|
2057
2057
|
|
|
2058
2058
|
var firstChunkText = tmp_2;
|
|
2059
|
-
if (!this.
|
|
2059
|
+
if (!this.c5w_1) {
|
|
2060
2060
|
var lastCharIndex = -1;
|
|
2061
2061
|
var inductionVariable = 0;
|
|
2062
2062
|
var last = firstChunkText.length;
|
|
@@ -2072,16 +2072,16 @@
|
|
|
2072
2072
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
2073
2073
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2074
2074
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2075
|
-
this.
|
|
2075
|
+
this.c5w_1 = true;
|
|
2076
2076
|
break $l$loop;
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
|
-
if (!this.
|
|
2082
|
-
this.
|
|
2081
|
+
if (!this.c5w_1) {
|
|
2082
|
+
this.a5w_1 = new ByteChannel();
|
|
2083
2083
|
this.i9_1 = 3;
|
|
2084
|
-
suspendResult = async(this.
|
|
2084
|
+
suspendResult = async(this.v5v_1.n4d_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.a5w_1, this.d5w_1, this.b5w_1, this.w5v_1, null)).r1s(this);
|
|
2085
2085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2086
2086
|
return suspendResult;
|
|
2087
2087
|
}
|
|
@@ -2092,12 +2092,12 @@
|
|
|
2092
2092
|
}
|
|
2093
2093
|
|
|
2094
2094
|
case 2:
|
|
2095
|
-
return new Triple(this.
|
|
2095
|
+
return new Triple(this.c5w_1, this.x5v_1, this.w5v_1);
|
|
2096
2096
|
case 3:
|
|
2097
2097
|
var copied = suspendResult;
|
|
2098
|
-
var tmp_4 = this.
|
|
2099
|
-
var other = this.
|
|
2100
|
-
return new Triple(tmp_4, add(copied, fromInt(other)), this.
|
|
2098
|
+
var tmp_4 = this.c5w_1;
|
|
2099
|
+
var other = this.b5w_1;
|
|
2100
|
+
return new Triple(tmp_4, add(copied, fromInt(other)), this.a5w_1);
|
|
2101
2101
|
case 4:
|
|
2102
2102
|
throw this.l9_1;
|
|
2103
2103
|
}
|
|
@@ -2114,13 +2114,13 @@
|
|
|
2114
2114
|
};
|
|
2115
2115
|
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2116
2116
|
CoroutineImpl.call(this, resultContinuation);
|
|
2117
|
-
this.
|
|
2118
|
-
this.
|
|
2119
|
-
this.
|
|
2120
|
-
this.
|
|
2121
|
-
this.
|
|
2122
|
-
this.
|
|
2123
|
-
this.
|
|
2117
|
+
this.n5w_1 = $this_createClientPlugin;
|
|
2118
|
+
this.o5w_1 = content;
|
|
2119
|
+
this.p5w_1 = contentLength;
|
|
2120
|
+
this.q5w_1 = headers;
|
|
2121
|
+
this.r5w_1 = method;
|
|
2122
|
+
this.s5w_1 = logLines;
|
|
2123
|
+
this.t5w_1 = body;
|
|
2124
2124
|
}
|
|
2125
2125
|
protoOf($invoke$logRequestBodyCOROUTINE$).q9 = function () {
|
|
2126
2126
|
var suspendResult = this.k9_1;
|
|
@@ -2131,7 +2131,7 @@
|
|
|
2131
2131
|
case 0:
|
|
2132
2132
|
this.j9_1 = 4;
|
|
2133
2133
|
this.i9_1 = 1;
|
|
2134
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2134
|
+
suspendResult = invoke$detectIfBinary(this.n5w_1, this.t5w_1, this.p5w_1, this.o5w_1.p3t(), this.q5w_1, this);
|
|
2135
2135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2136
2136
|
return suspendResult;
|
|
2137
2137
|
}
|
|
@@ -2140,19 +2140,19 @@
|
|
|
2140
2140
|
case 1:
|
|
2141
2141
|
var _destruct__k2r9zo = suspendResult;
|
|
2142
2142
|
var isBinary = _destruct__k2r9zo.of();
|
|
2143
|
-
this.
|
|
2144
|
-
var newBody = _destruct__k2r9zo.
|
|
2143
|
+
this.v5w_1 = _destruct__k2r9zo.pf();
|
|
2144
|
+
var newBody = _destruct__k2r9zo.vn();
|
|
2145
2145
|
if (!isBinary) {
|
|
2146
|
-
var contentType = this.
|
|
2146
|
+
var contentType = this.o5w_1.p3t();
|
|
2147
2147
|
var tmp_0 = this;
|
|
2148
2148
|
var tmp_1;
|
|
2149
2149
|
if (!(contentType == null)) {
|
|
2150
2150
|
var tmp0_elvis_lhs = charset(contentType);
|
|
2151
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2151
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().o37_1 : tmp0_elvis_lhs;
|
|
2152
2152
|
} else {
|
|
2153
|
-
tmp_1 = Charsets_getInstance().
|
|
2153
|
+
tmp_1 = Charsets_getInstance().o37_1;
|
|
2154
2154
|
}
|
|
2155
|
-
tmp_0.
|
|
2155
|
+
tmp_0.w5w_1 = tmp_1;
|
|
2156
2156
|
this.i9_1 = 2;
|
|
2157
2157
|
suspendResult = readRemaining(newBody, this);
|
|
2158
2158
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2162,25 +2162,25 @@
|
|
|
2162
2162
|
} else {
|
|
2163
2163
|
var tmp_2 = this;
|
|
2164
2164
|
var type = 'binary';
|
|
2165
|
-
if (this.
|
|
2165
|
+
if (this.q5w_1.s3c(HttpHeaders_getInstance().j3k_1)) {
|
|
2166
2166
|
type = 'encoded';
|
|
2167
2167
|
}
|
|
2168
2168
|
var tmp_3;
|
|
2169
|
-
if (!(this.
|
|
2170
|
-
tmp_3 = this.
|
|
2169
|
+
if (!(this.v5w_1 == null)) {
|
|
2170
|
+
tmp_3 = this.s5w_1.e1('--> END ' + this.r5w_1.k3o_1 + ' (' + type + ' ' + this.v5w_1.toString() + '-byte body omitted)');
|
|
2171
2171
|
} else {
|
|
2172
|
-
tmp_3 = this.
|
|
2172
|
+
tmp_3 = this.s5w_1.e1('--> END ' + this.r5w_1.k3o_1 + ' (' + type + ' body omitted)');
|
|
2173
2173
|
}
|
|
2174
|
-
tmp_2.
|
|
2174
|
+
tmp_2.u5w_1 = tmp_3;
|
|
2175
2175
|
this.i9_1 = 3;
|
|
2176
2176
|
continue $sm;
|
|
2177
2177
|
}
|
|
2178
2178
|
|
|
2179
2179
|
case 2:
|
|
2180
2180
|
var ARGUMENT = suspendResult;
|
|
2181
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2182
|
-
this.
|
|
2183
|
-
this.
|
|
2181
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.w5w_1);
|
|
2182
|
+
this.s5w_1.e1(ARGUMENT_0);
|
|
2183
|
+
this.u5w_1 = this.s5w_1.e1('--> END ' + this.r5w_1.k3o_1 + ' (' + toString_0(this.v5w_1) + '-byte body)');
|
|
2184
2184
|
this.i9_1 = 3;
|
|
2185
2185
|
continue $sm;
|
|
2186
2186
|
case 3:
|
|
@@ -2201,12 +2201,12 @@
|
|
|
2201
2201
|
};
|
|
2202
2202
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2203
2203
|
CoroutineImpl.call(this, resultContinuation);
|
|
2204
|
-
this.
|
|
2205
|
-
this.
|
|
2206
|
-
this.
|
|
2207
|
-
this.
|
|
2208
|
-
this.
|
|
2209
|
-
this.
|
|
2204
|
+
this.f5x_1 = $this_createClientPlugin;
|
|
2205
|
+
this.g5x_1 = content;
|
|
2206
|
+
this.h5x_1 = method;
|
|
2207
|
+
this.i5x_1 = headers;
|
|
2208
|
+
this.j5x_1 = logLines;
|
|
2209
|
+
this.k5x_1 = process;
|
|
2210
2210
|
}
|
|
2211
2211
|
protoOf($invoke$logOutgoingContentCOROUTINE$).q9 = function () {
|
|
2212
2212
|
var suspendResult = this.k9_1;
|
|
@@ -2216,11 +2216,11 @@
|
|
|
2216
2216
|
switch (tmp) {
|
|
2217
2217
|
case 0:
|
|
2218
2218
|
this.j9_1 = 6;
|
|
2219
|
-
var tmp0_subject = this.
|
|
2219
|
+
var tmp0_subject = this.g5x_1;
|
|
2220
2220
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2221
|
-
var bytes = this.
|
|
2221
|
+
var bytes = this.g5x_1.s3t();
|
|
2222
2222
|
this.i9_1 = 4;
|
|
2223
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2223
|
+
suspendResult = invoke$logRequestBody(this.f5x_1, this.g5x_1, fromInt(bytes.length), this.i5x_1, this.h5x_1, this.j5x_1, ByteReadChannel(bytes), this);
|
|
2224
2224
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2225
2225
|
return suspendResult;
|
|
2226
2226
|
}
|
|
@@ -2228,7 +2228,7 @@
|
|
|
2228
2228
|
} else {
|
|
2229
2229
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2230
2230
|
this.i9_1 = 3;
|
|
2231
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2231
|
+
suspendResult = invoke$logOutgoingContent(this.f5x_1, this.g5x_1.b3u(), this.h5x_1, this.i5x_1, this.j5x_1, this.k5x_1, this);
|
|
2232
2232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2233
2233
|
return suspendResult;
|
|
2234
2234
|
}
|
|
@@ -2236,24 +2236,24 @@
|
|
|
2236
2236
|
} else {
|
|
2237
2237
|
if (tmp0_subject instanceof NoContent) {
|
|
2238
2238
|
var tmp_0 = this;
|
|
2239
|
-
this.
|
|
2240
|
-
tmp_0.
|
|
2239
|
+
this.j5x_1.e1('--> END ' + this.h5x_1.k3o_1);
|
|
2240
|
+
tmp_0.l5x_1 = null;
|
|
2241
2241
|
this.i9_1 = 5;
|
|
2242
2242
|
continue $sm;
|
|
2243
2243
|
} else {
|
|
2244
2244
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2245
2245
|
var tmp_1 = this;
|
|
2246
|
-
this.
|
|
2247
|
-
tmp_1.
|
|
2246
|
+
this.j5x_1.e1('--> END ' + this.h5x_1.k3o_1);
|
|
2247
|
+
tmp_1.l5x_1 = null;
|
|
2248
2248
|
this.i9_1 = 5;
|
|
2249
2249
|
continue $sm;
|
|
2250
2250
|
} else {
|
|
2251
2251
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2252
|
-
var _destruct__k2r9zo = split(this.
|
|
2253
|
-
this.
|
|
2252
|
+
var _destruct__k2r9zo = split(this.g5x_1.v3t(), this.f5x_1.n4d_1);
|
|
2253
|
+
this.m5x_1 = _destruct__k2r9zo.of();
|
|
2254
2254
|
var newChannel = _destruct__k2r9zo.pf();
|
|
2255
2255
|
this.i9_1 = 2;
|
|
2256
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2256
|
+
suspendResult = invoke$logRequestBody(this.f5x_1, this.g5x_1, this.g5x_1.r3t(), this.i5x_1, this.h5x_1, this.j5x_1, newChannel, this);
|
|
2257
2257
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2258
2258
|
return suspendResult;
|
|
2259
2259
|
}
|
|
@@ -2261,12 +2261,12 @@
|
|
|
2261
2261
|
} else {
|
|
2262
2262
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2263
2263
|
var channel = new ByteChannel();
|
|
2264
|
-
launch(this.
|
|
2265
|
-
var _destruct__k2r9zo_0 = split(channel, this.
|
|
2266
|
-
this.
|
|
2264
|
+
launch(this.f5x_1.n4d_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.g5x_1, channel, null));
|
|
2265
|
+
var _destruct__k2r9zo_0 = split(channel, this.f5x_1.n4d_1);
|
|
2266
|
+
this.n5x_1 = _destruct__k2r9zo_0.of();
|
|
2267
2267
|
var newChannel_0 = _destruct__k2r9zo_0.pf();
|
|
2268
2268
|
this.i9_1 = 1;
|
|
2269
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2269
|
+
suspendResult = invoke$logRequestBody(this.f5x_1, this.g5x_1, this.g5x_1.r3t(), this.i5x_1, this.h5x_1, this.j5x_1, newChannel_0, this);
|
|
2270
2270
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2271
2271
|
return suspendResult;
|
|
2272
2272
|
}
|
|
@@ -2283,23 +2283,23 @@
|
|
|
2283
2283
|
|
|
2284
2284
|
break;
|
|
2285
2285
|
case 1:
|
|
2286
|
-
this.
|
|
2286
|
+
this.l5x_1 = new LoggedContent(this.g5x_1, this.n5x_1);
|
|
2287
2287
|
this.i9_1 = 5;
|
|
2288
2288
|
continue $sm;
|
|
2289
2289
|
case 2:
|
|
2290
|
-
this.
|
|
2290
|
+
this.l5x_1 = new LoggedContent(this.g5x_1, this.m5x_1);
|
|
2291
2291
|
this.i9_1 = 5;
|
|
2292
2292
|
continue $sm;
|
|
2293
2293
|
case 3:
|
|
2294
|
-
this.
|
|
2294
|
+
this.l5x_1 = suspendResult;
|
|
2295
2295
|
this.i9_1 = 5;
|
|
2296
2296
|
continue $sm;
|
|
2297
2297
|
case 4:
|
|
2298
|
-
this.
|
|
2298
|
+
this.l5x_1 = null;
|
|
2299
2299
|
this.i9_1 = 5;
|
|
2300
2300
|
continue $sm;
|
|
2301
2301
|
case 5:
|
|
2302
|
-
return this.
|
|
2302
|
+
return this.l5x_1;
|
|
2303
2303
|
case 6:
|
|
2304
2304
|
throw this.l9_1;
|
|
2305
2305
|
}
|
|
@@ -2316,11 +2316,11 @@
|
|
|
2316
2316
|
};
|
|
2317
2317
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2318
2318
|
CoroutineImpl.call(this, resultContinuation);
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2319
|
+
this.w5x_1 = sanitizedHeaders;
|
|
2320
|
+
this.x5x_1 = level;
|
|
2321
|
+
this.y5x_1 = $this_createClientPlugin;
|
|
2322
|
+
this.z5x_1 = request;
|
|
2323
|
+
this.a5y_1 = logLines;
|
|
2324
2324
|
}
|
|
2325
2325
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).q9 = function () {
|
|
2326
2326
|
var suspendResult = this.k9_1;
|
|
@@ -2330,22 +2330,22 @@
|
|
|
2330
2330
|
switch (tmp) {
|
|
2331
2331
|
case 0:
|
|
2332
2332
|
this.j9_1 = 4;
|
|
2333
|
-
if (invoke$isNone(this.
|
|
2333
|
+
if (invoke$isNone(this.x5x_1))
|
|
2334
2334
|
return null;
|
|
2335
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.
|
|
2336
|
-
var body = this.
|
|
2335
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.z5x_1.l45_1).v3j());
|
|
2336
|
+
var body = this.z5x_1.o45_1;
|
|
2337
2337
|
var this_0 = new HeadersBuilder();
|
|
2338
2338
|
var tmp_0;
|
|
2339
2339
|
var tmp_1;
|
|
2340
2340
|
var tmp_2;
|
|
2341
2341
|
if (body instanceof OutgoingContent) {
|
|
2342
|
-
tmp_2 = !this.
|
|
2342
|
+
tmp_2 = !this.z5x_1.m45_1.equals(Companion_getInstance().c3o_1);
|
|
2343
2343
|
} else {
|
|
2344
2344
|
tmp_2 = false;
|
|
2345
2345
|
}
|
|
2346
2346
|
|
|
2347
2347
|
if (tmp_2) {
|
|
2348
|
-
tmp_1 = !this.
|
|
2348
|
+
tmp_1 = !this.z5x_1.m45_1.equals(Companion_getInstance().h3o_1);
|
|
2349
2349
|
} else {
|
|
2350
2350
|
tmp_1 = false;
|
|
2351
2351
|
}
|
|
@@ -2357,30 +2357,30 @@
|
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
2359
|
if (tmp_0) {
|
|
2360
|
-
var tmp0_safe_receiver = body.
|
|
2360
|
+
var tmp0_safe_receiver = body.p3t();
|
|
2361
2361
|
if (tmp0_safe_receiver == null)
|
|
2362
2362
|
null;
|
|
2363
2363
|
else {
|
|
2364
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2364
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().o3k_1, tmp0_safe_receiver.toString());
|
|
2365
2365
|
}
|
|
2366
|
-
var tmp1_safe_receiver = body.
|
|
2366
|
+
var tmp1_safe_receiver = body.r3t();
|
|
2367
2367
|
if (tmp1_safe_receiver == null)
|
|
2368
2368
|
null;
|
|
2369
2369
|
else {
|
|
2370
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2370
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().l3k_1, tmp1_safe_receiver.toString());
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
-
appendAll(this_0, this.
|
|
2375
|
-
var headers = this_0.
|
|
2376
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2374
|
+
appendAll(this_0, this.z5x_1.n45_1);
|
|
2375
|
+
var headers = this_0.v3j();
|
|
2376
|
+
var tmp0_safe_receiver_0 = headers.l3b(HttpHeaders_getInstance().l3k_1);
|
|
2377
2377
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2378
2378
|
var tmp_3;
|
|
2379
|
-
if (this.
|
|
2380
|
-
tmp_3 = '--> ' + this.
|
|
2379
|
+
if (this.z5x_1.m45_1.equals(Companion_getInstance().c3o_1) || this.z5x_1.m45_1.equals(Companion_getInstance().h3o_1) || ((invoke$isHeaders(this.x5x_1) || invoke$isBody(this.x5x_1)) && !(contentLength == null)) || (invoke$isHeaders(this.x5x_1) && contentLength == null) || headers.s3c(HttpHeaders_getInstance().j3k_1)) {
|
|
2380
|
+
tmp_3 = '--> ' + this.z5x_1.m45_1.k3o_1 + ' ' + uri;
|
|
2381
2381
|
} else {
|
|
2382
|
-
if (invoke$isInfo(this.
|
|
2383
|
-
tmp_3 = '--> ' + this.
|
|
2382
|
+
if (invoke$isInfo(this.x5x_1) && !(contentLength == null)) {
|
|
2383
|
+
tmp_3 = '--> ' + this.z5x_1.m45_1.k3o_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2384
2384
|
} else {
|
|
2385
2385
|
var tmp_4;
|
|
2386
2386
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2389,32 +2389,32 @@
|
|
|
2389
2389
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2390
2390
|
}
|
|
2391
2391
|
if (tmp_4) {
|
|
2392
|
-
tmp_3 = '--> ' + this.
|
|
2392
|
+
tmp_3 = '--> ' + this.z5x_1.m45_1.k3o_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2393
2393
|
} else {
|
|
2394
|
-
var size = computeRequestBodySize(this.
|
|
2395
|
-
tmp_3 = '--> ' + this.
|
|
2394
|
+
var size = computeRequestBodySize(this.z5x_1.o45_1);
|
|
2395
|
+
tmp_3 = '--> ' + this.z5x_1.m45_1.k3o_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2396
2396
|
}
|
|
2397
2397
|
}
|
|
2398
2398
|
}
|
|
2399
2399
|
|
|
2400
2400
|
var startLine = tmp_3;
|
|
2401
|
-
this.
|
|
2402
|
-
if (!invoke$isHeaders(this.
|
|
2401
|
+
this.a5y_1.e1(startLine);
|
|
2402
|
+
if (!invoke$isHeaders(this.x5x_1) && !invoke$isBody(this.x5x_1)) {
|
|
2403
2403
|
return null;
|
|
2404
2404
|
}
|
|
2405
2405
|
|
|
2406
|
-
var _iterator__ex2g4s = headers.
|
|
2406
|
+
var _iterator__ex2g4s = headers.u3c().t();
|
|
2407
2407
|
while (_iterator__ex2g4s.u()) {
|
|
2408
2408
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2409
2409
|
var name = _destruct__k2r9zo.n1();
|
|
2410
2410
|
var values = _destruct__k2r9zo.o1();
|
|
2411
|
-
var tmp0 = this.
|
|
2411
|
+
var tmp0 = this.w5x_1;
|
|
2412
2412
|
var tmp$ret$0 = Unit_instance;
|
|
2413
2413
|
l$ret$1: do {
|
|
2414
2414
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2415
2415
|
while (_iterator__ex2g4s_0.u()) {
|
|
2416
2416
|
var element = _iterator__ex2g4s_0.v();
|
|
2417
|
-
if (element.
|
|
2417
|
+
if (element.h5z_1(name)) {
|
|
2418
2418
|
tmp$ret$0 = element;
|
|
2419
2419
|
break l$ret$1;
|
|
2420
2420
|
}
|
|
@@ -2423,34 +2423,34 @@
|
|
|
2423
2423
|
}
|
|
2424
2424
|
while (false);
|
|
2425
2425
|
if (tmp$ret$0 == null) {
|
|
2426
|
-
this.
|
|
2426
|
+
this.a5y_1.e1(name + ': ' + joinToString(values, ', '));
|
|
2427
2427
|
} else {
|
|
2428
|
-
this.
|
|
2428
|
+
this.a5y_1.e1(name + ': \u2588\u2588');
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
2431
|
|
|
2432
|
-
if (!invoke$isBody(this.
|
|
2433
|
-
this.
|
|
2432
|
+
if (!invoke$isBody(this.x5x_1) || this.z5x_1.m45_1.equals(Companion_getInstance().c3o_1) || this.z5x_1.m45_1.equals(Companion_getInstance().h3o_1)) {
|
|
2433
|
+
this.a5y_1.e1('--> END ' + this.z5x_1.m45_1.k3o_1);
|
|
2434
2434
|
return null;
|
|
2435
2435
|
}
|
|
2436
2436
|
|
|
2437
|
-
this.
|
|
2437
|
+
this.a5y_1.e1('');
|
|
2438
2438
|
if (!(body instanceof OutgoingContent)) {
|
|
2439
|
-
this.
|
|
2439
|
+
this.a5y_1.e1('--> END ' + this.z5x_1.m45_1.k3o_1);
|
|
2440
2440
|
return null;
|
|
2441
2441
|
}
|
|
2442
2442
|
|
|
2443
|
-
if (this.
|
|
2443
|
+
if (this.z5x_1.n45_1.l3b(HttpHeaders_getInstance().j3k_1) === 'gzip') {
|
|
2444
2444
|
this.i9_1 = 2;
|
|
2445
|
-
var tmp_5 = this.
|
|
2446
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2445
|
+
var tmp_5 = this.z5x_1.m45_1;
|
|
2446
|
+
suspendResult = invoke$logOutgoingContent(this.y5x_1, body, tmp_5, headers, this.a5y_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2447
2447
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2448
2448
|
return suspendResult;
|
|
2449
2449
|
}
|
|
2450
2450
|
continue $sm;
|
|
2451
2451
|
} else {
|
|
2452
2452
|
this.i9_1 = 1;
|
|
2453
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2453
|
+
suspendResult = invoke$logOutgoingContent(this.y5x_1, body, this.z5x_1.m45_1, headers, this.a5y_1, VOID, this);
|
|
2454
2454
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2455
2455
|
return suspendResult;
|
|
2456
2456
|
}
|
|
@@ -2458,15 +2458,15 @@
|
|
|
2458
2458
|
}
|
|
2459
2459
|
|
|
2460
2460
|
case 1:
|
|
2461
|
-
this.
|
|
2461
|
+
this.b5y_1 = suspendResult;
|
|
2462
2462
|
this.i9_1 = 3;
|
|
2463
2463
|
continue $sm;
|
|
2464
2464
|
case 2:
|
|
2465
|
-
this.
|
|
2465
|
+
this.b5y_1 = suspendResult;
|
|
2466
2466
|
this.i9_1 = 3;
|
|
2467
2467
|
continue $sm;
|
|
2468
2468
|
case 3:
|
|
2469
|
-
var newContent = this.
|
|
2469
|
+
var newContent = this.b5y_1;
|
|
2470
2470
|
return newContent;
|
|
2471
2471
|
case 4:
|
|
2472
2472
|
throw this.l9_1;
|
|
@@ -2484,10 +2484,10 @@
|
|
|
2484
2484
|
};
|
|
2485
2485
|
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2486
2486
|
CoroutineImpl.call(this, resultContinuation);
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2487
|
+
this.k5y_1 = $this_createClientPlugin;
|
|
2488
|
+
this.l5y_1 = response;
|
|
2489
|
+
this.m5y_1 = body;
|
|
2490
|
+
this.n5y_1 = logLines;
|
|
2491
2491
|
}
|
|
2492
2492
|
protoOf($invoke$logResponseBodyCOROUTINE$).q9 = function () {
|
|
2493
2493
|
var suspendResult = this.k9_1;
|
|
@@ -2497,9 +2497,9 @@
|
|
|
2497
2497
|
switch (tmp) {
|
|
2498
2498
|
case 0:
|
|
2499
2499
|
this.j9_1 = 4;
|
|
2500
|
-
this.
|
|
2500
|
+
this.n5y_1.e1('');
|
|
2501
2501
|
this.i9_1 = 1;
|
|
2502
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2502
|
+
suspendResult = invoke$detectIfBinary(this.k5y_1, this.m5y_1, contentLength(this.l5y_1), contentType(this.l5y_1), this.l5y_1.b3o(), this);
|
|
2503
2503
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2504
2504
|
return suspendResult;
|
|
2505
2505
|
}
|
|
@@ -2508,25 +2508,25 @@
|
|
|
2508
2508
|
case 1:
|
|
2509
2509
|
var _destruct__k2r9zo = suspendResult;
|
|
2510
2510
|
var isBinary = _destruct__k2r9zo.of();
|
|
2511
|
-
this.
|
|
2512
|
-
var newBody = _destruct__k2r9zo.
|
|
2513
|
-
this.
|
|
2514
|
-
if (equals(this.
|
|
2515
|
-
this.
|
|
2511
|
+
this.p5y_1 = _destruct__k2r9zo.pf();
|
|
2512
|
+
var newBody = _destruct__k2r9zo.vn();
|
|
2513
|
+
this.q5y_1 = subtract(this.l5y_1.l47().d3e_1, this.l5y_1.k47().d3e_1);
|
|
2514
|
+
if (equals(this.p5y_1, new Long(0, 0))) {
|
|
2515
|
+
this.n5y_1.e1('<-- END HTTP (' + this.q5y_1.toString() + 'ms, ' + this.p5y_1.toString() + '-byte body)');
|
|
2516
2516
|
return Unit_instance;
|
|
2517
2517
|
}
|
|
2518
2518
|
|
|
2519
2519
|
if (!isBinary) {
|
|
2520
|
-
var contentType_0 = contentType(this.
|
|
2520
|
+
var contentType_0 = contentType(this.l5y_1);
|
|
2521
2521
|
var tmp_0 = this;
|
|
2522
2522
|
var tmp_1;
|
|
2523
2523
|
if (!(contentType_0 == null)) {
|
|
2524
2524
|
var tmp0_elvis_lhs = charset(contentType_0);
|
|
2525
|
-
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
2525
|
+
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().o37_1 : tmp0_elvis_lhs;
|
|
2526
2526
|
} else {
|
|
2527
|
-
tmp_1 = Charsets_getInstance().
|
|
2527
|
+
tmp_1 = Charsets_getInstance().o37_1;
|
|
2528
2528
|
}
|
|
2529
|
-
tmp_0.
|
|
2529
|
+
tmp_0.r5y_1 = tmp_1;
|
|
2530
2530
|
this.i9_1 = 2;
|
|
2531
2531
|
suspendResult = readRemaining(newBody, this);
|
|
2532
2532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2536,25 +2536,25 @@
|
|
|
2536
2536
|
} else {
|
|
2537
2537
|
var tmp_2 = this;
|
|
2538
2538
|
var type = 'binary';
|
|
2539
|
-
if (this.
|
|
2539
|
+
if (this.l5y_1.b3o().s3c(HttpHeaders_getInstance().j3k_1)) {
|
|
2540
2540
|
type = 'encoded';
|
|
2541
2541
|
}
|
|
2542
2542
|
var tmp_3;
|
|
2543
|
-
if (!(this.
|
|
2544
|
-
tmp_3 = this.
|
|
2543
|
+
if (!(this.p5y_1 == null)) {
|
|
2544
|
+
tmp_3 = this.n5y_1.e1('<-- END HTTP (' + this.q5y_1.toString() + 'ms, ' + type + ' ' + this.p5y_1.toString() + '-byte body omitted)');
|
|
2545
2545
|
} else {
|
|
2546
|
-
tmp_3 = this.
|
|
2546
|
+
tmp_3 = this.n5y_1.e1('<-- END HTTP (' + this.q5y_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2547
2547
|
}
|
|
2548
|
-
tmp_2.
|
|
2548
|
+
tmp_2.o5y_1 = tmp_3;
|
|
2549
2549
|
this.i9_1 = 3;
|
|
2550
2550
|
continue $sm;
|
|
2551
2551
|
}
|
|
2552
2552
|
|
|
2553
2553
|
case 2:
|
|
2554
2554
|
var ARGUMENT = suspendResult;
|
|
2555
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2556
|
-
this.
|
|
2557
|
-
this.
|
|
2555
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.r5y_1);
|
|
2556
|
+
this.n5y_1.e1(ARGUMENT_0);
|
|
2557
|
+
this.o5y_1 = this.n5y_1.e1('<-- END HTTP (' + this.q5y_1.toString() + 'ms, ' + toString_0(this.p5y_1) + '-byte body)');
|
|
2558
2558
|
this.i9_1 = 3;
|
|
2559
2559
|
continue $sm;
|
|
2560
2560
|
case 3:
|
|
@@ -2575,11 +2575,11 @@
|
|
|
2575
2575
|
};
|
|
2576
2576
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2577
2577
|
CoroutineImpl.call(this, resultContinuation);
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2582
|
-
this.
|
|
2578
|
+
this.a5z_1 = sanitizedHeaders;
|
|
2579
|
+
this.b5z_1 = level;
|
|
2580
|
+
this.c5z_1 = $this_createClientPlugin;
|
|
2581
|
+
this.d5z_1 = response;
|
|
2582
|
+
this.e5z_1 = logLines;
|
|
2583
2583
|
}
|
|
2584
2584
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).q9 = function () {
|
|
2585
2585
|
var suspendResult = this.k9_1;
|
|
@@ -2589,30 +2589,30 @@
|
|
|
2589
2589
|
switch (tmp) {
|
|
2590
2590
|
case 0:
|
|
2591
2591
|
this.j9_1 = 4;
|
|
2592
|
-
if (invoke$isNone(this.
|
|
2593
|
-
return this.
|
|
2594
|
-
var tmp0_safe_receiver = this.
|
|
2592
|
+
if (invoke$isNone(this.b5z_1))
|
|
2593
|
+
return this.d5z_1;
|
|
2594
|
+
var tmp0_safe_receiver = this.d5z_1.b3o().l3b(HttpHeaders_getInstance().l3k_1);
|
|
2595
2595
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2596
|
-
var request = get_request(this.
|
|
2597
|
-
var duration = subtract(this.
|
|
2598
|
-
var startLine = this.
|
|
2599
|
-
this.
|
|
2600
|
-
if (!invoke$isHeaders(this.
|
|
2601
|
-
return this.
|
|
2596
|
+
var request = get_request(this.d5z_1);
|
|
2597
|
+
var duration = subtract(this.d5z_1.l47().d3e_1, this.d5z_1.k47().d3e_1);
|
|
2598
|
+
var startLine = this.d5z_1.b3o().l3b(HttpHeaders_getInstance().s3m_1) === 'chunked' && (invoke$isInfo(this.b5z_1) || invoke$isHeaders(this.b5z_1)) ? '<-- ' + this.d5z_1.q3t().toString() + ' ' + pathQuery(request.c47()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.b5z_1) && !(contentLength == null) ? '<-- ' + this.d5z_1.q3t().toString() + ' ' + pathQuery(request.c47()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.b5z_1) || (invoke$isInfo(this.b5z_1) && contentLength == null) || (invoke$isHeaders(this.b5z_1) && !(contentLength == null)) || this.d5z_1.b3o().l3b(HttpHeaders_getInstance().j3k_1) === 'gzip' ? '<-- ' + this.d5z_1.q3t().toString() + ' ' + pathQuery(request.c47()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.d5z_1.q3t().toString() + ' ' + pathQuery(request.c47()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2599
|
+
this.e5z_1.e1(startLine);
|
|
2600
|
+
if (!invoke$isHeaders(this.b5z_1) && !invoke$isBody(this.b5z_1)) {
|
|
2601
|
+
return this.d5z_1;
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
|
-
var _iterator__ex2g4s = this.
|
|
2604
|
+
var _iterator__ex2g4s = this.d5z_1.b3o().u3c().t();
|
|
2605
2605
|
while (_iterator__ex2g4s.u()) {
|
|
2606
2606
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2607
2607
|
var name = _destruct__k2r9zo.n1();
|
|
2608
2608
|
var values = _destruct__k2r9zo.o1();
|
|
2609
|
-
var tmp0 = this.
|
|
2609
|
+
var tmp0 = this.a5z_1;
|
|
2610
2610
|
var tmp$ret$0 = Unit_instance;
|
|
2611
2611
|
l$ret$1: do {
|
|
2612
2612
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2613
2613
|
while (_iterator__ex2g4s_0.u()) {
|
|
2614
2614
|
var element = _iterator__ex2g4s_0.v();
|
|
2615
|
-
if (element.
|
|
2615
|
+
if (element.h5z_1(name)) {
|
|
2616
2616
|
tmp$ret$0 = element;
|
|
2617
2617
|
break l$ret$1;
|
|
2618
2618
|
}
|
|
@@ -2621,30 +2621,30 @@
|
|
|
2621
2621
|
}
|
|
2622
2622
|
while (false);
|
|
2623
2623
|
if (tmp$ret$0 == null) {
|
|
2624
|
-
this.
|
|
2624
|
+
this.e5z_1.e1(name + ': ' + joinToString(values, ', '));
|
|
2625
2625
|
} else {
|
|
2626
|
-
this.
|
|
2626
|
+
this.e5z_1.e1(name + ': \u2588\u2588');
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
2629
|
|
|
2630
|
-
if (!invoke$isBody(this.
|
|
2631
|
-
this.
|
|
2632
|
-
return this.
|
|
2630
|
+
if (!invoke$isBody(this.b5z_1)) {
|
|
2631
|
+
this.e5z_1.e1('<-- END HTTP');
|
|
2632
|
+
return this.d5z_1;
|
|
2633
2633
|
}
|
|
2634
2634
|
|
|
2635
2635
|
if (!(contentLength == null) && equals(contentLength, new Long(0, 0))) {
|
|
2636
|
-
this.
|
|
2637
|
-
return this.
|
|
2636
|
+
this.e5z_1.e1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2637
|
+
return this.d5z_1;
|
|
2638
2638
|
}
|
|
2639
2639
|
|
|
2640
|
-
if (equals(contentType(this.
|
|
2641
|
-
this.
|
|
2642
|
-
return this.
|
|
2640
|
+
if (equals(contentType(this.d5z_1), Text_getInstance().k3j_1)) {
|
|
2641
|
+
this.e5z_1.e1('<-- END HTTP (streaming)');
|
|
2642
|
+
return this.d5z_1;
|
|
2643
2643
|
}
|
|
2644
2644
|
|
|
2645
|
-
if (get_isSaved(this.
|
|
2645
|
+
if (get_isSaved(this.d5z_1)) {
|
|
2646
2646
|
this.i9_1 = 3;
|
|
2647
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.c5z_1, this.d5z_1, this.d5z_1.i47(), this.e5z_1, this);
|
|
2648
2648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2649
2649
|
return suspendResult;
|
|
2650
2650
|
}
|
|
@@ -2655,22 +2655,22 @@
|
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
2657
|
case 1:
|
|
2658
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2659
|
-
this.
|
|
2658
|
+
var _destruct__k2r9zo_0 = split(this.d5z_1.i47(), this.d5z_1);
|
|
2659
|
+
this.f5z_1 = _destruct__k2r9zo_0.of();
|
|
2660
2660
|
var newChannel = _destruct__k2r9zo_0.pf();
|
|
2661
2661
|
this.i9_1 = 2;
|
|
2662
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2662
|
+
suspendResult = invoke$logResponseBody(this.c5z_1, this.d5z_1, newChannel, this.e5z_1, this);
|
|
2663
2663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2664
2664
|
return suspendResult;
|
|
2665
2665
|
}
|
|
2666
2666
|
|
|
2667
2667
|
continue $sm;
|
|
2668
2668
|
case 2:
|
|
2669
|
-
var tmp_0 = this.
|
|
2670
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2671
|
-
return call.
|
|
2669
|
+
var tmp_0 = this.d5z_1.a47();
|
|
2670
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.f5z_1));
|
|
2671
|
+
return call.l44();
|
|
2672
2672
|
case 3:
|
|
2673
|
-
return this.
|
|
2673
|
+
return this.d5z_1;
|
|
2674
2674
|
case 4:
|
|
2675
2675
|
throw this.l9_1;
|
|
2676
2676
|
}
|
|
@@ -2764,7 +2764,7 @@
|
|
|
2764
2764
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2765
2765
|
while (_iterator__ex2g4s_0.u()) {
|
|
2766
2766
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2767
|
-
if (element_0.
|
|
2767
|
+
if (element_0.h5z_1(key)) {
|
|
2768
2768
|
tmp$ret$5 = element_0;
|
|
2769
2769
|
break $l$block;
|
|
2770
2770
|
}
|
|
@@ -2772,7 +2772,7 @@
|
|
|
2772
2772
|
tmp$ret$5 = null;
|
|
2773
2773
|
}
|
|
2774
2774
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2775
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2775
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g5z_1;
|
|
2776
2776
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
@@ -2784,26 +2784,26 @@
|
|
|
2784
2784
|
}
|
|
2785
2785
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2786
2786
|
// Inline function 'kotlin.with' call
|
|
2787
|
-
if (level.
|
|
2787
|
+
if (level.c5r_1) {
|
|
2788
2788
|
// Inline function 'kotlin.text.appendLine' call
|
|
2789
|
-
var value = 'RESPONSE: ' + response.
|
|
2789
|
+
var value = 'RESPONSE: ' + response.q3t().toString();
|
|
2790
2790
|
// Inline function 'kotlin.text.appendLine' call
|
|
2791
2791
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2792
2792
|
// Inline function 'kotlin.text.appendLine' call
|
|
2793
|
-
var value_0 = 'METHOD: ' + response.
|
|
2793
|
+
var value_0 = 'METHOD: ' + response.a47().t46().b47().toString();
|
|
2794
2794
|
// Inline function 'kotlin.text.appendLine' call
|
|
2795
2795
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2796
2796
|
// Inline function 'kotlin.text.appendLine' call
|
|
2797
|
-
var value_1 = 'FROM: ' + response.
|
|
2797
|
+
var value_1 = 'FROM: ' + response.a47().t46().c47().toString();
|
|
2798
2798
|
// Inline function 'kotlin.text.appendLine' call
|
|
2799
2799
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2800
2800
|
}
|
|
2801
|
-
if (level.
|
|
2801
|
+
if (level.d5r_1) {
|
|
2802
2802
|
// Inline function 'kotlin.text.appendLine' call
|
|
2803
2803
|
var value_2 = 'COMMON HEADERS';
|
|
2804
2804
|
// Inline function 'kotlin.text.appendLine' call
|
|
2805
2805
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2806
|
-
logHeaders(log, response.
|
|
2806
|
+
logHeaders(log, response.b3o().u3c(), sanitizedHeaders);
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2819,16 +2819,16 @@
|
|
|
2819
2819
|
return tmp.q9();
|
|
2820
2820
|
}
|
|
2821
2821
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2822
|
-
this.
|
|
2822
|
+
this.u63_1 = function_0;
|
|
2823
2823
|
}
|
|
2824
2824
|
protoOf(sam$kotlin_Comparator$0).hd = function (a, b) {
|
|
2825
|
-
return this.
|
|
2825
|
+
return this.u63_1(a, b);
|
|
2826
2826
|
};
|
|
2827
2827
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2828
2828
|
return this.hd(a, b);
|
|
2829
2829
|
};
|
|
2830
2830
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
2831
|
-
return this.
|
|
2831
|
+
return this.u63_1;
|
|
2832
2832
|
};
|
|
2833
2833
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2834
2834
|
var tmp;
|
|
@@ -2856,8 +2856,8 @@
|
|
|
2856
2856
|
}
|
|
2857
2857
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2858
2858
|
CoroutineImpl.call(this, resultContinuation);
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2859
|
+
this.d63_1 = _this__u8e3s4;
|
|
2860
|
+
this.e63_1 = response;
|
|
2861
2861
|
}
|
|
2862
2862
|
protoOf($logResponseBodyCOROUTINE$_0).q9 = function () {
|
|
2863
2863
|
var suspendResult = this.k9_1;
|
|
@@ -2867,14 +2867,14 @@
|
|
|
2867
2867
|
switch (tmp) {
|
|
2868
2868
|
case 0:
|
|
2869
2869
|
this.j9_1 = 8;
|
|
2870
|
-
this.
|
|
2870
|
+
this.f63_1 = StringBuilder_init_$Create$();
|
|
2871
2871
|
this.i9_1 = 1;
|
|
2872
2872
|
continue $sm;
|
|
2873
2873
|
case 1:
|
|
2874
2874
|
this.j9_1 = 4;
|
|
2875
2875
|
this.j9_1 = 3;
|
|
2876
2876
|
this.i9_1 = 2;
|
|
2877
|
-
suspendResult = appendResponseBody(this.
|
|
2877
|
+
suspendResult = appendResponseBody(this.f63_1, contentType(this.e63_1), this.e63_1.i47(), this);
|
|
2878
2878
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2879
2879
|
return suspendResult;
|
|
2880
2880
|
}
|
|
@@ -2898,22 +2898,22 @@
|
|
|
2898
2898
|
|
|
2899
2899
|
case 4:
|
|
2900
2900
|
this.j9_1 = 8;
|
|
2901
|
-
this.
|
|
2901
|
+
this.g63_1 = this.l9_1;
|
|
2902
2902
|
this.i9_1 = 5;
|
|
2903
|
-
var this_0 = this.
|
|
2904
|
-
suspendResult = this.
|
|
2903
|
+
var this_0 = this.f63_1.toString();
|
|
2904
|
+
suspendResult = this.d63_1.x5q(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2905
2905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2906
2906
|
return suspendResult;
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
2909
2909
|
continue $sm;
|
|
2910
2910
|
case 5:
|
|
2911
|
-
throw this.
|
|
2911
|
+
throw this.g63_1;
|
|
2912
2912
|
case 6:
|
|
2913
2913
|
this.j9_1 = 8;
|
|
2914
2914
|
this.i9_1 = 7;
|
|
2915
|
-
var this_1 = this.
|
|
2916
|
-
suspendResult = this.
|
|
2915
|
+
var this_1 = this.f63_1.toString();
|
|
2916
|
+
suspendResult = this.d63_1.x5q(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2917
2917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2918
2918
|
return suspendResult;
|
|
2919
2919
|
}
|
|
@@ -2937,9 +2937,9 @@
|
|
|
2937
2937
|
};
|
|
2938
2938
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2939
2939
|
CoroutineImpl.call(this, resultContinuation);
|
|
2940
|
-
this.
|
|
2941
|
-
this.
|
|
2942
|
-
this.
|
|
2940
|
+
this.p63_1 = _this__u8e3s4;
|
|
2941
|
+
this.q63_1 = contentType;
|
|
2942
|
+
this.r63_1 = content;
|
|
2943
2943
|
}
|
|
2944
2944
|
protoOf($appendResponseBodyCOROUTINE$).q9 = function () {
|
|
2945
2945
|
var suspendResult = this.k9_1;
|
|
@@ -2949,16 +2949,16 @@
|
|
|
2949
2949
|
switch (tmp) {
|
|
2950
2950
|
case 0:
|
|
2951
2951
|
this.j9_1 = 3;
|
|
2952
|
-
var tmp0 = this.
|
|
2953
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2952
|
+
var tmp0 = this.p63_1;
|
|
2953
|
+
var value = 'BODY Content-Type: ' + toString_0(this.q63_1);
|
|
2954
2954
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2955
|
-
var tmp0_0 = this.
|
|
2955
|
+
var tmp0_0 = this.p63_1;
|
|
2956
2956
|
var value_0 = 'BODY START';
|
|
2957
2957
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2958
|
-
var tmp0_1 = this.
|
|
2959
|
-
var tmp0_safe_receiver = this.
|
|
2958
|
+
var tmp0_1 = this.r63_1;
|
|
2959
|
+
var tmp0_safe_receiver = this.q63_1;
|
|
2960
2960
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2961
|
-
this.
|
|
2961
|
+
this.t63_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().o37_1 : tmp1_elvis_lhs;
|
|
2962
2962
|
this.j9_1 = 2;
|
|
2963
2963
|
this.i9_1 = 1;
|
|
2964
2964
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2969,7 +2969,7 @@
|
|
|
2969
2969
|
continue $sm;
|
|
2970
2970
|
case 1:
|
|
2971
2971
|
var ARGUMENT = suspendResult;
|
|
2972
|
-
this.
|
|
2972
|
+
this.s63_1 = readText(ARGUMENT, this.t63_1);
|
|
2973
2973
|
this.j9_1 = 3;
|
|
2974
2974
|
this.i9_1 = 4;
|
|
2975
2975
|
continue $sm;
|
|
@@ -2979,7 +2979,7 @@
|
|
|
2979
2979
|
if (tmp_0 instanceof Error) {
|
|
2980
2980
|
var cause = this.l9_1;
|
|
2981
2981
|
var tmp_1 = this;
|
|
2982
|
-
tmp_1.
|
|
2982
|
+
tmp_1.s63_1 = null;
|
|
2983
2983
|
this.i9_1 = 4;
|
|
2984
2984
|
continue $sm;
|
|
2985
2985
|
} else {
|
|
@@ -2990,10 +2990,10 @@
|
|
|
2990
2990
|
throw this.l9_1;
|
|
2991
2991
|
case 4:
|
|
2992
2992
|
this.j9_1 = 3;
|
|
2993
|
-
var tmp2_elvis_lhs = this.
|
|
2993
|
+
var tmp2_elvis_lhs = this.s63_1;
|
|
2994
2994
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2995
|
-
this.
|
|
2996
|
-
this.
|
|
2995
|
+
this.p63_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2996
|
+
this.p63_1.q('BODY END');
|
|
2997
2997
|
return Unit_instance;
|
|
2998
2998
|
}
|
|
2999
2999
|
} catch ($p) {
|
|
@@ -3015,21 +3015,21 @@
|
|
|
3015
3015
|
}
|
|
3016
3016
|
function toReadChannel(_this__u8e3s4) {
|
|
3017
3017
|
var tmp = GlobalScope_instance;
|
|
3018
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3019
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3018
|
+
var tmp_0 = Dispatchers_getInstance().k1z_1;
|
|
3019
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).n35_1;
|
|
3020
3020
|
}
|
|
3021
3021
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3022
|
-
this.
|
|
3022
|
+
this.p64_1 = $this_toReadChannel;
|
|
3023
3023
|
CoroutineImpl.call(this, resultContinuation);
|
|
3024
3024
|
}
|
|
3025
|
-
protoOf(toReadChannel$slambda).
|
|
3026
|
-
var tmp = this.
|
|
3025
|
+
protoOf(toReadChannel$slambda).u3y = function ($this$writer, $completion) {
|
|
3026
|
+
var tmp = this.v3y($this$writer, $completion);
|
|
3027
3027
|
tmp.k9_1 = Unit_instance;
|
|
3028
3028
|
tmp.l9_1 = null;
|
|
3029
3029
|
return tmp.q9();
|
|
3030
3030
|
};
|
|
3031
3031
|
protoOf(toReadChannel$slambda).ca = function (p1, $completion) {
|
|
3032
|
-
return this.
|
|
3032
|
+
return this.u3y(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3033
3033
|
};
|
|
3034
3034
|
protoOf(toReadChannel$slambda).q9 = function () {
|
|
3035
3035
|
var suspendResult = this.k9_1;
|
|
@@ -3040,7 +3040,7 @@
|
|
|
3040
3040
|
case 0:
|
|
3041
3041
|
this.j9_1 = 2;
|
|
3042
3042
|
this.i9_1 = 1;
|
|
3043
|
-
suspendResult = this.
|
|
3043
|
+
suspendResult = this.p64_1.x3t(this.q64_1.p35_1, this);
|
|
3044
3044
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3045
3045
|
return suspendResult;
|
|
3046
3046
|
}
|
|
@@ -3062,23 +3062,23 @@
|
|
|
3062
3062
|
}
|
|
3063
3063
|
while (true);
|
|
3064
3064
|
};
|
|
3065
|
-
protoOf(toReadChannel$slambda).
|
|
3066
|
-
var i = new toReadChannel$slambda(this.
|
|
3067
|
-
i.
|
|
3065
|
+
protoOf(toReadChannel$slambda).v3y = function ($this$writer, completion) {
|
|
3066
|
+
var i = new toReadChannel$slambda(this.p64_1, completion);
|
|
3067
|
+
i.q64_1 = $this$writer;
|
|
3068
3068
|
return i;
|
|
3069
3069
|
};
|
|
3070
3070
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3071
3071
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3072
3072
|
var l = function ($this$writer, $completion) {
|
|
3073
|
-
return i.
|
|
3073
|
+
return i.u3y($this$writer, $completion);
|
|
3074
3074
|
};
|
|
3075
3075
|
l.$arity = 1;
|
|
3076
3076
|
return l;
|
|
3077
3077
|
}
|
|
3078
3078
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3079
3079
|
CoroutineImpl.call(this, resultContinuation);
|
|
3080
|
-
this.
|
|
3081
|
-
this.
|
|
3080
|
+
this.d64_1 = _this__u8e3s4;
|
|
3081
|
+
this.e64_1 = log;
|
|
3082
3082
|
}
|
|
3083
3083
|
protoOf($observeCOROUTINE$).q9 = function () {
|
|
3084
3084
|
var suspendResult = this.k9_1;
|
|
@@ -3088,10 +3088,10 @@
|
|
|
3088
3088
|
switch (tmp) {
|
|
3089
3089
|
case 0:
|
|
3090
3090
|
this.j9_1 = 6;
|
|
3091
|
-
var tmp0_subject = this.
|
|
3091
|
+
var tmp0_subject = this.d64_1;
|
|
3092
3092
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3093
3093
|
this.i9_1 = 3;
|
|
3094
|
-
suspendResult = writeFully(this.
|
|
3094
|
+
suspendResult = writeFully(this.e64_1, this.d64_1.s3t(), VOID, VOID, this);
|
|
3095
3095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3096
3096
|
return suspendResult;
|
|
3097
3097
|
}
|
|
@@ -3100,25 +3100,25 @@
|
|
|
3100
3100
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3101
3101
|
var tmp_0 = this;
|
|
3102
3102
|
var responseChannel = new ByteChannel();
|
|
3103
|
-
var content = this.
|
|
3104
|
-
copyToBoth(content, this.
|
|
3105
|
-
tmp_0.
|
|
3103
|
+
var content = this.d64_1.v3t();
|
|
3104
|
+
copyToBoth(content, this.e64_1, responseChannel);
|
|
3105
|
+
tmp_0.f64_1 = new LoggedContent(this.d64_1, responseChannel);
|
|
3106
3106
|
this.i9_1 = 5;
|
|
3107
3107
|
continue $sm;
|
|
3108
3108
|
} else {
|
|
3109
3109
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3110
3110
|
var tmp_1 = this;
|
|
3111
3111
|
var responseChannel_0 = new ByteChannel();
|
|
3112
|
-
var content_0 = toReadChannel(this.
|
|
3113
|
-
copyToBoth(content_0, this.
|
|
3114
|
-
tmp_1.
|
|
3112
|
+
var content_0 = toReadChannel(this.d64_1);
|
|
3113
|
+
copyToBoth(content_0, this.e64_1, responseChannel_0);
|
|
3114
|
+
tmp_1.f64_1 = new LoggedContent(this.d64_1, responseChannel_0);
|
|
3115
3115
|
this.i9_1 = 5;
|
|
3116
3116
|
continue $sm;
|
|
3117
3117
|
} else {
|
|
3118
3118
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3119
|
-
this.
|
|
3119
|
+
this.g64_1 = this.d64_1;
|
|
3120
3120
|
this.i9_1 = 2;
|
|
3121
|
-
suspendResult = observe(this.
|
|
3121
|
+
suspendResult = observe(this.d64_1.b3u(), this.e64_1, this);
|
|
3122
3122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3123
3123
|
return suspendResult;
|
|
3124
3124
|
}
|
|
@@ -3132,7 +3132,7 @@
|
|
|
3132
3132
|
}
|
|
3133
3133
|
if (tmp_2) {
|
|
3134
3134
|
this.i9_1 = 1;
|
|
3135
|
-
suspendResult = this.
|
|
3135
|
+
suspendResult = this.e64_1.w2x(this);
|
|
3136
3136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3137
3137
|
return suspendResult;
|
|
3138
3138
|
}
|
|
@@ -3148,28 +3148,28 @@
|
|
|
3148
3148
|
|
|
3149
3149
|
break;
|
|
3150
3150
|
case 1:
|
|
3151
|
-
this.
|
|
3151
|
+
this.f64_1 = this.d64_1;
|
|
3152
3152
|
this.i9_1 = 5;
|
|
3153
3153
|
continue $sm;
|
|
3154
3154
|
case 2:
|
|
3155
3155
|
var ARGUMENT = suspendResult;
|
|
3156
|
-
this.
|
|
3156
|
+
this.f64_1 = this.g64_1.c3u(ARGUMENT);
|
|
3157
3157
|
this.i9_1 = 5;
|
|
3158
3158
|
continue $sm;
|
|
3159
3159
|
case 3:
|
|
3160
3160
|
this.i9_1 = 4;
|
|
3161
|
-
suspendResult = this.
|
|
3161
|
+
suspendResult = this.e64_1.w2x(this);
|
|
3162
3162
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3163
3163
|
return suspendResult;
|
|
3164
3164
|
}
|
|
3165
3165
|
|
|
3166
3166
|
continue $sm;
|
|
3167
3167
|
case 4:
|
|
3168
|
-
this.
|
|
3168
|
+
this.f64_1 = this.d64_1;
|
|
3169
3169
|
this.i9_1 = 5;
|
|
3170
3170
|
continue $sm;
|
|
3171
3171
|
case 5:
|
|
3172
|
-
return this.
|
|
3172
|
+
return this.f64_1;
|
|
3173
3173
|
case 6:
|
|
3174
3174
|
throw this.l9_1;
|
|
3175
3175
|
}
|