game_client_logic_deb 1.8.387 → 1.8.388
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 +53 -53
- package/Kosi-Kodein-kodein-di.js +516 -516
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1389 -1389
- package/Logic_Debertz-core.js +1106 -1097
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +11099 -10937
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +3403 -3390
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlinx-coroutines-core.js +1262 -1218
- package/kotlinx-coroutines-core.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1431 -1431
- package/ktor-ktor-client-logging.js +269 -269
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +595 -595
- package/ktor-ktor-io.js +1208 -1208
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +128 -128
- package/ktor-ktor-serialization.js +63 -63
- package/ktor-ktor-utils.js +477 -477
- package/ktor-ktor-websockets.js +40 -40
- package/package.json +1 -1
- package/random-library-secure-random.js +1 -1
- package/raspberry-cardgame-lib-core.js +164 -164
- package/raspberry-cardgame-lib-random.js +552 -552
- package/uuid.js +11 -11
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.kc;
|
|
42
42
|
var charSequenceLength = kotlin_kotlin.$_$.xb;
|
|
43
43
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
44
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
44
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
45
45
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
46
46
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.l2;
|
|
47
47
|
var initMetadataForClass = kotlin_kotlin.$_$.ic;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
62
62
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
63
63
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
64
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
64
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
65
65
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
66
66
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
67
67
|
var Plugin_getInstance = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
var isInterface = kotlin_kotlin.$_$.wc;
|
|
73
73
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
74
|
var initMetadataForLambda = kotlin_kotlin.$_$.mc;
|
|
75
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
75
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
76
76
|
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
77
77
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
78
78
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
//endregion
|
|
119
119
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.d4n_1 = _this__u8e3s4;
|
|
122
|
+
this.e4n_1 = message;
|
|
123
123
|
}
|
|
124
124
|
protoOf($logResponseExceptionCOROUTINE$).z8 = function () {
|
|
125
125
|
var suspendResult = this.t8_1;
|
|
@@ -130,15 +130,15 @@
|
|
|
130
130
|
case 0:
|
|
131
131
|
this.s8_1 = 2;
|
|
132
132
|
this.r8_1 = 1;
|
|
133
|
-
suspendResult = this.
|
|
133
|
+
suspendResult = this.d4n_1.i4n_1.j1q(this);
|
|
134
134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
135
135
|
return suspendResult;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
continue $sm;
|
|
139
139
|
case 1:
|
|
140
|
-
var this_0 = this.
|
|
141
|
-
this.
|
|
140
|
+
var this_0 = this.e4n_1;
|
|
141
|
+
this.d4n_1.f4n_1.m4n(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
144
|
throw this.u8_1;
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
};
|
|
157
157
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.v4n_1 = _this__u8e3s4;
|
|
160
|
+
this.w4n_1 = message;
|
|
161
161
|
}
|
|
162
162
|
protoOf($logResponseBodyCOROUTINE$).z8 = function () {
|
|
163
163
|
var suspendResult = this.t8_1;
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
case 0:
|
|
169
169
|
this.s8_1 = 2;
|
|
170
170
|
this.r8_1 = 1;
|
|
171
|
-
suspendResult = this.
|
|
171
|
+
suspendResult = this.v4n_1.j4n_1.j1q(this);
|
|
172
172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
173
|
return suspendResult;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
continue $sm;
|
|
177
177
|
case 1:
|
|
178
|
-
this.
|
|
178
|
+
this.v4n_1.h4n_1.c8(this.w4n_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
181
|
throw this.u8_1;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
};
|
|
194
194
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.f4o_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
198
|
protoOf($closeResponseLogCOROUTINE$).z8 = function () {
|
|
199
199
|
var suspendResult = this.t8_1;
|
|
@@ -203,19 +203,19 @@
|
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
205
|
this.s8_1 = 2;
|
|
206
|
-
if (!this.
|
|
206
|
+
if (!this.f4o_1.l4n_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
208
|
this.r8_1 = 1;
|
|
209
|
-
suspendResult = this.
|
|
209
|
+
suspendResult = this.f4o_1.i4n_1.j1q(this);
|
|
210
210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
211
|
return suspendResult;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
continue $sm;
|
|
215
215
|
case 1:
|
|
216
|
-
var message = toString(trim(this.
|
|
216
|
+
var message = toString(trim(this.f4o_1.h4n_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.f4o_1.f4n_1.m4n(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
@@ -234,57 +234,57 @@
|
|
|
234
234
|
while (true);
|
|
235
235
|
};
|
|
236
236
|
function HttpClientCallLogger(logger) {
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
237
|
+
this.f4n_1 = logger;
|
|
238
|
+
this.g4n_1 = StringBuilder_init_$Create$();
|
|
239
|
+
this.h4n_1 = StringBuilder_init_$Create$();
|
|
240
|
+
this.i4n_1 = Job();
|
|
241
|
+
this.j4n_1 = Job();
|
|
242
|
+
this.k4n_1 = atomic$boolean$1(false);
|
|
243
|
+
this.l4n_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
246
|
-
var tmp0 = this.
|
|
245
|
+
protoOf(HttpClientCallLogger).g4o = function (message) {
|
|
246
|
+
var tmp0 = this.g4n_1;
|
|
247
247
|
// Inline function 'kotlin.text.trim' call
|
|
248
248
|
// Inline function 'kotlin.text.appendLine' call
|
|
249
249
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
250
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
251
|
tmp0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
254
|
-
var tmp0 = this.
|
|
253
|
+
protoOf(HttpClientCallLogger).h4o = function (message) {
|
|
254
|
+
var tmp0 = this.h4n_1;
|
|
255
255
|
// Inline function 'kotlin.text.trim' call
|
|
256
256
|
// Inline function 'kotlin.text.appendLine' call
|
|
257
257
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
258
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
259
|
tmp0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
260
|
-
this.
|
|
260
|
+
this.j4n_1.k1x();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
262
|
+
protoOf(HttpClientCallLogger).i4o = function (message, $completion) {
|
|
263
263
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
264
264
|
tmp.t8_1 = Unit_instance;
|
|
265
265
|
tmp.u8_1 = null;
|
|
266
266
|
return tmp.z8();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
268
|
+
protoOf(HttpClientCallLogger).j4o = function (message, $completion) {
|
|
269
269
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
270
270
|
tmp.t8_1 = Unit_instance;
|
|
271
271
|
tmp.u8_1 = null;
|
|
272
272
|
return tmp.z8();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).k4o = function () {
|
|
275
|
+
if (!this.k4n_1.atomicfu$compareAndSet(false, true))
|
|
276
276
|
return Unit_instance;
|
|
277
277
|
try {
|
|
278
|
-
var message = toString(trim(this.
|
|
278
|
+
var message = toString(trim(this.g4n_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.f4n_1.m4n(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.i4n_1.k1x();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
+
protoOf(HttpClientCallLogger).l4o = function ($completion) {
|
|
288
288
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
289
289
|
tmp.t8_1 = Unit_instance;
|
|
290
290
|
tmp.u8_1 = null;
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
}
|
|
309
309
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
310
310
|
Enum.call(this, name, ordinal);
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
311
|
+
this.o4o_1 = info;
|
|
312
|
+
this.p4o_1 = headers;
|
|
313
|
+
this.q4o_1 = body;
|
|
314
314
|
}
|
|
315
315
|
function LogLevel_ALL_getInstance() {
|
|
316
316
|
LogLevel_initEntries();
|
|
@@ -326,27 +326,27 @@
|
|
|
326
326
|
}
|
|
327
327
|
function LoggedContent(originalContent, channel) {
|
|
328
328
|
ReadChannelContent.call(this);
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
329
|
+
this.s4o_1 = originalContent;
|
|
330
|
+
this.t4o_1 = channel;
|
|
331
|
+
this.u4o_1 = this.s4o_1.m3n();
|
|
332
|
+
this.v4o_1 = this.s4o_1.o3n();
|
|
333
|
+
this.w4o_1 = this.s4o_1.n3n();
|
|
334
|
+
this.x4o_1 = this.s4o_1.i3i();
|
|
335
335
|
}
|
|
336
|
-
protoOf(LoggedContent).k3n = function () {
|
|
337
|
-
return this.s4o_1;
|
|
338
|
-
};
|
|
339
336
|
protoOf(LoggedContent).m3n = function () {
|
|
340
|
-
return this.t4o_1;
|
|
341
|
-
};
|
|
342
|
-
protoOf(LoggedContent).l3n = function () {
|
|
343
337
|
return this.u4o_1;
|
|
344
338
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
339
|
+
protoOf(LoggedContent).o3n = function () {
|
|
346
340
|
return this.v4o_1;
|
|
347
341
|
};
|
|
348
|
-
protoOf(LoggedContent).
|
|
349
|
-
return this.
|
|
342
|
+
protoOf(LoggedContent).n3n = function () {
|
|
343
|
+
return this.w4o_1;
|
|
344
|
+
};
|
|
345
|
+
protoOf(LoggedContent).i3i = function () {
|
|
346
|
+
return this.x4o_1;
|
|
347
|
+
};
|
|
348
|
+
protoOf(LoggedContent).s3n = function () {
|
|
349
|
+
return this.t4o_1;
|
|
350
350
|
};
|
|
351
351
|
function Companion() {
|
|
352
352
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
}
|
|
360
360
|
function SimpleLogger() {
|
|
361
361
|
}
|
|
362
|
-
protoOf(SimpleLogger).
|
|
362
|
+
protoOf(SimpleLogger).m4n = function (message) {
|
|
363
363
|
println('HttpClient: ' + message);
|
|
364
364
|
};
|
|
365
365
|
function get_ClientCallLogger() {
|
|
@@ -375,60 +375,60 @@
|
|
|
375
375
|
function Config() {
|
|
376
376
|
var tmp = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp.
|
|
378
|
+
tmp.y4o_1 = ArrayList_init_$Create$();
|
|
379
379
|
var tmp_0 = this;
|
|
380
380
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
381
|
-
tmp_0.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
381
|
+
tmp_0.z4o_1 = ArrayList_init_$Create$();
|
|
382
|
+
this.a4p_1 = null;
|
|
383
|
+
this.b4p_1 = LogLevel_HEADERS_getInstance();
|
|
384
384
|
}
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(Config).c4p = function (value) {
|
|
386
|
+
this.a4p_1 = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Config).
|
|
389
|
-
var tmp0_elvis_lhs = this.
|
|
388
|
+
protoOf(Config).d4p = function () {
|
|
389
|
+
var tmp0_elvis_lhs = this.a4p_1;
|
|
390
390
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
391
391
|
};
|
|
392
392
|
function setupRequestLogging($this, client) {
|
|
393
|
-
var tmp = Phases_getInstance().
|
|
394
|
-
client.
|
|
393
|
+
var tmp = Phases_getInstance().z3r_1;
|
|
394
|
+
client.k3p_1.o3b(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
395
395
|
}
|
|
396
396
|
function logRequest($this, request, $completion) {
|
|
397
|
-
var tmp = request.
|
|
397
|
+
var tmp = request.k3r_1;
|
|
398
398
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
399
|
-
var logger = new HttpClientCallLogger($this.
|
|
400
|
-
request.
|
|
399
|
+
var logger = new HttpClientCallLogger($this.e4p_1);
|
|
400
|
+
request.m3r_1.m34(get_ClientCallLogger(), logger);
|
|
401
401
|
// Inline function 'kotlin.text.buildString' call
|
|
402
402
|
// Inline function 'kotlin.apply' call
|
|
403
403
|
var this_0 = StringBuilder_init_$Create$();
|
|
404
|
-
if ($this.
|
|
404
|
+
if ($this.f4p_1.o4o_1) {
|
|
405
405
|
// Inline function 'kotlin.text.appendLine' call
|
|
406
|
-
var value = 'REQUEST: ' + Url(request.
|
|
406
|
+
var value = 'REQUEST: ' + Url(request.h3r_1).toString();
|
|
407
407
|
// Inline function 'kotlin.text.appendLine' call
|
|
408
408
|
this_0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
409
409
|
// Inline function 'kotlin.text.appendLine' call
|
|
410
|
-
var value_0 = 'METHOD: ' + request.
|
|
410
|
+
var value_0 = 'METHOD: ' + request.i3r_1.toString();
|
|
411
411
|
// Inline function 'kotlin.text.appendLine' call
|
|
412
412
|
this_0.c8(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
413
413
|
}
|
|
414
|
-
if ($this.
|
|
414
|
+
if ($this.f4p_1.p4o_1) {
|
|
415
415
|
// Inline function 'kotlin.text.appendLine' call
|
|
416
416
|
var value_1 = 'COMMON HEADERS';
|
|
417
417
|
// Inline function 'kotlin.text.appendLine' call
|
|
418
418
|
this_0.c8(value_1).d8(_Char___init__impl__6a9atx(10));
|
|
419
|
-
logHeaders(this_0, request.
|
|
419
|
+
logHeaders(this_0, request.j3r_1.f38(), $this.h4p_1);
|
|
420
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
421
|
var value_2 = 'CONTENT HEADERS';
|
|
422
422
|
// Inline function 'kotlin.text.appendLine' call
|
|
423
423
|
this_0.c8(value_2).d8(_Char___init__impl__6a9atx(10));
|
|
424
|
-
var tmp0 = $this.
|
|
424
|
+
var tmp0 = $this.h4p_1;
|
|
425
425
|
var tmp$ret$9;
|
|
426
426
|
$l$block: {
|
|
427
427
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
428
428
|
var _iterator__ex2g4s = tmp0.l();
|
|
429
429
|
while (_iterator__ex2g4s.m()) {
|
|
430
430
|
var element = _iterator__ex2g4s.n();
|
|
431
|
-
if (element.
|
|
431
|
+
if (element.j4p_1(HttpHeaders_getInstance().u3e_1)) {
|
|
432
432
|
tmp$ret$9 = element;
|
|
433
433
|
break $l$block;
|
|
434
434
|
}
|
|
@@ -436,15 +436,15 @@
|
|
|
436
436
|
tmp$ret$9 = null;
|
|
437
437
|
}
|
|
438
438
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
439
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
440
|
-
var tmp0_0 = $this.
|
|
439
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i4p_1;
|
|
440
|
+
var tmp0_0 = $this.h4p_1;
|
|
441
441
|
var tmp$ret$11;
|
|
442
442
|
$l$block_0: {
|
|
443
443
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
444
444
|
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
445
445
|
while (_iterator__ex2g4s_0.m()) {
|
|
446
446
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
447
|
-
if (element_0.
|
|
447
|
+
if (element_0.j4p_1(HttpHeaders_getInstance().x3e_1)) {
|
|
448
448
|
tmp$ret$11 = element_0;
|
|
449
449
|
break $l$block_0;
|
|
450
450
|
}
|
|
@@ -452,39 +452,39 @@
|
|
|
452
452
|
tmp$ret$11 = null;
|
|
453
453
|
}
|
|
454
454
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
455
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
456
|
-
var tmp2_safe_receiver = content.
|
|
455
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.i4p_1;
|
|
456
|
+
var tmp2_safe_receiver = content.o3n();
|
|
457
457
|
if (tmp2_safe_receiver == null)
|
|
458
458
|
null;
|
|
459
459
|
else {
|
|
460
460
|
// Inline function 'kotlin.let' call
|
|
461
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
461
|
+
var tmp_0 = HttpHeaders_getInstance().u3e_1;
|
|
462
462
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
463
463
|
}
|
|
464
|
-
var tmp3_safe_receiver = content.
|
|
464
|
+
var tmp3_safe_receiver = content.m3n();
|
|
465
465
|
if (tmp3_safe_receiver == null)
|
|
466
466
|
null;
|
|
467
467
|
else {
|
|
468
468
|
// Inline function 'kotlin.let' call
|
|
469
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
469
|
+
var tmp_1 = HttpHeaders_getInstance().x3e_1;
|
|
470
470
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
471
471
|
}
|
|
472
|
-
logHeaders(this_0, content.
|
|
472
|
+
logHeaders(this_0, content.i3i().f38(), $this.h4p_1);
|
|
473
473
|
}
|
|
474
474
|
var message = this_0.toString();
|
|
475
475
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
476
476
|
if (charSequenceLength(message) > 0) {
|
|
477
|
-
logger.
|
|
477
|
+
logger.g4o(message);
|
|
478
478
|
}
|
|
479
479
|
var tmp_2;
|
|
480
480
|
// Inline function 'kotlin.text.isEmpty' call
|
|
481
481
|
if (charSequenceLength(message) === 0) {
|
|
482
482
|
tmp_2 = true;
|
|
483
483
|
} else {
|
|
484
|
-
tmp_2 = !$this.
|
|
484
|
+
tmp_2 = !$this.f4p_1.q4o_1;
|
|
485
485
|
}
|
|
486
486
|
if (tmp_2) {
|
|
487
|
-
logger.
|
|
487
|
+
logger.k4o();
|
|
488
488
|
return null;
|
|
489
489
|
}
|
|
490
490
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -492,12 +492,12 @@
|
|
|
492
492
|
function logRequestBody($this, content, logger, $completion) {
|
|
493
493
|
var requestLog = StringBuilder_init_$Create$();
|
|
494
494
|
// Inline function 'kotlin.text.appendLine' call
|
|
495
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
495
|
+
var value = 'BODY Content-Type: ' + toString_0(content.m3n());
|
|
496
496
|
// Inline function 'kotlin.text.appendLine' call
|
|
497
497
|
requestLog.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
498
|
-
var tmp0_safe_receiver = content.
|
|
498
|
+
var tmp0_safe_receiver = content.m3n();
|
|
499
499
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
500
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
500
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().r30_1 : tmp1_elvis_lhs;
|
|
501
501
|
var channel = ByteChannel();
|
|
502
502
|
var tmp = GlobalScope_instance;
|
|
503
503
|
var tmp_0 = Dispatchers_getInstance().a21_1;
|
|
@@ -506,48 +506,48 @@
|
|
|
506
506
|
return observe(content, channel, $completion);
|
|
507
507
|
}
|
|
508
508
|
function logRequestException($this, context, cause) {
|
|
509
|
-
if ($this.
|
|
510
|
-
$this.
|
|
509
|
+
if ($this.f4p_1.o4o_1) {
|
|
510
|
+
$this.e4p_1.m4n('REQUEST ' + Url(context.h3r_1).toString() + ' failed with exception: ' + cause.toString());
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
function setupResponseLogging($this, client) {
|
|
514
|
-
var tmp = Phases_getInstance_0().
|
|
515
|
-
client.
|
|
516
|
-
var tmp_0 = Phases_getInstance_1().
|
|
517
|
-
client.
|
|
518
|
-
if (!$this.
|
|
514
|
+
var tmp = Phases_getInstance_0().a3y_1;
|
|
515
|
+
client.l3p_1.o3b(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
516
|
+
var tmp_0 = Phases_getInstance_1().f3s_1;
|
|
517
|
+
client.j3p_1.o3b(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
518
|
+
if (!$this.f4p_1.q4o_1)
|
|
519
519
|
return Unit_instance;
|
|
520
520
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
521
|
-
Plugin_getInstance().
|
|
521
|
+
Plugin_getInstance().p4d(new ResponseObserver(observer), client);
|
|
522
522
|
}
|
|
523
523
|
function logResponseException($this, log, request, cause) {
|
|
524
|
-
if (!$this.
|
|
524
|
+
if (!$this.f4p_1.o4o_1)
|
|
525
525
|
return Unit_instance;
|
|
526
|
-
log.c8('RESPONSE ' + request.
|
|
526
|
+
log.c8('RESPONSE ' + request.q3t().toString() + ' failed with exception: ' + cause.toString());
|
|
527
527
|
}
|
|
528
528
|
function Companion_0() {
|
|
529
529
|
Companion_instance_0 = this;
|
|
530
|
-
this.
|
|
530
|
+
this.k4p_1 = new AttributeKey('ClientLogging');
|
|
531
531
|
}
|
|
532
532
|
protoOf(Companion_0).v = function () {
|
|
533
|
-
return this.
|
|
533
|
+
return this.k4p_1;
|
|
534
534
|
};
|
|
535
|
-
protoOf(Companion_0).
|
|
535
|
+
protoOf(Companion_0).l4p = function (block) {
|
|
536
536
|
// Inline function 'kotlin.apply' call
|
|
537
537
|
var this_0 = new Config();
|
|
538
538
|
block(this_0);
|
|
539
539
|
var config = this_0;
|
|
540
|
-
return new Logging(config.
|
|
540
|
+
return new Logging(config.d4p(), config.b4p_1, config.y4o_1, config.z4o_1);
|
|
541
541
|
};
|
|
542
|
-
protoOf(Companion_0).
|
|
543
|
-
return this.
|
|
542
|
+
protoOf(Companion_0).m3s = function (block) {
|
|
543
|
+
return this.l4p(block);
|
|
544
544
|
};
|
|
545
|
-
protoOf(Companion_0).
|
|
545
|
+
protoOf(Companion_0).m4p = function (plugin, scope) {
|
|
546
546
|
setupRequestLogging(plugin, scope);
|
|
547
547
|
setupResponseLogging(plugin, scope);
|
|
548
548
|
};
|
|
549
|
-
protoOf(Companion_0).
|
|
550
|
-
return this.
|
|
549
|
+
protoOf(Companion_0).n3s = function (plugin, scope) {
|
|
550
|
+
return this.m4p(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
551
551
|
};
|
|
552
552
|
var Companion_instance_0;
|
|
553
553
|
function Companion_getInstance_0() {
|
|
@@ -557,10 +557,10 @@
|
|
|
557
557
|
}
|
|
558
558
|
function shouldBeLogged($this, request) {
|
|
559
559
|
var tmp;
|
|
560
|
-
if ($this.
|
|
560
|
+
if ($this.g4p_1.r()) {
|
|
561
561
|
tmp = true;
|
|
562
562
|
} else {
|
|
563
|
-
var tmp0 = $this.
|
|
563
|
+
var tmp0 = $this.g4p_1;
|
|
564
564
|
var tmp$ret$0;
|
|
565
565
|
$l$block_0: {
|
|
566
566
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -589,18 +589,18 @@
|
|
|
589
589
|
return tmp;
|
|
590
590
|
}
|
|
591
591
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
592
|
-
this.
|
|
592
|
+
this.v4p_1 = this$0;
|
|
593
593
|
CoroutineImpl.call(this, resultContinuation);
|
|
594
594
|
}
|
|
595
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
596
|
-
var tmp = this.
|
|
595
|
+
protoOf(Logging$setupRequestLogging$slambda).b3q = function ($this$intercept, it, $completion) {
|
|
596
|
+
var tmp = this.c3q($this$intercept, it, $completion);
|
|
597
597
|
tmp.t8_1 = Unit_instance;
|
|
598
598
|
tmp.u8_1 = null;
|
|
599
599
|
return tmp.z8();
|
|
600
600
|
};
|
|
601
601
|
protoOf(Logging$setupRequestLogging$slambda).i9 = function (p1, p2, $completion) {
|
|
602
602
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
603
|
-
return this.
|
|
603
|
+
return this.b3q(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
604
604
|
};
|
|
605
605
|
protoOf(Logging$setupRequestLogging$slambda).z8 = function () {
|
|
606
606
|
var suspendResult = this.t8_1;
|
|
@@ -610,21 +610,21 @@
|
|
|
610
610
|
switch (tmp) {
|
|
611
611
|
case 0:
|
|
612
612
|
this.s8_1 = 8;
|
|
613
|
-
if (!shouldBeLogged(this.
|
|
614
|
-
this.
|
|
613
|
+
if (!shouldBeLogged(this.v4p_1, this.w4p_1.k3b_1)) {
|
|
614
|
+
this.w4p_1.k3b_1.m3r_1.m34(get_DisableLogging(), Unit_instance);
|
|
615
615
|
return Unit_instance;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
this.s8_1 = 2;
|
|
619
619
|
this.r8_1 = 1;
|
|
620
|
-
suspendResult = logRequest(this.
|
|
620
|
+
suspendResult = logRequest(this.v4p_1, this.w4p_1.k3b_1, this);
|
|
621
621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
622
|
return suspendResult;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 1:
|
|
627
|
-
this.
|
|
627
|
+
this.z4p_1 = suspendResult;
|
|
628
628
|
this.s8_1 = 8;
|
|
629
629
|
this.r8_1 = 3;
|
|
630
630
|
continue $sm;
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
if (tmp_0 instanceof Error) {
|
|
635
635
|
var _ = this.u8_1;
|
|
636
636
|
var tmp_1 = this;
|
|
637
|
-
tmp_1.
|
|
637
|
+
tmp_1.z4p_1 = null;
|
|
638
638
|
this.r8_1 = 3;
|
|
639
639
|
continue $sm;
|
|
640
640
|
} else {
|
|
@@ -643,15 +643,15 @@
|
|
|
643
643
|
|
|
644
644
|
case 3:
|
|
645
645
|
this.s8_1 = 8;
|
|
646
|
-
this.
|
|
646
|
+
this.y4p_1 = this.z4p_1;
|
|
647
647
|
this.r8_1 = 4;
|
|
648
648
|
continue $sm;
|
|
649
649
|
case 4:
|
|
650
650
|
this.s8_1 = 7;
|
|
651
651
|
this.s8_1 = 6;
|
|
652
652
|
this.r8_1 = 5;
|
|
653
|
-
var tmp0_elvis_lhs = this.
|
|
654
|
-
suspendResult = this.
|
|
653
|
+
var tmp0_elvis_lhs = this.y4p_1;
|
|
654
|
+
suspendResult = this.w4p_1.o3a(tmp0_elvis_lhs == null ? this.w4p_1.n3a() : tmp0_elvis_lhs, this);
|
|
655
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
656
656
|
return suspendResult;
|
|
657
657
|
}
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
var tmp_2 = this.u8_1;
|
|
667
667
|
if (tmp_2 instanceof Error) {
|
|
668
668
|
var cause = this.u8_1;
|
|
669
|
-
logRequestException(this.
|
|
669
|
+
logRequestException(this.v4p_1, this.w4p_1.k3b_1, cause);
|
|
670
670
|
throw cause;
|
|
671
671
|
} else {
|
|
672
672
|
throw this.u8_1;
|
|
@@ -693,34 +693,34 @@
|
|
|
693
693
|
}
|
|
694
694
|
while (true);
|
|
695
695
|
};
|
|
696
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
697
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
698
|
-
i.
|
|
699
|
-
i.
|
|
696
|
+
protoOf(Logging$setupRequestLogging$slambda).c3q = function ($this$intercept, it, completion) {
|
|
697
|
+
var i = new Logging$setupRequestLogging$slambda(this.v4p_1, completion);
|
|
698
|
+
i.w4p_1 = $this$intercept;
|
|
699
|
+
i.x4p_1 = it;
|
|
700
700
|
return i;
|
|
701
701
|
};
|
|
702
702
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
703
703
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
704
704
|
var l = function ($this$intercept, it, $completion) {
|
|
705
|
-
return i.
|
|
705
|
+
return i.b3q($this$intercept, it, $completion);
|
|
706
706
|
};
|
|
707
707
|
l.$arity = 2;
|
|
708
708
|
return l;
|
|
709
709
|
}
|
|
710
710
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
711
|
-
this.
|
|
712
|
-
this.
|
|
713
|
-
this.
|
|
711
|
+
this.i4q_1 = $channel;
|
|
712
|
+
this.j4q_1 = $charset;
|
|
713
|
+
this.k4q_1 = $requestLog;
|
|
714
714
|
CoroutineImpl.call(this, resultContinuation);
|
|
715
715
|
}
|
|
716
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
717
|
-
var tmp = this.
|
|
716
|
+
protoOf(Logging$logRequestBody$slambda).j2d = function ($this$launch, $completion) {
|
|
717
|
+
var tmp = this.k2d($this$launch, $completion);
|
|
718
718
|
tmp.t8_1 = Unit_instance;
|
|
719
719
|
tmp.u8_1 = null;
|
|
720
720
|
return tmp.z8();
|
|
721
721
|
};
|
|
722
722
|
protoOf(Logging$logRequestBody$slambda).h9 = function (p1, $completion) {
|
|
723
|
-
return this.
|
|
723
|
+
return this.j2d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
724
724
|
};
|
|
725
725
|
protoOf(Logging$logRequestBody$slambda).z8 = function () {
|
|
726
726
|
var suspendResult = this.t8_1;
|
|
@@ -730,11 +730,11 @@
|
|
|
730
730
|
switch (tmp) {
|
|
731
731
|
case 0:
|
|
732
732
|
this.s8_1 = 3;
|
|
733
|
-
var tmp0 = this.
|
|
734
|
-
this.
|
|
733
|
+
var tmp0 = this.i4q_1;
|
|
734
|
+
this.n4q_1 = this.j4q_1;
|
|
735
735
|
this.s8_1 = 2;
|
|
736
736
|
this.r8_1 = 1;
|
|
737
|
-
suspendResult = tmp0.
|
|
737
|
+
suspendResult = tmp0.f2w(VOID, this);
|
|
738
738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
739
739
|
return suspendResult;
|
|
740
740
|
}
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
continue $sm;
|
|
743
743
|
case 1:
|
|
744
744
|
var ARGUMENT = suspendResult;
|
|
745
|
-
this.
|
|
745
|
+
this.m4q_1 = readText(ARGUMENT, this.n4q_1);
|
|
746
746
|
this.s8_1 = 3;
|
|
747
747
|
this.r8_1 = 4;
|
|
748
748
|
continue $sm;
|
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
if (tmp_0 instanceof Error) {
|
|
753
753
|
var cause = this.u8_1;
|
|
754
754
|
var tmp_1 = this;
|
|
755
|
-
tmp_1.
|
|
755
|
+
tmp_1.m4q_1 = null;
|
|
756
756
|
this.r8_1 = 4;
|
|
757
757
|
continue $sm;
|
|
758
758
|
} else {
|
|
@@ -763,13 +763,13 @@
|
|
|
763
763
|
throw this.u8_1;
|
|
764
764
|
case 4:
|
|
765
765
|
this.s8_1 = 3;
|
|
766
|
-
var tmp0_elvis_lhs = this.
|
|
766
|
+
var tmp0_elvis_lhs = this.m4q_1;
|
|
767
767
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
768
|
-
var tmp0_0 = this.
|
|
768
|
+
var tmp0_0 = this.k4q_1;
|
|
769
769
|
var value = 'BODY START';
|
|
770
770
|
tmp0_0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
771
|
+
this.k4q_1.c8(text).d8(_Char___init__impl__6a9atx(10));
|
|
772
|
+
this.k4q_1.c8('BODY END');
|
|
773
773
|
return Unit_instance;
|
|
774
774
|
}
|
|
775
775
|
} catch ($p) {
|
|
@@ -783,39 +783,39 @@
|
|
|
783
783
|
}
|
|
784
784
|
while (true);
|
|
785
785
|
};
|
|
786
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
787
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
788
|
-
i.
|
|
786
|
+
protoOf(Logging$logRequestBody$slambda).k2d = function ($this$launch, completion) {
|
|
787
|
+
var i = new Logging$logRequestBody$slambda(this.i4q_1, this.j4q_1, this.k4q_1, completion);
|
|
788
|
+
i.l4q_1 = $this$launch;
|
|
789
789
|
return i;
|
|
790
790
|
};
|
|
791
791
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
792
792
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
793
793
|
var l = function ($this$launch, $completion) {
|
|
794
|
-
return i.
|
|
794
|
+
return i.j2d($this$launch, $completion);
|
|
795
795
|
};
|
|
796
796
|
l.$arity = 1;
|
|
797
797
|
return l;
|
|
798
798
|
}
|
|
799
799
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
800
800
|
return function (it) {
|
|
801
|
-
$logger.
|
|
802
|
-
$logger.
|
|
801
|
+
$logger.g4o($requestLog.toString());
|
|
802
|
+
$logger.k4o();
|
|
803
803
|
return Unit_instance;
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
806
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
807
|
-
this.
|
|
807
|
+
this.w4q_1 = this$0;
|
|
808
808
|
CoroutineImpl.call(this, resultContinuation);
|
|
809
809
|
}
|
|
810
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
811
|
-
var tmp = this.
|
|
810
|
+
protoOf(Logging$setupResponseLogging$slambda).z3y = function ($this$intercept, response, $completion) {
|
|
811
|
+
var tmp = this.a3z($this$intercept, response, $completion);
|
|
812
812
|
tmp.t8_1 = Unit_instance;
|
|
813
813
|
tmp.u8_1 = null;
|
|
814
814
|
return tmp.z8();
|
|
815
815
|
};
|
|
816
816
|
protoOf(Logging$setupResponseLogging$slambda).i9 = function (p1, p2, $completion) {
|
|
817
817
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
818
|
-
return this.
|
|
818
|
+
return this.z3y(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
819
819
|
};
|
|
820
820
|
protoOf(Logging$setupResponseLogging$slambda).z8 = function () {
|
|
821
821
|
var suspendResult = this.t8_1;
|
|
@@ -825,19 +825,19 @@
|
|
|
825
825
|
switch (tmp) {
|
|
826
826
|
case 0:
|
|
827
827
|
this.s8_1 = 10;
|
|
828
|
-
if (this.
|
|
828
|
+
if (this.w4q_1.f4p_1.equals(LogLevel_NONE_getInstance()) || this.y4q_1.l3u().w3s().l34(get_DisableLogging()))
|
|
829
829
|
return Unit_instance;
|
|
830
|
-
this.
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
830
|
+
this.z4q_1 = this.y4q_1.l3u().w3s().j34(get_ClientCallLogger());
|
|
831
|
+
this.b4r_1 = StringBuilder_init_$Create$();
|
|
832
|
+
this.a4r_1 = false;
|
|
833
833
|
this.r8_1 = 1;
|
|
834
834
|
continue $sm;
|
|
835
835
|
case 1:
|
|
836
836
|
this.s8_1 = 4;
|
|
837
837
|
this.s8_1 = 3;
|
|
838
|
-
logResponseHeader(this.
|
|
838
|
+
logResponseHeader(this.b4r_1, this.y4q_1.l3u().i3q(), this.w4q_1.f4p_1, this.w4q_1.h4p_1);
|
|
839
839
|
this.r8_1 = 2;
|
|
840
|
-
suspendResult = this.
|
|
840
|
+
suspendResult = this.x4q_1.o3a(this.x4q_1.n3a(), this);
|
|
841
841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
842
842
|
return suspendResult;
|
|
843
843
|
}
|
|
@@ -852,8 +852,8 @@
|
|
|
852
852
|
var tmp_0 = this.u8_1;
|
|
853
853
|
if (tmp_0 instanceof Error) {
|
|
854
854
|
var cause = this.u8_1;
|
|
855
|
-
logResponseException(this.
|
|
856
|
-
this.
|
|
855
|
+
logResponseException(this.w4q_1, this.b4r_1, this.y4q_1.l3u().o3t(), cause);
|
|
856
|
+
this.a4r_1 = true;
|
|
857
857
|
throw cause;
|
|
858
858
|
} else {
|
|
859
859
|
throw this.u8_1;
|
|
@@ -861,11 +861,11 @@
|
|
|
861
861
|
|
|
862
862
|
case 4:
|
|
863
863
|
this.s8_1 = 10;
|
|
864
|
-
this.
|
|
865
|
-
this.
|
|
866
|
-
if (this.
|
|
864
|
+
this.c4r_1 = this.u8_1;
|
|
865
|
+
this.z4q_1.h4o(this.b4r_1.toString());
|
|
866
|
+
if (this.a4r_1 || !this.w4q_1.f4p_1.q4o_1) {
|
|
867
867
|
this.r8_1 = 5;
|
|
868
|
-
suspendResult = this.
|
|
868
|
+
suspendResult = this.z4q_1.l4o(this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
@@ -879,13 +879,13 @@
|
|
|
879
879
|
this.r8_1 = 6;
|
|
880
880
|
continue $sm;
|
|
881
881
|
case 6:
|
|
882
|
-
throw this.
|
|
882
|
+
throw this.c4r_1;
|
|
883
883
|
case 7:
|
|
884
884
|
this.s8_1 = 10;
|
|
885
|
-
this.
|
|
886
|
-
if (this.
|
|
885
|
+
this.z4q_1.h4o(this.b4r_1.toString());
|
|
886
|
+
if (this.a4r_1 || !this.w4q_1.f4p_1.q4o_1) {
|
|
887
887
|
this.r8_1 = 8;
|
|
888
|
-
suspendResult = this.
|
|
888
|
+
suspendResult = this.z4q_1.l4o(this);
|
|
889
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
890
|
return suspendResult;
|
|
891
891
|
}
|
|
@@ -914,33 +914,33 @@
|
|
|
914
914
|
}
|
|
915
915
|
while (true);
|
|
916
916
|
};
|
|
917
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
918
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
919
|
-
i.
|
|
920
|
-
i.
|
|
917
|
+
protoOf(Logging$setupResponseLogging$slambda).a3z = function ($this$intercept, response, completion) {
|
|
918
|
+
var i = new Logging$setupResponseLogging$slambda(this.w4q_1, completion);
|
|
919
|
+
i.x4q_1 = $this$intercept;
|
|
920
|
+
i.y4q_1 = response;
|
|
921
921
|
return i;
|
|
922
922
|
};
|
|
923
923
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
924
924
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
925
925
|
var l = function ($this$intercept, response, $completion) {
|
|
926
|
-
return i.
|
|
926
|
+
return i.z3y($this$intercept, response, $completion);
|
|
927
927
|
};
|
|
928
928
|
l.$arity = 2;
|
|
929
929
|
return l;
|
|
930
930
|
}
|
|
931
931
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
932
|
-
this.
|
|
932
|
+
this.l4r_1 = this$0;
|
|
933
933
|
CoroutineImpl.call(this, resultContinuation);
|
|
934
934
|
}
|
|
935
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
936
|
-
var tmp = this.
|
|
935
|
+
protoOf(Logging$setupResponseLogging$slambda_1).v3q = function ($this$intercept, it, $completion) {
|
|
936
|
+
var tmp = this.w3q($this$intercept, it, $completion);
|
|
937
937
|
tmp.t8_1 = Unit_instance;
|
|
938
938
|
tmp.u8_1 = null;
|
|
939
939
|
return tmp.z8();
|
|
940
940
|
};
|
|
941
941
|
protoOf(Logging$setupResponseLogging$slambda_1).i9 = function (p1, p2, $completion) {
|
|
942
942
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
943
|
-
return this.
|
|
943
|
+
return this.v3q(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
944
944
|
};
|
|
945
945
|
protoOf(Logging$setupResponseLogging$slambda_1).z8 = function () {
|
|
946
946
|
var suspendResult = this.t8_1;
|
|
@@ -950,13 +950,13 @@
|
|
|
950
950
|
switch (tmp) {
|
|
951
951
|
case 0:
|
|
952
952
|
this.s8_1 = 6;
|
|
953
|
-
if (this.
|
|
953
|
+
if (this.l4r_1.f4p_1.equals(LogLevel_NONE_getInstance()) || this.m4r_1.k3b_1.w3s().l34(get_DisableLogging())) {
|
|
954
954
|
return Unit_instance;
|
|
955
955
|
}
|
|
956
956
|
|
|
957
957
|
this.s8_1 = 3;
|
|
958
958
|
this.r8_1 = 1;
|
|
959
|
-
suspendResult = this.
|
|
959
|
+
suspendResult = this.m4r_1.p3a(this);
|
|
960
960
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
961
961
|
return suspendResult;
|
|
962
962
|
}
|
|
@@ -973,12 +973,12 @@
|
|
|
973
973
|
this.s8_1 = 6;
|
|
974
974
|
var tmp_0 = this.u8_1;
|
|
975
975
|
if (tmp_0 instanceof Error) {
|
|
976
|
-
this.
|
|
976
|
+
this.o4r_1 = this.u8_1;
|
|
977
977
|
var log = StringBuilder_init_$Create$();
|
|
978
|
-
this.
|
|
979
|
-
logResponseException(this.
|
|
978
|
+
this.p4r_1 = this.m4r_1.k3b_1.w3s().j34(get_ClientCallLogger());
|
|
979
|
+
logResponseException(this.l4r_1, log, this.m4r_1.k3b_1.o3t(), this.o4r_1);
|
|
980
980
|
this.r8_1 = 4;
|
|
981
|
-
suspendResult = this.
|
|
981
|
+
suspendResult = this.p4r_1.i4o(log.toString(), this);
|
|
982
982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
983
983
|
return suspendResult;
|
|
984
984
|
}
|
|
@@ -989,14 +989,14 @@
|
|
|
989
989
|
|
|
990
990
|
case 4:
|
|
991
991
|
this.r8_1 = 5;
|
|
992
|
-
suspendResult = this.
|
|
992
|
+
suspendResult = this.p4r_1.l4o(this);
|
|
993
993
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
994
994
|
return suspendResult;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
continue $sm;
|
|
998
998
|
case 5:
|
|
999
|
-
throw this.
|
|
999
|
+
throw this.o4r_1;
|
|
1000
1000
|
case 6:
|
|
1001
1001
|
throw this.u8_1;
|
|
1002
1002
|
}
|
|
@@ -1011,32 +1011,32 @@
|
|
|
1011
1011
|
}
|
|
1012
1012
|
while (true);
|
|
1013
1013
|
};
|
|
1014
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1015
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1016
|
-
i.
|
|
1017
|
-
i.
|
|
1014
|
+
protoOf(Logging$setupResponseLogging$slambda_1).w3q = function ($this$intercept, it, completion) {
|
|
1015
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.l4r_1, completion);
|
|
1016
|
+
i.m4r_1 = $this$intercept;
|
|
1017
|
+
i.n4r_1 = it;
|
|
1018
1018
|
return i;
|
|
1019
1019
|
};
|
|
1020
1020
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1021
1021
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1022
1022
|
var l = function ($this$intercept, it, $completion) {
|
|
1023
|
-
return i.
|
|
1023
|
+
return i.v3q($this$intercept, it, $completion);
|
|
1024
1024
|
};
|
|
1025
1025
|
l.$arity = 2;
|
|
1026
1026
|
return l;
|
|
1027
1027
|
}
|
|
1028
1028
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1029
|
-
this.
|
|
1029
|
+
this.y4r_1 = this$0;
|
|
1030
1030
|
CoroutineImpl.call(this, resultContinuation);
|
|
1031
1031
|
}
|
|
1032
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1033
|
-
var tmp = this.
|
|
1032
|
+
protoOf(Logging$setupResponseLogging$slambda_3).n40 = function (it, $completion) {
|
|
1033
|
+
var tmp = this.o40(it, $completion);
|
|
1034
1034
|
tmp.t8_1 = Unit_instance;
|
|
1035
1035
|
tmp.u8_1 = null;
|
|
1036
1036
|
return tmp.z8();
|
|
1037
1037
|
};
|
|
1038
1038
|
protoOf(Logging$setupResponseLogging$slambda_3).h9 = function (p1, $completion) {
|
|
1039
|
-
return this.
|
|
1039
|
+
return this.n40(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1040
1040
|
};
|
|
1041
1041
|
protoOf(Logging$setupResponseLogging$slambda_3).z8 = function () {
|
|
1042
1042
|
var suspendResult = this.t8_1;
|
|
@@ -1046,19 +1046,19 @@
|
|
|
1046
1046
|
switch (tmp) {
|
|
1047
1047
|
case 0:
|
|
1048
1048
|
this.s8_1 = 10;
|
|
1049
|
-
if (this.
|
|
1049
|
+
if (this.y4r_1.f4p_1.equals(LogLevel_NONE_getInstance()) || this.z4r_1.l3u().w3s().l34(get_DisableLogging())) {
|
|
1050
1050
|
return Unit_instance;
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1053
|
+
this.a4s_1 = this.z4r_1.l3u().w3s().j34(get_ClientCallLogger());
|
|
1054
|
+
this.b4s_1 = StringBuilder_init_$Create$();
|
|
1055
1055
|
this.r8_1 = 1;
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
case 1:
|
|
1058
1058
|
this.s8_1 = 4;
|
|
1059
1059
|
this.s8_1 = 3;
|
|
1060
1060
|
this.r8_1 = 2;
|
|
1061
|
-
suspendResult = logResponseBody(this.
|
|
1061
|
+
suspendResult = logResponseBody(this.b4s_1, contentType(this.z4r_1), this.z4r_1.p1b(), this);
|
|
1062
1062
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1063
1063
|
return suspendResult;
|
|
1064
1064
|
}
|
|
@@ -1082,10 +1082,10 @@
|
|
|
1082
1082
|
|
|
1083
1083
|
case 4:
|
|
1084
1084
|
this.s8_1 = 10;
|
|
1085
|
-
this.
|
|
1085
|
+
this.c4s_1 = this.u8_1;
|
|
1086
1086
|
this.r8_1 = 5;
|
|
1087
|
-
var this_0 = this.
|
|
1088
|
-
suspendResult = this.
|
|
1087
|
+
var this_0 = this.b4s_1.toString();
|
|
1088
|
+
suspendResult = this.a4s_1.j4o(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1089
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1090
1090
|
return suspendResult;
|
|
1091
1091
|
}
|
|
@@ -1093,19 +1093,19 @@
|
|
|
1093
1093
|
continue $sm;
|
|
1094
1094
|
case 5:
|
|
1095
1095
|
this.r8_1 = 6;
|
|
1096
|
-
suspendResult = this.
|
|
1096
|
+
suspendResult = this.a4s_1.l4o(this);
|
|
1097
1097
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1098
1098
|
return suspendResult;
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
continue $sm;
|
|
1102
1102
|
case 6:
|
|
1103
|
-
throw this.
|
|
1103
|
+
throw this.c4s_1;
|
|
1104
1104
|
case 7:
|
|
1105
1105
|
this.s8_1 = 10;
|
|
1106
1106
|
this.r8_1 = 8;
|
|
1107
|
-
var this_1 = this.
|
|
1108
|
-
suspendResult = this.
|
|
1107
|
+
var this_1 = this.b4s_1.toString();
|
|
1108
|
+
suspendResult = this.a4s_1.j4o(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1109
1109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1110
1110
|
return suspendResult;
|
|
1111
1111
|
}
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
continue $sm;
|
|
1114
1114
|
case 8:
|
|
1115
1115
|
this.r8_1 = 9;
|
|
1116
|
-
suspendResult = this.
|
|
1116
|
+
suspendResult = this.a4s_1.l4o(this);
|
|
1117
1117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1118
1118
|
return suspendResult;
|
|
1119
1119
|
}
|
|
@@ -1135,15 +1135,15 @@
|
|
|
1135
1135
|
}
|
|
1136
1136
|
while (true);
|
|
1137
1137
|
};
|
|
1138
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1139
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1140
|
-
i.
|
|
1138
|
+
protoOf(Logging$setupResponseLogging$slambda_3).o40 = function (it, completion) {
|
|
1139
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.y4r_1, completion);
|
|
1140
|
+
i.z4r_1 = it;
|
|
1141
1141
|
return i;
|
|
1142
1142
|
};
|
|
1143
1143
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1144
1144
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1145
1145
|
var l = function (it, $completion) {
|
|
1146
|
-
return i.
|
|
1146
|
+
return i.n40(it, $completion);
|
|
1147
1147
|
};
|
|
1148
1148
|
l.$arity = 1;
|
|
1149
1149
|
return l;
|
|
@@ -1151,10 +1151,10 @@
|
|
|
1151
1151
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1152
1152
|
Companion_getInstance_0();
|
|
1153
1153
|
filters = filters === VOID ? emptyList() : filters;
|
|
1154
|
-
this.
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1154
|
+
this.e4p_1 = logger;
|
|
1155
|
+
this.f4p_1 = level;
|
|
1156
|
+
this.g4p_1 = filters;
|
|
1157
|
+
this.h4p_1 = sanitizedHeaders;
|
|
1158
1158
|
}
|
|
1159
1159
|
var properties_initialized_Logging_kt_588vu7;
|
|
1160
1160
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
var _iterator__ex2g4s_0 = sanitizedHeaders.l();
|
|
1186
1186
|
while (_iterator__ex2g4s_0.m()) {
|
|
1187
1187
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1188
|
-
if (element_0.
|
|
1188
|
+
if (element_0.j4p_1(key)) {
|
|
1189
1189
|
tmp$ret$5 = element_0;
|
|
1190
1190
|
break $l$block;
|
|
1191
1191
|
}
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
tmp$ret$5 = null;
|
|
1194
1194
|
}
|
|
1195
1195
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1196
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1196
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i4p_1;
|
|
1197
1197
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
@@ -1205,26 +1205,26 @@
|
|
|
1205
1205
|
}
|
|
1206
1206
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1207
1207
|
// Inline function 'kotlin.with' call
|
|
1208
|
-
if (level.
|
|
1208
|
+
if (level.o4o_1) {
|
|
1209
1209
|
// Inline function 'kotlin.text.appendLine' call
|
|
1210
|
-
var value = 'RESPONSE: ' + response.
|
|
1210
|
+
var value = 'RESPONSE: ' + response.n3n().toString();
|
|
1211
1211
|
// Inline function 'kotlin.text.appendLine' call
|
|
1212
1212
|
log.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
1213
1213
|
// Inline function 'kotlin.text.appendLine' call
|
|
1214
|
-
var value_0 = 'METHOD: ' + response.
|
|
1214
|
+
var value_0 = 'METHOD: ' + response.l3u().o3t().m3u().toString();
|
|
1215
1215
|
// Inline function 'kotlin.text.appendLine' call
|
|
1216
1216
|
log.c8(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
1217
1217
|
// Inline function 'kotlin.text.appendLine' call
|
|
1218
|
-
var value_1 = 'FROM: ' + response.
|
|
1218
|
+
var value_1 = 'FROM: ' + response.l3u().o3t().q3t().toString();
|
|
1219
1219
|
// Inline function 'kotlin.text.appendLine' call
|
|
1220
1220
|
log.c8(value_1).d8(_Char___init__impl__6a9atx(10));
|
|
1221
1221
|
}
|
|
1222
|
-
if (level.
|
|
1222
|
+
if (level.p4o_1) {
|
|
1223
1223
|
// Inline function 'kotlin.text.appendLine' call
|
|
1224
1224
|
var value_2 = 'COMMON HEADERS';
|
|
1225
1225
|
// Inline function 'kotlin.text.appendLine' call
|
|
1226
1226
|
log.c8(value_2).d8(_Char___init__impl__6a9atx(10));
|
|
1227
|
-
logHeaders(log, response.
|
|
1227
|
+
logHeaders(log, response.i3i().f38(), sanitizedHeaders);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
function logResponseBody(log, contentType, content, $completion) {
|
|
@@ -1234,16 +1234,16 @@
|
|
|
1234
1234
|
return tmp.z8();
|
|
1235
1235
|
}
|
|
1236
1236
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1237
|
-
this.
|
|
1237
|
+
this.r4s_1 = function_0;
|
|
1238
1238
|
}
|
|
1239
1239
|
protoOf(sam$kotlin_Comparator$0).ec = function (a, b) {
|
|
1240
|
-
return this.
|
|
1240
|
+
return this.r4s_1(a, b);
|
|
1241
1241
|
};
|
|
1242
1242
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1243
1243
|
return this.ec(a, b);
|
|
1244
1244
|
};
|
|
1245
1245
|
protoOf(sam$kotlin_Comparator$0).a3 = function () {
|
|
1246
|
-
return this.
|
|
1246
|
+
return this.r4s_1;
|
|
1247
1247
|
};
|
|
1248
1248
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1249
1249
|
var tmp;
|
|
@@ -1271,9 +1271,9 @@
|
|
|
1271
1271
|
}
|
|
1272
1272
|
function $logResponseBodyCOROUTINE$_0(log, contentType, content, resultContinuation) {
|
|
1273
1273
|
CoroutineImpl.call(this, resultContinuation);
|
|
1274
|
-
this.
|
|
1275
|
-
this.
|
|
1276
|
-
this.
|
|
1274
|
+
this.l4s_1 = log;
|
|
1275
|
+
this.m4s_1 = contentType;
|
|
1276
|
+
this.n4s_1 = content;
|
|
1277
1277
|
}
|
|
1278
1278
|
protoOf($logResponseBodyCOROUTINE$_0).z8 = function () {
|
|
1279
1279
|
var suspendResult = this.t8_1;
|
|
@@ -1283,20 +1283,20 @@
|
|
|
1283
1283
|
switch (tmp) {
|
|
1284
1284
|
case 0:
|
|
1285
1285
|
this.s8_1 = 3;
|
|
1286
|
-
this.
|
|
1287
|
-
var tmp0 = this.
|
|
1288
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
1286
|
+
this.o4s_1 = this.l4s_1;
|
|
1287
|
+
var tmp0 = this.o4s_1;
|
|
1288
|
+
var value = 'BODY Content-Type: ' + toString_0(this.m4s_1);
|
|
1289
1289
|
tmp0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
1290
|
-
var tmp0_0 = this.
|
|
1290
|
+
var tmp0_0 = this.o4s_1;
|
|
1291
1291
|
var value_0 = 'BODY START';
|
|
1292
1292
|
tmp0_0.c8(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
1293
|
-
var tmp0_1 = this.
|
|
1294
|
-
var tmp0_safe_receiver = this.
|
|
1293
|
+
var tmp0_1 = this.n4s_1;
|
|
1294
|
+
var tmp0_safe_receiver = this.m4s_1;
|
|
1295
1295
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1296
|
-
this.
|
|
1296
|
+
this.q4s_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().r30_1 : tmp1_elvis_lhs;
|
|
1297
1297
|
this.s8_1 = 2;
|
|
1298
1298
|
this.r8_1 = 1;
|
|
1299
|
-
suspendResult = tmp0_1.
|
|
1299
|
+
suspendResult = tmp0_1.f2w(VOID, this);
|
|
1300
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1301
|
return suspendResult;
|
|
1302
1302
|
}
|
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
continue $sm;
|
|
1305
1305
|
case 1:
|
|
1306
1306
|
var ARGUMENT = suspendResult;
|
|
1307
|
-
this.
|
|
1307
|
+
this.p4s_1 = readText(ARGUMENT, this.q4s_1);
|
|
1308
1308
|
this.s8_1 = 3;
|
|
1309
1309
|
this.r8_1 = 4;
|
|
1310
1310
|
continue $sm;
|
|
@@ -1314,7 +1314,7 @@
|
|
|
1314
1314
|
if (tmp_0 instanceof Error) {
|
|
1315
1315
|
var cause = this.u8_1;
|
|
1316
1316
|
var tmp_1 = this;
|
|
1317
|
-
tmp_1.
|
|
1317
|
+
tmp_1.p4s_1 = null;
|
|
1318
1318
|
this.r8_1 = 4;
|
|
1319
1319
|
continue $sm;
|
|
1320
1320
|
} else {
|
|
@@ -1325,10 +1325,10 @@
|
|
|
1325
1325
|
throw this.u8_1;
|
|
1326
1326
|
case 4:
|
|
1327
1327
|
this.s8_1 = 3;
|
|
1328
|
-
var tmp2_elvis_lhs = this.
|
|
1328
|
+
var tmp2_elvis_lhs = this.p4s_1;
|
|
1329
1329
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1330
|
+
this.o4s_1.c8(message).d8(_Char___init__impl__6a9atx(10));
|
|
1331
|
+
this.o4s_1.c8('BODY END');
|
|
1332
1332
|
return Unit_instance;
|
|
1333
1333
|
}
|
|
1334
1334
|
} catch ($p) {
|
|
@@ -1351,20 +1351,20 @@
|
|
|
1351
1351
|
function toReadChannel(_this__u8e3s4) {
|
|
1352
1352
|
var tmp = GlobalScope_instance;
|
|
1353
1353
|
var tmp_0 = Dispatchers_getInstance().z20_1;
|
|
1354
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1354
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).s21();
|
|
1355
1355
|
}
|
|
1356
1356
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1357
|
-
this.
|
|
1357
|
+
this.l4t_1 = $this_toReadChannel;
|
|
1358
1358
|
CoroutineImpl.call(this, resultContinuation);
|
|
1359
1359
|
}
|
|
1360
|
-
protoOf(toReadChannel$slambda).
|
|
1361
|
-
var tmp = this.
|
|
1360
|
+
protoOf(toReadChannel$slambda).j3v = function ($this$writer, $completion) {
|
|
1361
|
+
var tmp = this.k3v($this$writer, $completion);
|
|
1362
1362
|
tmp.t8_1 = Unit_instance;
|
|
1363
1363
|
tmp.u8_1 = null;
|
|
1364
1364
|
return tmp.z8();
|
|
1365
1365
|
};
|
|
1366
1366
|
protoOf(toReadChannel$slambda).h9 = function (p1, $completion) {
|
|
1367
|
-
return this.
|
|
1367
|
+
return this.j3v((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1368
1368
|
};
|
|
1369
1369
|
protoOf(toReadChannel$slambda).z8 = function () {
|
|
1370
1370
|
var suspendResult = this.t8_1;
|
|
@@ -1375,7 +1375,7 @@
|
|
|
1375
1375
|
case 0:
|
|
1376
1376
|
this.s8_1 = 2;
|
|
1377
1377
|
this.r8_1 = 1;
|
|
1378
|
-
suspendResult = this.
|
|
1378
|
+
suspendResult = this.l4t_1.u3n(this.m4t_1.s21(), this);
|
|
1379
1379
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1380
1380
|
return suspendResult;
|
|
1381
1381
|
}
|
|
@@ -1397,23 +1397,23 @@
|
|
|
1397
1397
|
}
|
|
1398
1398
|
while (true);
|
|
1399
1399
|
};
|
|
1400
|
-
protoOf(toReadChannel$slambda).
|
|
1401
|
-
var i = new toReadChannel$slambda(this.
|
|
1402
|
-
i.
|
|
1400
|
+
protoOf(toReadChannel$slambda).k3v = function ($this$writer, completion) {
|
|
1401
|
+
var i = new toReadChannel$slambda(this.l4t_1, completion);
|
|
1402
|
+
i.m4t_1 = $this$writer;
|
|
1403
1403
|
return i;
|
|
1404
1404
|
};
|
|
1405
1405
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1406
1406
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1407
1407
|
var l = function ($this$writer, $completion) {
|
|
1408
|
-
return i.
|
|
1408
|
+
return i.j3v($this$writer, $completion);
|
|
1409
1409
|
};
|
|
1410
1410
|
l.$arity = 1;
|
|
1411
1411
|
return l;
|
|
1412
1412
|
}
|
|
1413
1413
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
1414
1414
|
CoroutineImpl.call(this, resultContinuation);
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1415
|
+
this.a4t_1 = _this__u8e3s4;
|
|
1416
|
+
this.b4t_1 = log;
|
|
1417
1417
|
}
|
|
1418
1418
|
protoOf($observeCOROUTINE$).z8 = function () {
|
|
1419
1419
|
var suspendResult = this.t8_1;
|
|
@@ -1423,10 +1423,10 @@
|
|
|
1423
1423
|
switch (tmp) {
|
|
1424
1424
|
case 0:
|
|
1425
1425
|
this.s8_1 = 3;
|
|
1426
|
-
var tmp0_subject = this.
|
|
1426
|
+
var tmp0_subject = this.a4t_1;
|
|
1427
1427
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
1428
1428
|
this.r8_1 = 1;
|
|
1429
|
-
suspendResult = writeFully(this.
|
|
1429
|
+
suspendResult = writeFully(this.b4t_1, this.a4t_1.p3n(), this);
|
|
1430
1430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1431
1431
|
return suspendResult;
|
|
1432
1432
|
}
|
|
@@ -1435,24 +1435,24 @@
|
|
|
1435
1435
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
1436
1436
|
var tmp_0 = this;
|
|
1437
1437
|
var responseChannel = ByteChannel();
|
|
1438
|
-
var content = this.
|
|
1439
|
-
copyToBoth(content, this.
|
|
1440
|
-
tmp_0.
|
|
1438
|
+
var content = this.a4t_1.s3n();
|
|
1439
|
+
copyToBoth(content, this.b4t_1, responseChannel);
|
|
1440
|
+
tmp_0.c4t_1 = new LoggedContent(this.a4t_1, responseChannel);
|
|
1441
1441
|
this.r8_1 = 2;
|
|
1442
1442
|
continue $sm;
|
|
1443
1443
|
} else {
|
|
1444
1444
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
1445
1445
|
var tmp_1 = this;
|
|
1446
1446
|
var responseChannel_0 = ByteChannel();
|
|
1447
|
-
var content_0 = toReadChannel(this.
|
|
1448
|
-
copyToBoth(content_0, this.
|
|
1449
|
-
tmp_1.
|
|
1447
|
+
var content_0 = toReadChannel(this.a4t_1);
|
|
1448
|
+
copyToBoth(content_0, this.b4t_1, responseChannel_0);
|
|
1449
|
+
tmp_1.c4t_1 = new LoggedContent(this.a4t_1, responseChannel_0);
|
|
1450
1450
|
this.r8_1 = 2;
|
|
1451
1451
|
continue $sm;
|
|
1452
1452
|
} else {
|
|
1453
1453
|
var tmp_2 = this;
|
|
1454
|
-
close(this.
|
|
1455
|
-
tmp_2.
|
|
1454
|
+
close(this.b4t_1);
|
|
1455
|
+
tmp_2.c4t_1 = this.a4t_1;
|
|
1456
1456
|
this.r8_1 = 2;
|
|
1457
1457
|
continue $sm;
|
|
1458
1458
|
}
|
|
@@ -1460,12 +1460,12 @@
|
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
1462
|
case 1:
|
|
1463
|
-
close(this.
|
|
1464
|
-
this.
|
|
1463
|
+
close(this.b4t_1);
|
|
1464
|
+
this.c4t_1 = this.a4t_1;
|
|
1465
1465
|
this.r8_1 = 2;
|
|
1466
1466
|
continue $sm;
|
|
1467
1467
|
case 2:
|
|
1468
|
-
return this.
|
|
1468
|
+
return this.c4t_1;
|
|
1469
1469
|
case 3:
|
|
1470
1470
|
throw this.u8_1;
|
|
1471
1471
|
}
|