@doordeck/doordeck-headless-sdk 0.194.0 → 0.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +51 -51
- package/kotlin/Kermit-kermit.js +4 -4
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +19 -19
- package/kotlin/doordeck-sdk.d.ts +22 -22
- package/kotlin/doordeck-sdk.js +10675 -10685
- package/kotlin/kotlin-kotlin-stdlib.js +1215 -1389
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +2407 -2389
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +42 -42
- package/kotlin/kotlinx-io-kotlinx-io-core.js +624 -620
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1892 -1902
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1500 -1499
- package/kotlin/ktor-ktor-client-auth.js +268 -267
- package/kotlin/ktor-ktor-client-content-negotiation.js +137 -137
- package/kotlin/ktor-ktor-client-core.js +2224 -2223
- package/kotlin/ktor-ktor-client-logging.js +658 -657
- package/kotlin/ktor-ktor-events.js +8 -8
- package/kotlin/ktor-ktor-http-cio.js +375 -375
- package/kotlin/ktor-ktor-http.js +800 -799
- package/kotlin/ktor-ktor-io.js +650 -650
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +147 -146
- package/kotlin/ktor-ktor-serialization.js +62 -63
- package/kotlin/ktor-ktor-utils.js +730 -745
- package/kotlin/ktor-ktor-websockets.js +427 -429
- package/package.json +2 -2
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
var isCharSequence = kotlin_kotlin.$_$.nb;
|
|
8
8
|
var trim = kotlin_kotlin.$_$.df;
|
|
9
9
|
var toString = kotlin_kotlin.$_$.cc;
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.z;
|
|
11
11
|
var protoOf = kotlin_kotlin.$_$.zb;
|
|
12
12
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
|
|
13
13
|
var charSequenceLength = kotlin_kotlin.$_$.qa;
|
|
14
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
14
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f3;
|
|
18
18
|
var initMetadataForClass = kotlin_kotlin.$_$.cb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.b;
|
|
20
20
|
var initMetadataForInterface = kotlin_kotlin.$_$.gb;
|
|
21
21
|
var initMetadataForObject = kotlin_kotlin.$_$.ib;
|
|
22
22
|
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
23
|
-
var readBuffer = kotlin_io_ktor_ktor_io.$_$.
|
|
23
|
+
var readBuffer = kotlin_io_ktor_ktor_io.$_$.g;
|
|
24
24
|
var isTextType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
25
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
25
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
|
|
26
26
|
var charset = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
27
|
-
var readAvailable = kotlin_io_ktor_ktor_io.$_$.
|
|
27
|
+
var readAvailable = kotlin_io_ktor_ktor_io.$_$.f;
|
|
28
28
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
29
29
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.g1;
|
|
30
30
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
35
35
|
var initMetadataForCompanion = kotlin_kotlin.$_$.db;
|
|
36
36
|
var println = kotlin_kotlin.$_$.p9;
|
|
37
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
37
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
39
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r2;
|
|
40
40
|
var getKClassFromExpression = kotlin_kotlin.$_$.qc;
|
|
41
41
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
42
42
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
@@ -45,23 +45,23 @@
|
|
|
45
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
46
46
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
47
47
|
var initMetadataForLambda = kotlin_kotlin.$_$.hb;
|
|
48
|
-
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.
|
|
48
|
+
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
49
49
|
var isSuspendFunction = kotlin_kotlin.$_$.tb;
|
|
50
50
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
51
51
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.n;
|
|
52
|
-
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.
|
|
52
|
+
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
53
53
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
54
|
-
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.
|
|
54
|
+
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
55
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
56
56
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q1;
|
|
57
57
|
var isInterface = kotlin_kotlin.$_$.rb;
|
|
58
58
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
59
|
-
var readRemaining = kotlin_io_ktor_ktor_io.$_$.
|
|
59
|
+
var readRemaining = kotlin_io_ktor_ktor_io.$_$.j;
|
|
60
60
|
var Collection = kotlin_kotlin.$_$.e5;
|
|
61
61
|
var toString_0 = kotlin_kotlin.$_$.ch;
|
|
62
62
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
63
|
-
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
64
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
63
|
+
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
64
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
65
65
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
66
66
|
var Url = kotlin_io_ktor_ktor_http.$_$.g1;
|
|
67
67
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
71
71
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
72
72
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.yg;
|
|
73
|
-
var split = kotlin_io_ktor_ktor_utils.$_$.
|
|
73
|
+
var split = kotlin_io_ktor_ktor_utils.$_$.l1;
|
|
74
74
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
75
75
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
76
76
|
var FormItem = kotlin_io_ktor_ktor_http.$_$.w;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
var writer = kotlin_io_ktor_ktor_io.$_$.w1;
|
|
107
107
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
108
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.e1;
|
|
109
|
-
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.
|
|
109
|
+
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.o;
|
|
110
110
|
var get = kotlin_kotlin.$_$.h9;
|
|
111
111
|
var fold = kotlin_kotlin.$_$.g9;
|
|
112
112
|
var minusKey = kotlin_kotlin.$_$.i9;
|
|
@@ -119,10 +119,10 @@
|
|
|
119
119
|
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
120
120
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
121
121
|
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
122
|
-
return this.
|
|
122
|
+
return this.c58(contentLength, contentType, headers, body, $completion);
|
|
123
123
|
}
|
|
124
124
|
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.c58(contentLength, contentType, headers, body, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
128
128
|
function get_byteSize() {
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
//endregion
|
|
176
176
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
177
177
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
178
|
+
this.s56_1 = _this__u8e3s4;
|
|
179
|
+
this.t56_1 = message;
|
|
180
180
|
}
|
|
181
181
|
protoOf($logResponseExceptionCOROUTINE$).i9 = function () {
|
|
182
182
|
var suspendResult = this.c9_1;
|
|
@@ -187,15 +187,15 @@
|
|
|
187
187
|
case 0:
|
|
188
188
|
this.b9_1 = 2;
|
|
189
189
|
this.a9_1 = 1;
|
|
190
|
-
suspendResult = this.
|
|
190
|
+
suspendResult = this.s56_1.x56_1.yt(this);
|
|
191
191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
192
192
|
return suspendResult;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
continue $sm;
|
|
196
196
|
case 1:
|
|
197
|
-
var this_0 = this.
|
|
198
|
-
this.
|
|
197
|
+
var this_0 = this.t56_1;
|
|
198
|
+
this.s56_1.u56_1.b57(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
199
199
|
return Unit_instance;
|
|
200
200
|
case 2:
|
|
201
201
|
throw this.d9_1;
|
|
@@ -213,8 +213,8 @@
|
|
|
213
213
|
};
|
|
214
214
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
215
215
|
CoroutineImpl.call(this, resultContinuation);
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
216
|
+
this.k57_1 = _this__u8e3s4;
|
|
217
|
+
this.l57_1 = message;
|
|
218
218
|
}
|
|
219
219
|
protoOf($logResponseBodyCOROUTINE$).i9 = function () {
|
|
220
220
|
var suspendResult = this.c9_1;
|
|
@@ -225,14 +225,14 @@
|
|
|
225
225
|
case 0:
|
|
226
226
|
this.b9_1 = 2;
|
|
227
227
|
this.a9_1 = 1;
|
|
228
|
-
suspendResult = this.
|
|
228
|
+
suspendResult = this.k57_1.y56_1.yt(this);
|
|
229
229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
230
230
|
return suspendResult;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
continue $sm;
|
|
234
234
|
case 1:
|
|
235
|
-
this.
|
|
235
|
+
this.k57_1.w56_1.q(this.l57_1);
|
|
236
236
|
return Unit_instance;
|
|
237
237
|
case 2:
|
|
238
238
|
throw this.d9_1;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
};
|
|
251
251
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
252
252
|
CoroutineImpl.call(this, resultContinuation);
|
|
253
|
-
this.
|
|
253
|
+
this.u57_1 = _this__u8e3s4;
|
|
254
254
|
}
|
|
255
255
|
protoOf($closeResponseLogCOROUTINE$).i9 = function () {
|
|
256
256
|
var suspendResult = this.c9_1;
|
|
@@ -260,19 +260,19 @@
|
|
|
260
260
|
switch (tmp) {
|
|
261
261
|
case 0:
|
|
262
262
|
this.b9_1 = 2;
|
|
263
|
-
if (!this.
|
|
263
|
+
if (!this.u57_1.a57_1.atomicfu$compareAndSet(false, true))
|
|
264
264
|
return Unit_instance;
|
|
265
265
|
this.a9_1 = 1;
|
|
266
|
-
suspendResult = this.
|
|
266
|
+
suspendResult = this.u57_1.x56_1.yt(this);
|
|
267
267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
268
268
|
return suspendResult;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
continue $sm;
|
|
272
272
|
case 1:
|
|
273
|
-
var message = toString(trim(this.
|
|
273
|
+
var message = toString(trim(this.u57_1.w56_1));
|
|
274
274
|
if (charSequenceLength(message) > 0) {
|
|
275
|
-
this.
|
|
275
|
+
this.u57_1.u56_1.b57(message);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
return Unit_instance;
|
|
@@ -291,57 +291,57 @@
|
|
|
291
291
|
while (true);
|
|
292
292
|
};
|
|
293
293
|
function HttpClientCallLogger(logger) {
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
}
|
|
302
|
-
protoOf(HttpClientCallLogger).
|
|
303
|
-
var tmp0 = this.
|
|
294
|
+
this.u56_1 = logger;
|
|
295
|
+
this.v56_1 = StringBuilder_init_$Create$();
|
|
296
|
+
this.w56_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.x56_1 = Job();
|
|
298
|
+
this.y56_1 = Job();
|
|
299
|
+
this.z56_1 = atomic$boolean$1(false);
|
|
300
|
+
this.a57_1 = atomic$boolean$1(false);
|
|
301
|
+
}
|
|
302
|
+
protoOf(HttpClientCallLogger).v57 = function (message) {
|
|
303
|
+
var tmp0 = this.v56_1;
|
|
304
304
|
// Inline function 'kotlin.text.trim' call
|
|
305
305
|
// Inline function 'kotlin.text.appendLine' call
|
|
306
306
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
307
307
|
// Inline function 'kotlin.text.appendLine' call
|
|
308
308
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
309
309
|
};
|
|
310
|
-
protoOf(HttpClientCallLogger).
|
|
311
|
-
var tmp0 = this.
|
|
310
|
+
protoOf(HttpClientCallLogger).w57 = function (message) {
|
|
311
|
+
var tmp0 = this.w56_1;
|
|
312
312
|
// Inline function 'kotlin.text.trim' call
|
|
313
313
|
// Inline function 'kotlin.text.appendLine' call
|
|
314
314
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
315
315
|
// Inline function 'kotlin.text.appendLine' call
|
|
316
316
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
317
|
-
this.
|
|
317
|
+
this.y56_1.c11();
|
|
318
318
|
};
|
|
319
|
-
protoOf(HttpClientCallLogger).
|
|
319
|
+
protoOf(HttpClientCallLogger).x57 = function (message, $completion) {
|
|
320
320
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
321
321
|
tmp.c9_1 = Unit_instance;
|
|
322
322
|
tmp.d9_1 = null;
|
|
323
323
|
return tmp.i9();
|
|
324
324
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
325
|
+
protoOf(HttpClientCallLogger).y57 = function (message, $completion) {
|
|
326
326
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
327
327
|
tmp.c9_1 = Unit_instance;
|
|
328
328
|
tmp.d9_1 = null;
|
|
329
329
|
return tmp.i9();
|
|
330
330
|
};
|
|
331
|
-
protoOf(HttpClientCallLogger).
|
|
332
|
-
if (!this.
|
|
331
|
+
protoOf(HttpClientCallLogger).z57 = function () {
|
|
332
|
+
if (!this.z56_1.atomicfu$compareAndSet(false, true))
|
|
333
333
|
return Unit_instance;
|
|
334
334
|
try {
|
|
335
|
-
var message = toString(trim(this.
|
|
335
|
+
var message = toString(trim(this.v56_1));
|
|
336
336
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
337
337
|
if (charSequenceLength(message) > 0) {
|
|
338
|
-
this.
|
|
338
|
+
this.u56_1.b57(message);
|
|
339
339
|
}
|
|
340
340
|
}finally {
|
|
341
|
-
this.
|
|
341
|
+
this.x56_1.c11();
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
protoOf(HttpClientCallLogger).
|
|
344
|
+
protoOf(HttpClientCallLogger).a58 = function ($completion) {
|
|
345
345
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
346
346
|
tmp.c9_1 = Unit_instance;
|
|
347
347
|
tmp.d9_1 = null;
|
|
@@ -363,35 +363,35 @@
|
|
|
363
363
|
function Skip(reason, byteSize) {
|
|
364
364
|
reason = reason === VOID ? null : reason;
|
|
365
365
|
byteSize = byteSize === VOID ? null : byteSize;
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
366
|
+
this.f58_1 = reason;
|
|
367
|
+
this.g58_1 = byteSize;
|
|
368
368
|
}
|
|
369
|
-
protoOf(Skip).
|
|
370
|
-
return this.
|
|
369
|
+
protoOf(Skip).e58 = function () {
|
|
370
|
+
return this.g58_1;
|
|
371
371
|
};
|
|
372
372
|
function Content() {
|
|
373
373
|
}
|
|
374
374
|
function BufferContent(buffer, charset, byteSize) {
|
|
375
375
|
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
376
|
+
this.i58_1 = buffer;
|
|
377
|
+
this.j58_1 = charset;
|
|
378
|
+
this.k58_1 = byteSize;
|
|
379
379
|
}
|
|
380
|
-
protoOf(BufferContent).
|
|
381
|
-
return this.
|
|
380
|
+
protoOf(BufferContent).e58 = function () {
|
|
381
|
+
return this.k58_1;
|
|
382
382
|
};
|
|
383
|
-
protoOf(BufferContent).
|
|
384
|
-
return readText(this.
|
|
383
|
+
protoOf(BufferContent).h58 = function () {
|
|
384
|
+
return readText(this.i58_1, this.j58_1);
|
|
385
385
|
};
|
|
386
386
|
function BodyFilterResult() {
|
|
387
387
|
}
|
|
388
388
|
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
389
389
|
CoroutineImpl.call(this, resultContinuation);
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
390
|
+
this.t58_1 = _this__u8e3s4;
|
|
391
|
+
this.u58_1 = contentLength;
|
|
392
|
+
this.v58_1 = contentType;
|
|
393
|
+
this.w58_1 = headers;
|
|
394
|
+
this.x58_1 = body;
|
|
395
395
|
}
|
|
396
396
|
protoOf($filterAllCOROUTINE$).i9 = function () {
|
|
397
397
|
var suspendResult = this.c9_1;
|
|
@@ -401,13 +401,13 @@
|
|
|
401
401
|
switch (tmp) {
|
|
402
402
|
case 0:
|
|
403
403
|
this.b9_1 = 6;
|
|
404
|
-
if (this.
|
|
405
|
-
return new Skip('encoded', this.
|
|
404
|
+
if (this.w58_1.s2n('Content-Encoding')) {
|
|
405
|
+
return new Skip('encoded', this.u58_1);
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
if (!(this.
|
|
408
|
+
if (!(this.v58_1 == null) && isTextType(this.v58_1)) {
|
|
409
409
|
this.a9_1 = 5;
|
|
410
|
-
suspendResult = readBuffer(this.
|
|
410
|
+
suspendResult = readBuffer(this.x58_1, this);
|
|
411
411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
412
412
|
return suspendResult;
|
|
413
413
|
}
|
|
@@ -420,18 +420,18 @@
|
|
|
420
420
|
case 1:
|
|
421
421
|
var tmp_0 = this;
|
|
422
422
|
var tmp_1;
|
|
423
|
-
if (!(this.
|
|
424
|
-
var tmp1_elvis_lhs = charset(this.
|
|
425
|
-
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
423
|
+
if (!(this.v58_1 == null)) {
|
|
424
|
+
var tmp1_elvis_lhs = charset(this.v58_1);
|
|
425
|
+
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp1_elvis_lhs;
|
|
426
426
|
} else {
|
|
427
|
-
tmp_1 = Charsets_getInstance().
|
|
427
|
+
tmp_1 = Charsets_getInstance().x1x_1;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
tmp_0.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
430
|
+
tmp_0.d59_1 = tmp_1;
|
|
431
|
+
this.c59_1 = false;
|
|
432
|
+
this.b59_1 = new Int8Array(1024);
|
|
433
433
|
this.a9_1 = 2;
|
|
434
|
-
suspendResult = readAvailable(this.
|
|
434
|
+
suspendResult = readAvailable(this.x58_1, this.b59_1, VOID, VOID, this);
|
|
435
435
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
436
436
|
return suspendResult;
|
|
437
437
|
}
|
|
@@ -444,16 +444,16 @@
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
var this_0 = new Buffer();
|
|
447
|
-
writeFully(this_0, this.
|
|
447
|
+
writeFully(this_0, this.b59_1, 0, firstReadSize);
|
|
448
448
|
var buffer = this_0;
|
|
449
449
|
var tmp_2;
|
|
450
450
|
try {
|
|
451
|
-
tmp_2 = decode(this.
|
|
451
|
+
tmp_2 = decode(this.d59_1.a1y(), buffer);
|
|
452
452
|
} catch ($p) {
|
|
453
453
|
var tmp_3;
|
|
454
454
|
if ($p instanceof MalformedInputException) {
|
|
455
455
|
var _unused_var__etf5q3 = $p;
|
|
456
|
-
this.
|
|
456
|
+
this.c59_1 = true;
|
|
457
457
|
tmp_3 = '';
|
|
458
458
|
} else {
|
|
459
459
|
throw $p;
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
var firstChunkText = tmp_2;
|
|
465
|
-
if (!this.
|
|
465
|
+
if (!this.c59_1) {
|
|
466
466
|
var lastCharIndex = -1;
|
|
467
467
|
var inductionVariable = 0;
|
|
468
468
|
var last = firstChunkText.length;
|
|
@@ -478,23 +478,23 @@
|
|
|
478
478
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
479
479
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
480
480
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
481
|
-
this.
|
|
481
|
+
this.c59_1 = true;
|
|
482
482
|
break $l$loop;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
if (this.
|
|
487
|
+
if (this.c59_1) {
|
|
488
488
|
var tmp_4 = this;
|
|
489
|
-
tmp_4.
|
|
489
|
+
tmp_4.y58_1 = new Skip('binary', this.u58_1);
|
|
490
490
|
this.a9_1 = 4;
|
|
491
491
|
continue $sm;
|
|
492
492
|
} else {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
writeFully(this.
|
|
493
|
+
this.z58_1 = new Buffer();
|
|
494
|
+
this.a59_1 = this.z58_1;
|
|
495
|
+
writeFully(this.a59_1, this.b59_1, 0, firstReadSize);
|
|
496
496
|
this.a9_1 = 3;
|
|
497
|
-
suspendResult = readBuffer(this.
|
|
497
|
+
suspendResult = readBuffer(this.x58_1, this);
|
|
498
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
499
|
return suspendResult;
|
|
500
500
|
}
|
|
@@ -503,20 +503,20 @@
|
|
|
503
503
|
|
|
504
504
|
case 3:
|
|
505
505
|
var ARGUMENT = suspendResult;
|
|
506
|
-
this.
|
|
507
|
-
var ARGUMENT_0 = this.
|
|
506
|
+
this.a59_1.zq(ARGUMENT);
|
|
507
|
+
var ARGUMENT_0 = this.z58_1;
|
|
508
508
|
var tmp_5 = this;
|
|
509
|
-
var tmp2_safe_receiver = this.
|
|
509
|
+
var tmp2_safe_receiver = this.v58_1;
|
|
510
510
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
-
tmp_5.
|
|
511
|
+
tmp_5.y58_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp3_elvis_lhs);
|
|
512
512
|
this.a9_1 = 4;
|
|
513
513
|
continue $sm;
|
|
514
514
|
case 4:
|
|
515
|
-
return this.
|
|
515
|
+
return this.y58_1;
|
|
516
516
|
case 5:
|
|
517
517
|
var ARGUMENT_1 = suspendResult;
|
|
518
|
-
var tmp0_elvis_lhs = charset(this.
|
|
519
|
-
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
518
|
+
var tmp0_elvis_lhs = charset(this.v58_1);
|
|
519
|
+
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp0_elvis_lhs);
|
|
520
520
|
case 6:
|
|
521
521
|
throw this.d9_1;
|
|
522
522
|
}
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
};
|
|
534
534
|
function BinaryLogBodyFilter$1() {
|
|
535
535
|
}
|
|
536
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
536
|
+
protoOf(BinaryLogBodyFilter$1).c58 = function (contentLength, contentType, headers, body, $completion) {
|
|
537
537
|
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
538
538
|
tmp.c9_1 = Unit_instance;
|
|
539
539
|
tmp.d9_1 = null;
|
|
@@ -564,9 +564,9 @@
|
|
|
564
564
|
}
|
|
565
565
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
566
566
|
Enum.call(this, name, ordinal);
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
567
|
+
this.g59_1 = info;
|
|
568
|
+
this.h59_1 = headers;
|
|
569
|
+
this.i59_1 = body;
|
|
570
570
|
}
|
|
571
571
|
function LogLevel_ALL_getInstance() {
|
|
572
572
|
LogLevel_initEntries();
|
|
@@ -590,28 +590,28 @@
|
|
|
590
590
|
}
|
|
591
591
|
function LoggedContent(originalContent, channel) {
|
|
592
592
|
ReadChannelContent.call(this);
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
593
|
+
this.k59_1 = originalContent;
|
|
594
|
+
this.l59_1 = channel;
|
|
595
|
+
this.m59_1 = this.k59_1.h35();
|
|
596
|
+
this.n59_1 = this.k59_1.j35();
|
|
597
|
+
this.o59_1 = this.k59_1.i35();
|
|
598
|
+
this.p59_1 = this.k59_1.j2z();
|
|
599
599
|
}
|
|
600
|
-
protoOf(LoggedContent).
|
|
601
|
-
return this.
|
|
600
|
+
protoOf(LoggedContent).h35 = function () {
|
|
601
|
+
return this.m59_1;
|
|
602
602
|
};
|
|
603
|
-
protoOf(LoggedContent).
|
|
604
|
-
return this.
|
|
603
|
+
protoOf(LoggedContent).j35 = function () {
|
|
604
|
+
return this.n59_1;
|
|
605
605
|
};
|
|
606
|
-
protoOf(LoggedContent).
|
|
607
|
-
return this.
|
|
606
|
+
protoOf(LoggedContent).i35 = function () {
|
|
607
|
+
return this.o59_1;
|
|
608
608
|
};
|
|
609
|
-
protoOf(LoggedContent).
|
|
610
|
-
return this.t59_1;
|
|
611
|
-
};
|
|
612
|
-
protoOf(LoggedContent).r35 = function () {
|
|
609
|
+
protoOf(LoggedContent).j2z = function () {
|
|
613
610
|
return this.p59_1;
|
|
614
611
|
};
|
|
612
|
+
protoOf(LoggedContent).n35 = function () {
|
|
613
|
+
return this.l59_1;
|
|
614
|
+
};
|
|
615
615
|
function Companion() {
|
|
616
616
|
}
|
|
617
617
|
var Companion_instance;
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
}
|
|
624
624
|
function SimpleLogger() {
|
|
625
625
|
}
|
|
626
|
-
protoOf(SimpleLogger).
|
|
626
|
+
protoOf(SimpleLogger).b57 = function (message) {
|
|
627
627
|
println('HttpClient: ' + message);
|
|
628
628
|
};
|
|
629
629
|
var SimpleLogger_instance;
|
|
@@ -648,20 +648,20 @@
|
|
|
648
648
|
function LoggingConfig() {
|
|
649
649
|
var tmp = this;
|
|
650
650
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
651
|
-
tmp.
|
|
651
|
+
tmp.q59_1 = ArrayList_init_$Create$();
|
|
652
652
|
var tmp_0 = this;
|
|
653
653
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
654
|
-
tmp_0.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
654
|
+
tmp_0.r59_1 = ArrayList_init_$Create$();
|
|
655
|
+
this.s59_1 = null;
|
|
656
|
+
this.t59_1 = LoggingFormat_Default_getInstance();
|
|
657
|
+
this.u59_1 = LogLevel_HEADERS_getInstance();
|
|
658
|
+
this.v59_1 = get_BinaryLogBodyFilter();
|
|
659
659
|
}
|
|
660
|
-
protoOf(LoggingConfig).
|
|
661
|
-
this.
|
|
660
|
+
protoOf(LoggingConfig).w59 = function (value) {
|
|
661
|
+
this.s59_1 = value;
|
|
662
662
|
};
|
|
663
|
-
protoOf(LoggingConfig).
|
|
664
|
-
var tmp0_elvis_lhs = this.
|
|
663
|
+
protoOf(LoggingConfig).x59 = function () {
|
|
664
|
+
var tmp0_elvis_lhs = this.s59_1;
|
|
665
665
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
666
666
|
};
|
|
667
667
|
var LoggingFormat_Default_instance;
|
|
@@ -683,17 +683,17 @@
|
|
|
683
683
|
// Inline function 'kotlin.apply' call
|
|
684
684
|
var this_0 = StringBuilder_init_$Create$();
|
|
685
685
|
// Inline function 'kotlin.text.isEmpty' call
|
|
686
|
-
var this_1 = _this__u8e3s4.
|
|
686
|
+
var this_1 = _this__u8e3s4.m34();
|
|
687
687
|
if (charSequenceLength(this_1) === 0) {
|
|
688
688
|
this_0.q('/');
|
|
689
689
|
} else {
|
|
690
|
-
this_0.q(_this__u8e3s4.
|
|
690
|
+
this_0.q(_this__u8e3s4.m34());
|
|
691
691
|
}
|
|
692
692
|
// Inline function 'kotlin.text.isEmpty' call
|
|
693
|
-
var this_2 = _this__u8e3s4.
|
|
693
|
+
var this_2 = _this__u8e3s4.p34();
|
|
694
694
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
695
695
|
this_0.q('?');
|
|
696
|
-
this_0.q(_this__u8e3s4.
|
|
696
|
+
this_0.q(_this__u8e3s4.p34());
|
|
697
697
|
}
|
|
698
698
|
return this_0.toString();
|
|
699
699
|
}
|
|
@@ -705,10 +705,10 @@
|
|
|
705
705
|
}
|
|
706
706
|
var tmp;
|
|
707
707
|
if (content instanceof ByteArrayContent) {
|
|
708
|
-
tmp = fromInt(content.
|
|
708
|
+
tmp = fromInt(content.k35().length);
|
|
709
709
|
} else {
|
|
710
710
|
if (content instanceof ContentWrapper) {
|
|
711
|
-
tmp = computeRequestBodySize(content.
|
|
711
|
+
tmp = computeRequestBodySize(content.t35());
|
|
712
712
|
} else {
|
|
713
713
|
if (content instanceof NoContent) {
|
|
714
714
|
tmp = 0n;
|
|
@@ -716,6 +716,7 @@
|
|
|
716
716
|
if (content instanceof ProtocolUpgrade) {
|
|
717
717
|
tmp = 0n;
|
|
718
718
|
} else {
|
|
719
|
+
// Inline function 'kotlin.error' call
|
|
719
720
|
var message = 'Unable to calculate the size for type ' + getKClassFromExpression(content).o();
|
|
720
721
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
721
722
|
}
|
|
@@ -725,27 +726,27 @@
|
|
|
725
726
|
return tmp;
|
|
726
727
|
}
|
|
727
728
|
function Context(context) {
|
|
728
|
-
this.
|
|
729
|
+
this.y59_1 = context;
|
|
729
730
|
}
|
|
730
|
-
protoOf(Context).
|
|
731
|
-
return this.
|
|
731
|
+
protoOf(Context).z59 = function (content, $completion) {
|
|
732
|
+
return this.y59_1.j2q(content, $completion);
|
|
732
733
|
};
|
|
733
|
-
protoOf(Context).
|
|
734
|
-
return this.
|
|
734
|
+
protoOf(Context).a5a = function ($completion) {
|
|
735
|
+
return this.y59_1.k2q($completion);
|
|
735
736
|
};
|
|
736
737
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
737
|
-
this.
|
|
738
|
+
this.j5a_1 = $handler;
|
|
738
739
|
CoroutineImpl.call(this, resultContinuation);
|
|
739
740
|
}
|
|
740
|
-
protoOf(SendHook$install$slambda).
|
|
741
|
-
var tmp = this.
|
|
741
|
+
protoOf(SendHook$install$slambda).v3n = function ($this$intercept, it, $completion) {
|
|
742
|
+
var tmp = this.w3n($this$intercept, it, $completion);
|
|
742
743
|
tmp.c9_1 = Unit_instance;
|
|
743
744
|
tmp.d9_1 = null;
|
|
744
745
|
return tmp.i9();
|
|
745
746
|
};
|
|
746
747
|
protoOf(SendHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
747
748
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
748
|
-
return this.
|
|
749
|
+
return this.v3n(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
749
750
|
};
|
|
750
751
|
protoOf(SendHook$install$slambda).i9 = function () {
|
|
751
752
|
var suspendResult = this.c9_1;
|
|
@@ -756,7 +757,7 @@
|
|
|
756
757
|
case 0:
|
|
757
758
|
this.b9_1 = 2;
|
|
758
759
|
this.a9_1 = 1;
|
|
759
|
-
suspendResult = this.
|
|
760
|
+
suspendResult = this.j5a_1(new Context(this.k5a_1), this.k5a_1.f2r_1, this);
|
|
760
761
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
761
762
|
return suspendResult;
|
|
762
763
|
}
|
|
@@ -778,52 +779,52 @@
|
|
|
778
779
|
}
|
|
779
780
|
while (true);
|
|
780
781
|
};
|
|
781
|
-
protoOf(SendHook$install$slambda).
|
|
782
|
-
var i = new SendHook$install$slambda(this.
|
|
783
|
-
i.
|
|
784
|
-
i.
|
|
782
|
+
protoOf(SendHook$install$slambda).w3n = function ($this$intercept, it, completion) {
|
|
783
|
+
var i = new SendHook$install$slambda(this.j5a_1, completion);
|
|
784
|
+
i.k5a_1 = $this$intercept;
|
|
785
|
+
i.l5a_1 = it;
|
|
785
786
|
return i;
|
|
786
787
|
};
|
|
787
788
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
788
789
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
789
790
|
var l = function ($this$intercept, it, $completion) {
|
|
790
|
-
return i.
|
|
791
|
+
return i.v3n($this$intercept, it, $completion);
|
|
791
792
|
};
|
|
792
793
|
l.$arity = 2;
|
|
793
794
|
return l;
|
|
794
795
|
}
|
|
795
796
|
function SendHook() {
|
|
796
797
|
}
|
|
797
|
-
protoOf(SendHook).
|
|
798
|
-
var tmp = Phases_getInstance().
|
|
799
|
-
client.
|
|
798
|
+
protoOf(SendHook).m5a = function (client, handler) {
|
|
799
|
+
var tmp = Phases_getInstance().m3p_1;
|
|
800
|
+
client.e3n_1.j2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
800
801
|
};
|
|
801
|
-
protoOf(SendHook).
|
|
802
|
-
return this.
|
|
802
|
+
protoOf(SendHook).m3w = function (client, handler) {
|
|
803
|
+
return this.m5a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
803
804
|
};
|
|
804
805
|
var SendHook_instance;
|
|
805
806
|
function SendHook_getInstance() {
|
|
806
807
|
return SendHook_instance;
|
|
807
808
|
}
|
|
808
809
|
function Context_0(context) {
|
|
809
|
-
this.
|
|
810
|
+
this.n5a_1 = context;
|
|
810
811
|
}
|
|
811
|
-
protoOf(Context_0).
|
|
812
|
-
return this.
|
|
812
|
+
protoOf(Context_0).l4l = function (response, $completion) {
|
|
813
|
+
return this.n5a_1.j2q(response, $completion);
|
|
813
814
|
};
|
|
814
815
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
815
|
-
this.
|
|
816
|
+
this.w5a_1 = $handler;
|
|
816
817
|
CoroutineImpl.call(this, resultContinuation);
|
|
817
818
|
}
|
|
818
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
819
|
-
var tmp = this.
|
|
819
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).y3w = function ($this$intercept, it, $completion) {
|
|
820
|
+
var tmp = this.z3w($this$intercept, it, $completion);
|
|
820
821
|
tmp.c9_1 = Unit_instance;
|
|
821
822
|
tmp.d9_1 = null;
|
|
822
823
|
return tmp.i9();
|
|
823
824
|
};
|
|
824
825
|
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
825
826
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
826
|
-
return this.
|
|
827
|
+
return this.y3w(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
827
828
|
};
|
|
828
829
|
protoOf(ResponseAfterEncodingHook$install$slambda).i9 = function () {
|
|
829
830
|
var suspendResult = this.c9_1;
|
|
@@ -834,7 +835,7 @@
|
|
|
834
835
|
case 0:
|
|
835
836
|
this.b9_1 = 2;
|
|
836
837
|
this.a9_1 = 1;
|
|
837
|
-
suspendResult = this.
|
|
838
|
+
suspendResult = this.w5a_1(new Context_0(this.x5a_1), this.x5a_1.i2q(), this);
|
|
838
839
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
839
840
|
return suspendResult;
|
|
840
841
|
}
|
|
@@ -856,53 +857,53 @@
|
|
|
856
857
|
}
|
|
857
858
|
while (true);
|
|
858
859
|
};
|
|
859
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
860
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
861
|
-
i.
|
|
862
|
-
i.
|
|
860
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).z3w = function ($this$intercept, it, completion) {
|
|
861
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.w5a_1, completion);
|
|
862
|
+
i.x5a_1 = $this$intercept;
|
|
863
|
+
i.y5a_1 = it;
|
|
863
864
|
return i;
|
|
864
865
|
};
|
|
865
866
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
866
867
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
867
868
|
var l = function ($this$intercept, it, $completion) {
|
|
868
|
-
return i.
|
|
869
|
+
return i.y3w($this$intercept, it, $completion);
|
|
869
870
|
};
|
|
870
871
|
l.$arity = 2;
|
|
871
872
|
return l;
|
|
872
873
|
}
|
|
873
874
|
function ResponseAfterEncodingHook() {
|
|
874
875
|
}
|
|
875
|
-
protoOf(ResponseAfterEncodingHook).
|
|
876
|
+
protoOf(ResponseAfterEncodingHook).z5a = function (client, handler) {
|
|
876
877
|
var afterState = new PipelinePhase('AfterState');
|
|
877
|
-
client.
|
|
878
|
-
client.
|
|
878
|
+
client.f3n_1.g2r(Phases_getInstance_0().c3x_1, afterState);
|
|
879
|
+
client.f3n_1.j2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
879
880
|
};
|
|
880
|
-
protoOf(ResponseAfterEncodingHook).
|
|
881
|
-
return this.
|
|
881
|
+
protoOf(ResponseAfterEncodingHook).m3w = function (client, handler) {
|
|
882
|
+
return this.z5a(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
882
883
|
};
|
|
883
884
|
var ResponseAfterEncodingHook_instance;
|
|
884
885
|
function ResponseAfterEncodingHook_getInstance() {
|
|
885
886
|
return ResponseAfterEncodingHook_instance;
|
|
886
887
|
}
|
|
887
888
|
function Context_1(context) {
|
|
888
|
-
this.
|
|
889
|
+
this.a5b_1 = context;
|
|
889
890
|
}
|
|
890
|
-
protoOf(Context_1).
|
|
891
|
-
return this.
|
|
891
|
+
protoOf(Context_1).b5b = function ($completion) {
|
|
892
|
+
return this.a5b_1.k2q($completion);
|
|
892
893
|
};
|
|
893
894
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
894
|
-
this.
|
|
895
|
+
this.k5b_1 = $handler;
|
|
895
896
|
CoroutineImpl.call(this, resultContinuation);
|
|
896
897
|
}
|
|
897
|
-
protoOf(ResponseHook$install$slambda).
|
|
898
|
-
var tmp = this.
|
|
898
|
+
protoOf(ResponseHook$install$slambda).y3w = function ($this$intercept, it, $completion) {
|
|
899
|
+
var tmp = this.z3w($this$intercept, it, $completion);
|
|
899
900
|
tmp.c9_1 = Unit_instance;
|
|
900
901
|
tmp.d9_1 = null;
|
|
901
902
|
return tmp.i9();
|
|
902
903
|
};
|
|
903
904
|
protoOf(ResponseHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
904
905
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
905
|
-
return this.
|
|
906
|
+
return this.y3w(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
906
907
|
};
|
|
907
908
|
protoOf(ResponseHook$install$slambda).i9 = function () {
|
|
908
909
|
var suspendResult = this.c9_1;
|
|
@@ -913,7 +914,7 @@
|
|
|
913
914
|
case 0:
|
|
914
915
|
this.b9_1 = 2;
|
|
915
916
|
this.a9_1 = 1;
|
|
916
|
-
suspendResult = this.
|
|
917
|
+
suspendResult = this.k5b_1(new Context_1(this.l5b_1), this.l5b_1.i2q(), this);
|
|
917
918
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
918
919
|
return suspendResult;
|
|
919
920
|
}
|
|
@@ -935,52 +936,52 @@
|
|
|
935
936
|
}
|
|
936
937
|
while (true);
|
|
937
938
|
};
|
|
938
|
-
protoOf(ResponseHook$install$slambda).
|
|
939
|
-
var i = new ResponseHook$install$slambda(this.
|
|
940
|
-
i.
|
|
941
|
-
i.
|
|
939
|
+
protoOf(ResponseHook$install$slambda).z3w = function ($this$intercept, it, completion) {
|
|
940
|
+
var i = new ResponseHook$install$slambda(this.k5b_1, completion);
|
|
941
|
+
i.l5b_1 = $this$intercept;
|
|
942
|
+
i.m5b_1 = it;
|
|
942
943
|
return i;
|
|
943
944
|
};
|
|
944
945
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
945
946
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
946
947
|
var l = function ($this$intercept, it, $completion) {
|
|
947
|
-
return i.
|
|
948
|
+
return i.y3w($this$intercept, it, $completion);
|
|
948
949
|
};
|
|
949
950
|
l.$arity = 2;
|
|
950
951
|
return l;
|
|
951
952
|
}
|
|
952
953
|
function ResponseHook() {
|
|
953
954
|
}
|
|
954
|
-
protoOf(ResponseHook).
|
|
955
|
-
var tmp = Phases_getInstance_0().
|
|
956
|
-
client.
|
|
955
|
+
protoOf(ResponseHook).n5b = function (client, handler) {
|
|
956
|
+
var tmp = Phases_getInstance_0().c3x_1;
|
|
957
|
+
client.f3n_1.j2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
957
958
|
};
|
|
958
|
-
protoOf(ResponseHook).
|
|
959
|
-
return this.
|
|
959
|
+
protoOf(ResponseHook).m3w = function (client, handler) {
|
|
960
|
+
return this.n5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
960
961
|
};
|
|
961
962
|
var ResponseHook_instance;
|
|
962
963
|
function ResponseHook_getInstance() {
|
|
963
964
|
return ResponseHook_instance;
|
|
964
965
|
}
|
|
965
966
|
function Context_2(context) {
|
|
966
|
-
this.
|
|
967
|
+
this.o5b_1 = context;
|
|
967
968
|
}
|
|
968
|
-
protoOf(Context_2).
|
|
969
|
-
return this.
|
|
969
|
+
protoOf(Context_2).p5b = function ($completion) {
|
|
970
|
+
return this.o5b_1.k2q($completion);
|
|
970
971
|
};
|
|
971
972
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
972
|
-
this.
|
|
973
|
+
this.y5b_1 = $handler;
|
|
973
974
|
CoroutineImpl.call(this, resultContinuation);
|
|
974
975
|
}
|
|
975
|
-
protoOf(ReceiveHook$install$slambda).
|
|
976
|
-
var tmp = this.
|
|
976
|
+
protoOf(ReceiveHook$install$slambda).q3o = function ($this$intercept, it, $completion) {
|
|
977
|
+
var tmp = this.r3o($this$intercept, it, $completion);
|
|
977
978
|
tmp.c9_1 = Unit_instance;
|
|
978
979
|
tmp.d9_1 = null;
|
|
979
980
|
return tmp.i9();
|
|
980
981
|
};
|
|
981
982
|
protoOf(ReceiveHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
982
983
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
983
|
-
return this.
|
|
984
|
+
return this.q3o(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
984
985
|
};
|
|
985
986
|
protoOf(ReceiveHook$install$slambda).i9 = function () {
|
|
986
987
|
var suspendResult = this.c9_1;
|
|
@@ -991,7 +992,7 @@
|
|
|
991
992
|
case 0:
|
|
992
993
|
this.b9_1 = 2;
|
|
993
994
|
this.a9_1 = 1;
|
|
994
|
-
suspendResult = this.
|
|
995
|
+
suspendResult = this.y5b_1(new Context_2(this.z5b_1), this.z5b_1.f2r_1, this);
|
|
995
996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
996
997
|
return suspendResult;
|
|
997
998
|
}
|
|
@@ -1013,28 +1014,28 @@
|
|
|
1013
1014
|
}
|
|
1014
1015
|
while (true);
|
|
1015
1016
|
};
|
|
1016
|
-
protoOf(ReceiveHook$install$slambda).
|
|
1017
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
1018
|
-
i.
|
|
1019
|
-
i.
|
|
1017
|
+
protoOf(ReceiveHook$install$slambda).r3o = function ($this$intercept, it, completion) {
|
|
1018
|
+
var i = new ReceiveHook$install$slambda(this.y5b_1, completion);
|
|
1019
|
+
i.z5b_1 = $this$intercept;
|
|
1020
|
+
i.a5c_1 = it;
|
|
1020
1021
|
return i;
|
|
1021
1022
|
};
|
|
1022
1023
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
1023
1024
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1024
1025
|
var l = function ($this$intercept, it, $completion) {
|
|
1025
|
-
return i.
|
|
1026
|
+
return i.q3o($this$intercept, it, $completion);
|
|
1026
1027
|
};
|
|
1027
1028
|
l.$arity = 2;
|
|
1028
1029
|
return l;
|
|
1029
1030
|
}
|
|
1030
1031
|
function ReceiveHook() {
|
|
1031
1032
|
}
|
|
1032
|
-
protoOf(ReceiveHook).
|
|
1033
|
-
var tmp = Phases_getInstance_1().
|
|
1034
|
-
client.
|
|
1033
|
+
protoOf(ReceiveHook).b5c = function (client, handler) {
|
|
1034
|
+
var tmp = Phases_getInstance_1().a3q_1;
|
|
1035
|
+
client.d3n_1.j2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1035
1036
|
};
|
|
1036
|
-
protoOf(ReceiveHook).
|
|
1037
|
-
return this.
|
|
1037
|
+
protoOf(ReceiveHook).m3w = function (client, handler) {
|
|
1038
|
+
return this.b5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1038
1039
|
};
|
|
1039
1040
|
var ReceiveHook_instance;
|
|
1040
1041
|
function ReceiveHook_getInstance() {
|
|
@@ -1049,27 +1050,27 @@
|
|
|
1049
1050
|
}
|
|
1050
1051
|
function Logging$lambda($this$createClientPlugin) {
|
|
1051
1052
|
_init_properties_Logging_kt__66pui5();
|
|
1052
|
-
var logger = $this$createClientPlugin.
|
|
1053
|
-
var level = $this$createClientPlugin.
|
|
1054
|
-
var filters = $this$createClientPlugin.
|
|
1055
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
1056
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
1057
|
-
var bodyFilter = $this$createClientPlugin.
|
|
1053
|
+
var logger = $this$createClientPlugin.g3x_1.x59();
|
|
1054
|
+
var level = $this$createClientPlugin.g3x_1.u59_1;
|
|
1055
|
+
var filters = $this$createClientPlugin.g3x_1.q59_1;
|
|
1056
|
+
var sanitizedHeaders = $this$createClientPlugin.g3x_1.r59_1;
|
|
1057
|
+
var okHttpFormat = $this$createClientPlugin.g3x_1.t59_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1058
|
+
var bodyFilter = $this$createClientPlugin.g3x_1.v59_1;
|
|
1058
1059
|
var tmp = SendHook_instance;
|
|
1059
|
-
$this$createClientPlugin.
|
|
1060
|
+
$this$createClientPlugin.j3x(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1060
1061
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1061
|
-
$this$createClientPlugin.
|
|
1062
|
+
$this$createClientPlugin.j3x(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1062
1063
|
var tmp_1 = ResponseHook_instance;
|
|
1063
|
-
$this$createClientPlugin.
|
|
1064
|
+
$this$createClientPlugin.j3x(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1064
1065
|
var tmp_2 = ReceiveHook_instance;
|
|
1065
|
-
$this$createClientPlugin.
|
|
1066
|
+
$this$createClientPlugin.j3x(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
1066
1067
|
if (okHttpFormat)
|
|
1067
1068
|
return Unit_instance;
|
|
1068
|
-
if (!level.
|
|
1069
|
+
if (!level.i59_1)
|
|
1069
1070
|
return Unit_instance;
|
|
1070
1071
|
var tmp_3 = get_ResponseObserver();
|
|
1071
|
-
var responseObserver = tmp_3.
|
|
1072
|
-
get_ResponseObserver().
|
|
1072
|
+
var responseObserver = tmp_3.h3q(Logging$lambda$lambda(level));
|
|
1073
|
+
get_ResponseObserver().i3q(responseObserver, $this$createClientPlugin.f3x_1);
|
|
1073
1074
|
return Unit_instance;
|
|
1074
1075
|
}
|
|
1075
1076
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
@@ -1077,18 +1078,18 @@
|
|
|
1077
1078
|
return it;
|
|
1078
1079
|
}
|
|
1079
1080
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1081
|
+
this.k5c_1 = $content;
|
|
1082
|
+
this.l5c_1 = $channel;
|
|
1082
1083
|
CoroutineImpl.call(this, resultContinuation);
|
|
1083
1084
|
}
|
|
1084
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1085
|
-
var tmp = this.
|
|
1085
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).x1w = function ($this$launch, $completion) {
|
|
1086
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
1086
1087
|
tmp.c9_1 = Unit_instance;
|
|
1087
1088
|
tmp.d9_1 = null;
|
|
1088
1089
|
return tmp.i9();
|
|
1089
1090
|
};
|
|
1090
1091
|
protoOf(Logging$lambda$logOutgoingContent$slambda).u9 = function (p1, $completion) {
|
|
1091
|
-
return this.
|
|
1092
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1092
1093
|
};
|
|
1093
1094
|
protoOf(Logging$lambda$logOutgoingContent$slambda).i9 = function () {
|
|
1094
1095
|
var suspendResult = this.c9_1;
|
|
@@ -1099,14 +1100,14 @@
|
|
|
1099
1100
|
case 0:
|
|
1100
1101
|
this.b9_1 = 2;
|
|
1101
1102
|
this.a9_1 = 1;
|
|
1102
|
-
suspendResult = this.
|
|
1103
|
+
suspendResult = this.k5c_1.p35(this.l5c_1, this);
|
|
1103
1104
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1104
1105
|
return suspendResult;
|
|
1105
1106
|
}
|
|
1106
1107
|
|
|
1107
1108
|
continue $sm;
|
|
1108
1109
|
case 1:
|
|
1109
|
-
this.
|
|
1110
|
+
this.l5c_1.l4();
|
|
1110
1111
|
return Unit_instance;
|
|
1111
1112
|
case 2:
|
|
1112
1113
|
throw this.d9_1;
|
|
@@ -1122,22 +1123,22 @@
|
|
|
1122
1123
|
}
|
|
1123
1124
|
while (true);
|
|
1124
1125
|
};
|
|
1125
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1126
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1127
|
-
i.
|
|
1126
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).y1w = function ($this$launch, completion) {
|
|
1127
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.k5c_1, this.l5c_1, completion);
|
|
1128
|
+
i.m5c_1 = $this$launch;
|
|
1128
1129
|
return i;
|
|
1129
1130
|
};
|
|
1130
1131
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1131
1132
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1132
1133
|
var l = function ($this$launch, $completion) {
|
|
1133
|
-
return i.
|
|
1134
|
+
return i.x1w($this$launch, $completion);
|
|
1134
1135
|
};
|
|
1135
1136
|
l.$arity = 1;
|
|
1136
1137
|
return l;
|
|
1137
1138
|
}
|
|
1138
1139
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1139
1140
|
_init_properties_Logging_kt__66pui5();
|
|
1140
|
-
return GZipEncoder_getInstance().
|
|
1141
|
+
return GZipEncoder_getInstance().g2n(channel);
|
|
1141
1142
|
}
|
|
1142
1143
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1143
1144
|
return function ($this$replaceResponse) {
|
|
@@ -1145,20 +1146,20 @@
|
|
|
1145
1146
|
};
|
|
1146
1147
|
}
|
|
1147
1148
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1148
|
-
this.
|
|
1149
|
-
this.
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1149
|
+
this.v5c_1 = $channel;
|
|
1150
|
+
this.w5c_1 = $charset;
|
|
1151
|
+
this.x5c_1 = $requestLog;
|
|
1152
|
+
this.y5c_1 = $logger;
|
|
1152
1153
|
CoroutineImpl.call(this, resultContinuation);
|
|
1153
1154
|
}
|
|
1154
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1155
|
-
var tmp = this.
|
|
1155
|
+
protoOf(Logging$lambda$logRequestBody$slambda).x1w = function ($this$launch, $completion) {
|
|
1156
|
+
var tmp = this.y1w($this$launch, $completion);
|
|
1156
1157
|
tmp.c9_1 = Unit_instance;
|
|
1157
1158
|
tmp.d9_1 = null;
|
|
1158
1159
|
return tmp.i9();
|
|
1159
1160
|
};
|
|
1160
1161
|
protoOf(Logging$lambda$logRequestBody$slambda).u9 = function (p1, $completion) {
|
|
1161
|
-
return this.
|
|
1162
|
+
return this.x1w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1162
1163
|
};
|
|
1163
1164
|
protoOf(Logging$lambda$logRequestBody$slambda).i9 = function () {
|
|
1164
1165
|
var suspendResult = this.c9_1;
|
|
@@ -1172,8 +1173,8 @@
|
|
|
1172
1173
|
continue $sm;
|
|
1173
1174
|
case 1:
|
|
1174
1175
|
this.b9_1 = 6;
|
|
1175
|
-
var tmp0 = this.
|
|
1176
|
-
this.
|
|
1176
|
+
var tmp0 = this.v5c_1;
|
|
1177
|
+
this.c5d_1 = this.w5c_1;
|
|
1177
1178
|
this.b9_1 = 3;
|
|
1178
1179
|
this.a9_1 = 2;
|
|
1179
1180
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1184,7 +1185,7 @@
|
|
|
1184
1185
|
continue $sm;
|
|
1185
1186
|
case 2:
|
|
1186
1187
|
var ARGUMENT = suspendResult;
|
|
1187
|
-
this.
|
|
1188
|
+
this.b5d_1 = readText(ARGUMENT, this.c5d_1);
|
|
1188
1189
|
this.b9_1 = 6;
|
|
1189
1190
|
this.a9_1 = 4;
|
|
1190
1191
|
continue $sm;
|
|
@@ -1194,7 +1195,7 @@
|
|
|
1194
1195
|
if (tmp_0 instanceof Error) {
|
|
1195
1196
|
var cause = this.d9_1;
|
|
1196
1197
|
var tmp_1 = this;
|
|
1197
|
-
tmp_1.
|
|
1198
|
+
tmp_1.b5d_1 = null;
|
|
1198
1199
|
this.a9_1 = 4;
|
|
1199
1200
|
continue $sm;
|
|
1200
1201
|
} else {
|
|
@@ -1203,27 +1204,27 @@
|
|
|
1203
1204
|
|
|
1204
1205
|
case 4:
|
|
1205
1206
|
this.b9_1 = 6;
|
|
1206
|
-
var tmp0_elvis_lhs = this.
|
|
1207
|
+
var tmp0_elvis_lhs = this.b5d_1;
|
|
1207
1208
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1208
|
-
var tmp0_0 = this.
|
|
1209
|
+
var tmp0_0 = this.x5c_1;
|
|
1209
1210
|
var value = 'BODY START';
|
|
1210
1211
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1212
|
+
this.x5c_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1213
|
+
this.a5d_1 = this.x5c_1.q('BODY END');
|
|
1213
1214
|
this.b9_1 = 7;
|
|
1214
1215
|
this.a9_1 = 5;
|
|
1215
1216
|
continue $sm;
|
|
1216
1217
|
case 5:
|
|
1217
|
-
this.
|
|
1218
|
+
this.a5d_1;
|
|
1218
1219
|
this.b9_1 = 7;
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1220
|
+
this.y5c_1.v57(this.x5c_1.toString());
|
|
1221
|
+
this.y5c_1.z57();
|
|
1221
1222
|
return Unit_instance;
|
|
1222
1223
|
case 6:
|
|
1223
1224
|
this.b9_1 = 7;
|
|
1224
1225
|
var t = this.d9_1;
|
|
1225
|
-
this.
|
|
1226
|
-
this.
|
|
1226
|
+
this.y5c_1.v57(this.x5c_1.toString());
|
|
1227
|
+
this.y5c_1.z57();
|
|
1227
1228
|
throw t;
|
|
1228
1229
|
case 7:
|
|
1229
1230
|
throw this.d9_1;
|
|
@@ -1239,15 +1240,15 @@
|
|
|
1239
1240
|
}
|
|
1240
1241
|
while (true);
|
|
1241
1242
|
};
|
|
1242
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1243
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1244
|
-
i.
|
|
1243
|
+
protoOf(Logging$lambda$logRequestBody$slambda).y1w = function ($this$launch, completion) {
|
|
1244
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.v5c_1, this.w5c_1, this.x5c_1, this.y5c_1, completion);
|
|
1245
|
+
i.z5c_1 = $this$launch;
|
|
1245
1246
|
return i;
|
|
1246
1247
|
};
|
|
1247
1248
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1248
1249
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1249
1250
|
var l = function ($this$launch, $completion) {
|
|
1250
|
-
return i.
|
|
1251
|
+
return i.x1w($this$launch, $completion);
|
|
1251
1252
|
};
|
|
1252
1253
|
l.$arity = 1;
|
|
1253
1254
|
return l;
|
|
@@ -1336,139 +1337,139 @@
|
|
|
1336
1337
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1337
1338
|
var requestLog = StringBuilder_init_$Create$();
|
|
1338
1339
|
// Inline function 'kotlin.text.appendLine' call
|
|
1339
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1340
|
+
var value = 'BODY Content-Type: ' + toString_0(content.h35());
|
|
1340
1341
|
// Inline function 'kotlin.text.appendLine' call
|
|
1341
1342
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1342
|
-
var tmp0_safe_receiver = content.
|
|
1343
|
+
var tmp0_safe_receiver = content.h35();
|
|
1343
1344
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1344
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1345
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp1_elvis_lhs;
|
|
1345
1346
|
var channel = new ByteChannel();
|
|
1346
1347
|
var tmp = GlobalScope_instance;
|
|
1347
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1348
|
+
var tmp_0 = Dispatchers_getInstance().i15_1.yg(MDCContext());
|
|
1348
1349
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1349
1350
|
return observe(content, channel, $completion);
|
|
1350
1351
|
}
|
|
1351
1352
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1352
|
-
if (level.
|
|
1353
|
-
logger.
|
|
1353
|
+
if (level.g59_1) {
|
|
1354
|
+
logger.b57('REQUEST ' + Url(context.c3p_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1354
1355
|
}
|
|
1355
1356
|
}
|
|
1356
1357
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1357
|
-
var tmp = request.
|
|
1358
|
+
var tmp = request.f3p_1;
|
|
1358
1359
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1359
1360
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1360
|
-
request.
|
|
1361
|
+
request.h3p_1.v2j(get_ClientCallLogger(), callLogger);
|
|
1361
1362
|
// Inline function 'kotlin.text.buildString' call
|
|
1362
1363
|
// Inline function 'kotlin.apply' call
|
|
1363
1364
|
var this_0 = StringBuilder_init_$Create$();
|
|
1364
|
-
if (level.
|
|
1365
|
+
if (level.g59_1) {
|
|
1365
1366
|
// Inline function 'kotlin.text.appendLine' call
|
|
1366
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1367
|
+
var value = 'REQUEST: ' + Url(request.c3p_1).toString();
|
|
1367
1368
|
// Inline function 'kotlin.text.appendLine' call
|
|
1368
1369
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1369
1370
|
// Inline function 'kotlin.text.appendLine' call
|
|
1370
|
-
var value_0 = 'METHOD: ' + request.
|
|
1371
|
+
var value_0 = 'METHOD: ' + request.d3p_1.toString();
|
|
1371
1372
|
// Inline function 'kotlin.text.appendLine' call
|
|
1372
1373
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1373
1374
|
}
|
|
1374
|
-
if (level.
|
|
1375
|
+
if (level.h59_1) {
|
|
1375
1376
|
// Inline function 'kotlin.text.appendLine' call
|
|
1376
1377
|
var value_1 = 'COMMON HEADERS';
|
|
1377
1378
|
// Inline function 'kotlin.text.appendLine' call
|
|
1378
1379
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1379
|
-
logHeaders(this_0, request.
|
|
1380
|
+
logHeaders(this_0, request.e3p_1.u2n(), sanitizedHeaders);
|
|
1380
1381
|
// Inline function 'kotlin.text.appendLine' call
|
|
1381
1382
|
var value_2 = 'CONTENT HEADERS';
|
|
1382
1383
|
// Inline function 'kotlin.text.appendLine' call
|
|
1383
1384
|
this_0.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
1384
|
-
var tmp$ret$
|
|
1385
|
+
var tmp$ret$11;
|
|
1385
1386
|
$l$block: {
|
|
1386
1387
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1387
1388
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1388
1389
|
while (_iterator__ex2g4s.u()) {
|
|
1389
1390
|
var element = _iterator__ex2g4s.v();
|
|
1390
|
-
if (element.
|
|
1391
|
-
tmp$ret$
|
|
1391
|
+
if (element.c5g_1('Content-Length')) {
|
|
1392
|
+
tmp$ret$11 = element;
|
|
1392
1393
|
break $l$block;
|
|
1393
1394
|
}
|
|
1394
1395
|
}
|
|
1395
|
-
tmp$ret$
|
|
1396
|
+
tmp$ret$11 = null;
|
|
1396
1397
|
}
|
|
1397
|
-
var tmp0_safe_receiver = tmp$ret$
|
|
1398
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1399
|
-
var tmp$ret$
|
|
1398
|
+
var tmp0_safe_receiver = tmp$ret$11;
|
|
1399
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b5g_1;
|
|
1400
|
+
var tmp$ret$13;
|
|
1400
1401
|
$l$block_0: {
|
|
1401
1402
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1402
1403
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1403
1404
|
while (_iterator__ex2g4s_0.u()) {
|
|
1404
1405
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1405
|
-
if (element_0.
|
|
1406
|
-
tmp$ret$
|
|
1406
|
+
if (element_0.c5g_1('Content-Type')) {
|
|
1407
|
+
tmp$ret$13 = element_0;
|
|
1407
1408
|
break $l$block_0;
|
|
1408
1409
|
}
|
|
1409
1410
|
}
|
|
1410
|
-
tmp$ret$
|
|
1411
|
+
tmp$ret$13 = null;
|
|
1411
1412
|
}
|
|
1412
|
-
var tmp1_safe_receiver = tmp$ret$
|
|
1413
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1414
|
-
var tmp2_safe_receiver = content.
|
|
1413
|
+
var tmp1_safe_receiver = tmp$ret$13;
|
|
1414
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.b5g_1;
|
|
1415
|
+
var tmp2_safe_receiver = content.j35();
|
|
1415
1416
|
if (tmp2_safe_receiver == null)
|
|
1416
1417
|
null;
|
|
1417
1418
|
else {
|
|
1418
1419
|
// Inline function 'kotlin.let' call
|
|
1419
1420
|
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1420
1421
|
}
|
|
1421
|
-
var tmp3_safe_receiver = content.
|
|
1422
|
+
var tmp3_safe_receiver = content.h35();
|
|
1422
1423
|
if (tmp3_safe_receiver == null)
|
|
1423
1424
|
null;
|
|
1424
1425
|
else {
|
|
1425
1426
|
// Inline function 'kotlin.let' call
|
|
1426
1427
|
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1427
1428
|
}
|
|
1428
|
-
logHeaders(this_0, content.
|
|
1429
|
+
logHeaders(this_0, content.j2z().u2n(), sanitizedHeaders);
|
|
1429
1430
|
}
|
|
1430
1431
|
var message = this_0.toString();
|
|
1431
1432
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1432
1433
|
if (charSequenceLength(message) > 0) {
|
|
1433
|
-
callLogger.
|
|
1434
|
+
callLogger.v57(message);
|
|
1434
1435
|
}
|
|
1435
1436
|
var tmp_0;
|
|
1436
1437
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1437
1438
|
if (charSequenceLength(message) === 0) {
|
|
1438
1439
|
tmp_0 = true;
|
|
1439
1440
|
} else {
|
|
1440
|
-
tmp_0 = !level.
|
|
1441
|
+
tmp_0 = !level.i59_1;
|
|
1441
1442
|
}
|
|
1442
1443
|
if (tmp_0) {
|
|
1443
|
-
callLogger.
|
|
1444
|
+
callLogger.z57();
|
|
1444
1445
|
return null;
|
|
1445
1446
|
}
|
|
1446
1447
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1447
1448
|
}
|
|
1448
1449
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1449
|
-
if (!level.
|
|
1450
|
+
if (!level.g59_1)
|
|
1450
1451
|
return Unit_instance;
|
|
1451
|
-
log.q('RESPONSE ' + request.
|
|
1452
|
+
log.q('RESPONSE ' + request.t3q().toString() + ' failed with exception: ' + cause.toString());
|
|
1452
1453
|
}
|
|
1453
1454
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1455
|
+
this.l5g_1 = $okHttpFormat;
|
|
1456
|
+
this.m5g_1 = $logger;
|
|
1457
|
+
this.n5g_1 = $filters;
|
|
1458
|
+
this.o5g_1 = $sanitizedHeaders;
|
|
1459
|
+
this.p5g_1 = $level;
|
|
1460
|
+
this.q5g_1 = $this_createClientPlugin;
|
|
1461
|
+
this.r5g_1 = $bodyFilter;
|
|
1461
1462
|
CoroutineImpl.call(this, resultContinuation);
|
|
1462
1463
|
}
|
|
1463
|
-
protoOf(Logging$lambda$slambda).
|
|
1464
|
-
var tmp = this.
|
|
1464
|
+
protoOf(Logging$lambda$slambda).a5h = function ($this$on, request, $completion) {
|
|
1465
|
+
var tmp = this.b5h($this$on, request, $completion);
|
|
1465
1466
|
tmp.c9_1 = Unit_instance;
|
|
1466
1467
|
tmp.d9_1 = null;
|
|
1467
1468
|
return tmp.i9();
|
|
1468
1469
|
};
|
|
1469
1470
|
protoOf(Logging$lambda$slambda).v9 = function (p1, p2, $completion) {
|
|
1470
1471
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1471
|
-
return this.
|
|
1472
|
+
return this.a5h(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1472
1473
|
};
|
|
1473
1474
|
protoOf(Logging$lambda$slambda).i9 = function () {
|
|
1474
1475
|
var suspendResult = this.c9_1;
|
|
@@ -1478,16 +1479,16 @@
|
|
|
1478
1479
|
switch (tmp) {
|
|
1479
1480
|
case 0:
|
|
1480
1481
|
this.b9_1 = 16;
|
|
1481
|
-
if (!invoke$shouldBeLogged(this.
|
|
1482
|
-
this.
|
|
1482
|
+
if (!invoke$shouldBeLogged(this.n5g_1, this.t5g_1)) {
|
|
1483
|
+
this.t5g_1.h3p_1.v2j(get_DisableLogging(), Unit_instance);
|
|
1483
1484
|
return Unit_instance;
|
|
1484
1485
|
}
|
|
1485
1486
|
|
|
1486
|
-
if (this.
|
|
1487
|
+
if (this.l5g_1) {
|
|
1487
1488
|
var tmp_0 = this;
|
|
1488
|
-
tmp_0.
|
|
1489
|
+
tmp_0.w5g_1 = ArrayList_init_$Create$();
|
|
1489
1490
|
this.a9_1 = 10;
|
|
1490
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1491
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.o5g_1, this.p5g_1, this.q5g_1, this.r5g_1, this.t5g_1, this.w5g_1, this);
|
|
1491
1492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1492
1493
|
return suspendResult;
|
|
1493
1494
|
}
|
|
@@ -1500,14 +1501,14 @@
|
|
|
1500
1501
|
case 1:
|
|
1501
1502
|
this.b9_1 = 3;
|
|
1502
1503
|
this.a9_1 = 2;
|
|
1503
|
-
suspendResult = invoke$logRequest(this.
|
|
1504
|
+
suspendResult = invoke$logRequest(this.m5g_1, this.p5g_1, this.o5g_1, this.t5g_1, this);
|
|
1504
1505
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1505
1506
|
return suspendResult;
|
|
1506
1507
|
}
|
|
1507
1508
|
|
|
1508
1509
|
continue $sm;
|
|
1509
1510
|
case 2:
|
|
1510
|
-
this.
|
|
1511
|
+
this.z5g_1 = suspendResult;
|
|
1511
1512
|
this.b9_1 = 16;
|
|
1512
1513
|
this.a9_1 = 4;
|
|
1513
1514
|
continue $sm;
|
|
@@ -1517,7 +1518,7 @@
|
|
|
1517
1518
|
if (tmp_1 instanceof Error) {
|
|
1518
1519
|
var _unused_var__etf5q3 = this.d9_1;
|
|
1519
1520
|
var tmp_2 = this;
|
|
1520
|
-
tmp_2.
|
|
1521
|
+
tmp_2.z5g_1 = null;
|
|
1521
1522
|
this.a9_1 = 4;
|
|
1522
1523
|
continue $sm;
|
|
1523
1524
|
} else {
|
|
@@ -1526,23 +1527,23 @@
|
|
|
1526
1527
|
|
|
1527
1528
|
case 4:
|
|
1528
1529
|
this.b9_1 = 16;
|
|
1529
|
-
this.
|
|
1530
|
-
this.
|
|
1530
|
+
this.y5g_1 = this.z5g_1;
|
|
1531
|
+
this.x5g_1 = Unit_instance;
|
|
1531
1532
|
this.a9_1 = 5;
|
|
1532
1533
|
continue $sm;
|
|
1533
1534
|
case 5:
|
|
1534
1535
|
this.b9_1 = 8;
|
|
1535
1536
|
this.b9_1 = 7;
|
|
1536
1537
|
this.a9_1 = 6;
|
|
1537
|
-
var tmp0_elvis_lhs = this.
|
|
1538
|
-
suspendResult = this.
|
|
1538
|
+
var tmp0_elvis_lhs = this.y5g_1;
|
|
1539
|
+
suspendResult = this.s5g_1.z59(tmp0_elvis_lhs == null ? this.t5g_1.f3p_1 : tmp0_elvis_lhs, this);
|
|
1539
1540
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1540
1541
|
return suspendResult;
|
|
1541
1542
|
}
|
|
1542
1543
|
|
|
1543
1544
|
continue $sm;
|
|
1544
1545
|
case 6:
|
|
1545
|
-
this.
|
|
1546
|
+
this.x5g_1 = suspendResult;
|
|
1546
1547
|
this.b9_1 = 16;
|
|
1547
1548
|
this.a9_1 = 9;
|
|
1548
1549
|
continue $sm;
|
|
@@ -1552,7 +1553,7 @@
|
|
|
1552
1553
|
if (tmp_3 instanceof Error) {
|
|
1553
1554
|
var cause = this.d9_1;
|
|
1554
1555
|
var tmp_4 = this;
|
|
1555
|
-
invoke$logRequestException(this.
|
|
1556
|
+
invoke$logRequestException(this.p5g_1, this.m5g_1, this.t5g_1, cause);
|
|
1556
1557
|
throw cause;
|
|
1557
1558
|
} else {
|
|
1558
1559
|
throw this.d9_1;
|
|
@@ -1563,26 +1564,26 @@
|
|
|
1563
1564
|
var t = this.d9_1;
|
|
1564
1565
|
throw t;
|
|
1565
1566
|
case 9:
|
|
1566
|
-
this.
|
|
1567
|
+
this.x5g_1;
|
|
1567
1568
|
this.b9_1 = 16;
|
|
1568
1569
|
return Unit_instance;
|
|
1569
1570
|
case 10:
|
|
1570
1571
|
var content = suspendResult;
|
|
1571
|
-
if (this.
|
|
1572
|
-
this.
|
|
1572
|
+
if (this.w5g_1.l1() > 0) {
|
|
1573
|
+
this.m5g_1.b57(joinToString(this.w5g_1, '\n'));
|
|
1573
1574
|
}
|
|
1574
1575
|
|
|
1575
1576
|
this.b9_1 = 14;
|
|
1576
1577
|
if (!(content == null)) {
|
|
1577
1578
|
this.a9_1 = 12;
|
|
1578
|
-
suspendResult = this.
|
|
1579
|
+
suspendResult = this.s5g_1.z59(content, this);
|
|
1579
1580
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1580
1581
|
return suspendResult;
|
|
1581
1582
|
}
|
|
1582
1583
|
continue $sm;
|
|
1583
1584
|
} else {
|
|
1584
1585
|
this.a9_1 = 11;
|
|
1585
|
-
suspendResult = this.
|
|
1586
|
+
suspendResult = this.s5g_1.a5a(this);
|
|
1586
1587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1587
1588
|
return suspendResult;
|
|
1588
1589
|
}
|
|
@@ -1590,15 +1591,15 @@
|
|
|
1590
1591
|
}
|
|
1591
1592
|
|
|
1592
1593
|
case 11:
|
|
1593
|
-
this.
|
|
1594
|
+
this.v5g_1 = suspendResult;
|
|
1594
1595
|
this.a9_1 = 13;
|
|
1595
1596
|
continue $sm;
|
|
1596
1597
|
case 12:
|
|
1597
|
-
this.
|
|
1598
|
+
this.v5g_1 = suspendResult;
|
|
1598
1599
|
this.a9_1 = 13;
|
|
1599
1600
|
continue $sm;
|
|
1600
1601
|
case 13:
|
|
1601
|
-
this.
|
|
1602
|
+
this.u5g_1 = this.v5g_1;
|
|
1602
1603
|
this.b9_1 = 16;
|
|
1603
1604
|
this.a9_1 = 15;
|
|
1604
1605
|
continue $sm;
|
|
@@ -1608,7 +1609,7 @@
|
|
|
1608
1609
|
if (tmp_5 instanceof Error) {
|
|
1609
1610
|
var cause_0 = this.d9_1;
|
|
1610
1611
|
var tmp_6 = this;
|
|
1611
|
-
this.
|
|
1612
|
+
this.m5g_1.b57('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1612
1613
|
throw cause_0;
|
|
1613
1614
|
} else {
|
|
1614
1615
|
throw this.d9_1;
|
|
@@ -1631,37 +1632,37 @@
|
|
|
1631
1632
|
}
|
|
1632
1633
|
while (true);
|
|
1633
1634
|
};
|
|
1634
|
-
protoOf(Logging$lambda$slambda).
|
|
1635
|
-
var i = new Logging$lambda$slambda(this.
|
|
1636
|
-
i.
|
|
1637
|
-
i.
|
|
1635
|
+
protoOf(Logging$lambda$slambda).b5h = function ($this$on, request, completion) {
|
|
1636
|
+
var i = new Logging$lambda$slambda(this.l5g_1, this.m5g_1, this.n5g_1, this.o5g_1, this.p5g_1, this.q5g_1, this.r5g_1, completion);
|
|
1637
|
+
i.s5g_1 = $this$on;
|
|
1638
|
+
i.t5g_1 = request;
|
|
1638
1639
|
return i;
|
|
1639
1640
|
};
|
|
1640
1641
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1641
1642
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1642
1643
|
var l = function ($this$on, request, $completion) {
|
|
1643
|
-
return i.
|
|
1644
|
+
return i.a5h($this$on, request, $completion);
|
|
1644
1645
|
};
|
|
1645
1646
|
l.$arity = 2;
|
|
1646
1647
|
return l;
|
|
1647
1648
|
}
|
|
1648
1649
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1650
|
+
this.k5h_1 = $okHttpFormat;
|
|
1651
|
+
this.l5h_1 = $logger;
|
|
1652
|
+
this.m5h_1 = $sanitizedHeaders;
|
|
1653
|
+
this.n5h_1 = $level;
|
|
1654
|
+
this.o5h_1 = $bodyFilter;
|
|
1654
1655
|
CoroutineImpl.call(this, resultContinuation);
|
|
1655
1656
|
}
|
|
1656
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1657
|
-
var tmp = this.
|
|
1657
|
+
protoOf(Logging$lambda$slambda_1).s5h = function ($this$on, response, $completion) {
|
|
1658
|
+
var tmp = this.t5h($this$on, response, $completion);
|
|
1658
1659
|
tmp.c9_1 = Unit_instance;
|
|
1659
1660
|
tmp.d9_1 = null;
|
|
1660
1661
|
return tmp.i9();
|
|
1661
1662
|
};
|
|
1662
1663
|
protoOf(Logging$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
1663
1664
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1664
|
-
return this.
|
|
1665
|
+
return this.s5h(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1665
1666
|
};
|
|
1666
1667
|
protoOf(Logging$lambda$slambda_1).i9 = function () {
|
|
1667
1668
|
var suspendResult = this.c9_1;
|
|
@@ -1671,11 +1672,11 @@
|
|
|
1671
1672
|
switch (tmp) {
|
|
1672
1673
|
case 0:
|
|
1673
1674
|
this.b9_1 = 5;
|
|
1674
|
-
if (this.
|
|
1675
|
+
if (this.k5h_1) {
|
|
1675
1676
|
var tmp_0 = this;
|
|
1676
|
-
tmp_0.
|
|
1677
|
+
tmp_0.r5h_1 = ArrayList_init_$Create$();
|
|
1677
1678
|
this.a9_1 = 1;
|
|
1678
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1679
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.m5h_1, this.n5h_1, this.o5h_1, this.q5h_1, this.r5h_1, this);
|
|
1679
1680
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1680
1681
|
return suspendResult;
|
|
1681
1682
|
}
|
|
@@ -1687,13 +1688,13 @@
|
|
|
1687
1688
|
|
|
1688
1689
|
case 1:
|
|
1689
1690
|
var newResponse = suspendResult;
|
|
1690
|
-
if (this.
|
|
1691
|
-
this.
|
|
1691
|
+
if (this.r5h_1.l1() > 0) {
|
|
1692
|
+
this.l5h_1.b57(joinToString(this.r5h_1, '\n'));
|
|
1692
1693
|
}
|
|
1693
1694
|
|
|
1694
|
-
if (!equals(newResponse, this.
|
|
1695
|
+
if (!equals(newResponse, this.q5h_1)) {
|
|
1695
1696
|
this.a9_1 = 2;
|
|
1696
|
-
suspendResult = this.
|
|
1697
|
+
suspendResult = this.p5h_1.l4l(newResponse, this);
|
|
1697
1698
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1698
1699
|
return suspendResult;
|
|
1699
1700
|
}
|
|
@@ -1725,35 +1726,35 @@
|
|
|
1725
1726
|
}
|
|
1726
1727
|
while (true);
|
|
1727
1728
|
};
|
|
1728
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1729
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1730
|
-
i.
|
|
1731
|
-
i.
|
|
1729
|
+
protoOf(Logging$lambda$slambda_1).t5h = function ($this$on, response, completion) {
|
|
1730
|
+
var i = new Logging$lambda$slambda_1(this.k5h_1, this.l5h_1, this.m5h_1, this.n5h_1, this.o5h_1, completion);
|
|
1731
|
+
i.p5h_1 = $this$on;
|
|
1732
|
+
i.q5h_1 = response;
|
|
1732
1733
|
return i;
|
|
1733
1734
|
};
|
|
1734
1735
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1735
1736
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1736
1737
|
var l = function ($this$on, response, $completion) {
|
|
1737
|
-
return i.
|
|
1738
|
+
return i.s5h($this$on, response, $completion);
|
|
1738
1739
|
};
|
|
1739
1740
|
l.$arity = 2;
|
|
1740
1741
|
return l;
|
|
1741
1742
|
}
|
|
1742
1743
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1743
|
-
this.
|
|
1744
|
-
this.
|
|
1745
|
-
this.
|
|
1744
|
+
this.c5i_1 = $okHttpFormat;
|
|
1745
|
+
this.d5i_1 = $level;
|
|
1746
|
+
this.e5i_1 = $sanitizedHeaders;
|
|
1746
1747
|
CoroutineImpl.call(this, resultContinuation);
|
|
1747
1748
|
}
|
|
1748
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1749
|
-
var tmp = this.
|
|
1749
|
+
protoOf(Logging$lambda$slambda_3).n5i = function ($this$on, response, $completion) {
|
|
1750
|
+
var tmp = this.o5i($this$on, response, $completion);
|
|
1750
1751
|
tmp.c9_1 = Unit_instance;
|
|
1751
1752
|
tmp.d9_1 = null;
|
|
1752
1753
|
return tmp.i9();
|
|
1753
1754
|
};
|
|
1754
1755
|
protoOf(Logging$lambda$slambda_3).v9 = function (p1, p2, $completion) {
|
|
1755
1756
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1756
|
-
return this.
|
|
1757
|
+
return this.n5i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1757
1758
|
};
|
|
1758
1759
|
protoOf(Logging$lambda$slambda_3).i9 = function () {
|
|
1759
1760
|
var suspendResult = this.c9_1;
|
|
@@ -1763,28 +1764,28 @@
|
|
|
1763
1764
|
switch (tmp) {
|
|
1764
1765
|
case 0:
|
|
1765
1766
|
this.b9_1 = 14;
|
|
1766
|
-
if (this.
|
|
1767
|
+
if (this.c5i_1)
|
|
1767
1768
|
return Unit_instance;
|
|
1768
|
-
if (this.
|
|
1769
|
+
if (this.d5i_1.equals(LogLevel_NONE_getInstance()) || this.g5i_1.r3q().l3q().u2j(get_DisableLogging()))
|
|
1769
1770
|
return Unit_instance;
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1771
|
+
this.i5i_1 = this.g5i_1.r3q().l3q().s2j(get_ClientCallLogger());
|
|
1772
|
+
this.k5i_1 = StringBuilder_init_$Create$();
|
|
1773
|
+
this.j5i_1 = false;
|
|
1773
1774
|
this.a9_1 = 1;
|
|
1774
1775
|
continue $sm;
|
|
1775
1776
|
case 1:
|
|
1776
1777
|
this.b9_1 = 4;
|
|
1777
1778
|
this.b9_1 = 3;
|
|
1778
|
-
logResponseHeader(this.
|
|
1779
|
+
logResponseHeader(this.k5i_1, this.g5i_1.r3q().c3o(), this.d5i_1, this.e5i_1);
|
|
1779
1780
|
this.a9_1 = 2;
|
|
1780
|
-
suspendResult = this.
|
|
1781
|
+
suspendResult = this.f5i_1.b5b(this);
|
|
1781
1782
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1782
1783
|
return suspendResult;
|
|
1783
1784
|
}
|
|
1784
1785
|
|
|
1785
1786
|
continue $sm;
|
|
1786
1787
|
case 2:
|
|
1787
|
-
this.
|
|
1788
|
+
this.l5i_1 = suspendResult;
|
|
1788
1789
|
this.b9_1 = 14;
|
|
1789
1790
|
this.a9_1 = 9;
|
|
1790
1791
|
continue $sm;
|
|
@@ -1794,8 +1795,8 @@
|
|
|
1794
1795
|
if (tmp_0 instanceof Error) {
|
|
1795
1796
|
var cause = this.d9_1;
|
|
1796
1797
|
var tmp_1 = this;
|
|
1797
|
-
invoke$logResponseException(this.
|
|
1798
|
-
this.
|
|
1798
|
+
invoke$logResponseException(this.d5i_1, this.k5i_1, this.g5i_1.r3q().k3q(), cause);
|
|
1799
|
+
this.j5i_1 = true;
|
|
1799
1800
|
throw cause;
|
|
1800
1801
|
} else {
|
|
1801
1802
|
throw this.d9_1;
|
|
@@ -1803,19 +1804,19 @@
|
|
|
1803
1804
|
|
|
1804
1805
|
case 4:
|
|
1805
1806
|
this.b9_1 = 14;
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1808
|
-
if (this.
|
|
1807
|
+
this.m5i_1 = this.d9_1;
|
|
1808
|
+
this.i5i_1.w57(this.k5i_1.toString());
|
|
1809
|
+
if (this.j5i_1 || !this.d5i_1.i59_1) {
|
|
1809
1810
|
this.a9_1 = 7;
|
|
1810
|
-
suspendResult = this.
|
|
1811
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1811
1812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1812
1813
|
return suspendResult;
|
|
1813
1814
|
}
|
|
1814
1815
|
continue $sm;
|
|
1815
1816
|
} else {
|
|
1816
|
-
if (this.
|
|
1817
|
+
if (this.d5i_1.i59_1 && get_isSaved(this.g5i_1)) {
|
|
1817
1818
|
this.a9_1 = 5;
|
|
1818
|
-
suspendResult = logResponseBody(this.
|
|
1819
|
+
suspendResult = logResponseBody(this.i5i_1, this.g5i_1, this);
|
|
1819
1820
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1820
1821
|
return suspendResult;
|
|
1821
1822
|
}
|
|
@@ -1828,7 +1829,7 @@
|
|
|
1828
1829
|
|
|
1829
1830
|
case 5:
|
|
1830
1831
|
this.a9_1 = 6;
|
|
1831
|
-
suspendResult = this.
|
|
1832
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1832
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1833
1834
|
return suspendResult;
|
|
1834
1835
|
}
|
|
@@ -1841,22 +1842,22 @@
|
|
|
1841
1842
|
this.a9_1 = 8;
|
|
1842
1843
|
continue $sm;
|
|
1843
1844
|
case 8:
|
|
1844
|
-
throw this.
|
|
1845
|
+
throw this.m5i_1;
|
|
1845
1846
|
case 9:
|
|
1846
|
-
this.
|
|
1847
|
+
this.h5i_1 = this.l5i_1;
|
|
1847
1848
|
this.b9_1 = 14;
|
|
1848
|
-
this.
|
|
1849
|
-
if (this.
|
|
1849
|
+
this.i5i_1.w57(this.k5i_1.toString());
|
|
1850
|
+
if (this.j5i_1 || !this.d5i_1.i59_1) {
|
|
1850
1851
|
this.a9_1 = 12;
|
|
1851
|
-
suspendResult = this.
|
|
1852
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1852
1853
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1853
1854
|
return suspendResult;
|
|
1854
1855
|
}
|
|
1855
1856
|
continue $sm;
|
|
1856
1857
|
} else {
|
|
1857
|
-
if (this.
|
|
1858
|
+
if (this.d5i_1.i59_1 && get_isSaved(this.g5i_1)) {
|
|
1858
1859
|
this.a9_1 = 10;
|
|
1859
|
-
suspendResult = logResponseBody(this.
|
|
1860
|
+
suspendResult = logResponseBody(this.i5i_1, this.g5i_1, this);
|
|
1860
1861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1861
1862
|
return suspendResult;
|
|
1862
1863
|
}
|
|
@@ -1869,7 +1870,7 @@
|
|
|
1869
1870
|
|
|
1870
1871
|
case 10:
|
|
1871
1872
|
this.a9_1 = 11;
|
|
1872
|
-
suspendResult = this.
|
|
1873
|
+
suspendResult = this.i5i_1.a58(this);
|
|
1873
1874
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1874
1875
|
return suspendResult;
|
|
1875
1876
|
}
|
|
@@ -1897,34 +1898,34 @@
|
|
|
1897
1898
|
}
|
|
1898
1899
|
while (true);
|
|
1899
1900
|
};
|
|
1900
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1901
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1902
|
-
i.
|
|
1903
|
-
i.
|
|
1901
|
+
protoOf(Logging$lambda$slambda_3).o5i = function ($this$on, response, completion) {
|
|
1902
|
+
var i = new Logging$lambda$slambda_3(this.c5i_1, this.d5i_1, this.e5i_1, completion);
|
|
1903
|
+
i.f5i_1 = $this$on;
|
|
1904
|
+
i.g5i_1 = response;
|
|
1904
1905
|
return i;
|
|
1905
1906
|
};
|
|
1906
1907
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1907
1908
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1908
1909
|
var l = function ($this$on, response, $completion) {
|
|
1909
|
-
return i.
|
|
1910
|
+
return i.n5i($this$on, response, $completion);
|
|
1910
1911
|
};
|
|
1911
1912
|
l.$arity = 2;
|
|
1912
1913
|
return l;
|
|
1913
1914
|
}
|
|
1914
1915
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1916
|
+
this.x5i_1 = $okHttpFormat;
|
|
1917
|
+
this.y5i_1 = $level;
|
|
1917
1918
|
CoroutineImpl.call(this, resultContinuation);
|
|
1918
1919
|
}
|
|
1919
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1920
|
-
var tmp = this.
|
|
1920
|
+
protoOf(Logging$lambda$slambda_5).e5j = function ($this$on, call, $completion) {
|
|
1921
|
+
var tmp = this.f5j($this$on, call, $completion);
|
|
1921
1922
|
tmp.c9_1 = Unit_instance;
|
|
1922
1923
|
tmp.d9_1 = null;
|
|
1923
1924
|
return tmp.i9();
|
|
1924
1925
|
};
|
|
1925
1926
|
protoOf(Logging$lambda$slambda_5).v9 = function (p1, p2, $completion) {
|
|
1926
1927
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1927
|
-
return this.
|
|
1928
|
+
return this.e5j(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1928
1929
|
};
|
|
1929
1930
|
protoOf(Logging$lambda$slambda_5).i9 = function () {
|
|
1930
1931
|
var suspendResult = this.c9_1;
|
|
@@ -1934,22 +1935,22 @@
|
|
|
1934
1935
|
switch (tmp) {
|
|
1935
1936
|
case 0:
|
|
1936
1937
|
this.b9_1 = 6;
|
|
1937
|
-
if (this.
|
|
1938
|
+
if (this.x5i_1)
|
|
1938
1939
|
return Unit_instance;
|
|
1939
|
-
if (this.
|
|
1940
|
+
if (this.y5i_1.equals(LogLevel_NONE_getInstance()) || this.a5j_1.l3q().u2j(get_DisableLogging())) {
|
|
1940
1941
|
return Unit_instance;
|
|
1941
1942
|
}
|
|
1942
1943
|
|
|
1943
1944
|
this.b9_1 = 2;
|
|
1944
1945
|
this.a9_1 = 1;
|
|
1945
|
-
suspendResult = this.
|
|
1946
|
+
suspendResult = this.z5i_1.p5b(this);
|
|
1946
1947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
1948
|
return suspendResult;
|
|
1948
1949
|
}
|
|
1949
1950
|
|
|
1950
1951
|
continue $sm;
|
|
1951
1952
|
case 1:
|
|
1952
|
-
this.
|
|
1953
|
+
this.b5j_1 = suspendResult;
|
|
1953
1954
|
this.b9_1 = 6;
|
|
1954
1955
|
this.a9_1 = 5;
|
|
1955
1956
|
continue $sm;
|
|
@@ -1957,12 +1958,12 @@
|
|
|
1957
1958
|
this.b9_1 = 6;
|
|
1958
1959
|
var tmp_0 = this.d9_1;
|
|
1959
1960
|
if (tmp_0 instanceof Error) {
|
|
1960
|
-
this.
|
|
1961
|
+
this.c5j_1 = this.d9_1;
|
|
1961
1962
|
var log = StringBuilder_init_$Create$();
|
|
1962
|
-
this.
|
|
1963
|
-
invoke$logResponseException(this.
|
|
1963
|
+
this.d5j_1 = this.a5j_1.l3q().s2j(get_ClientCallLogger());
|
|
1964
|
+
invoke$logResponseException(this.y5i_1, log, this.a5j_1.k3q(), this.c5j_1);
|
|
1964
1965
|
this.a9_1 = 3;
|
|
1965
|
-
suspendResult = this.
|
|
1966
|
+
suspendResult = this.d5j_1.x57(log.toString(), this);
|
|
1966
1967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1967
1968
|
return suspendResult;
|
|
1968
1969
|
}
|
|
@@ -1973,7 +1974,7 @@
|
|
|
1973
1974
|
|
|
1974
1975
|
case 3:
|
|
1975
1976
|
this.a9_1 = 4;
|
|
1976
|
-
suspendResult = this.
|
|
1977
|
+
suspendResult = this.d5j_1.a58(this);
|
|
1977
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1978
1979
|
return suspendResult;
|
|
1979
1980
|
}
|
|
@@ -1981,7 +1982,7 @@
|
|
|
1981
1982
|
continue $sm;
|
|
1982
1983
|
case 4:
|
|
1983
1984
|
var tmp_1 = this;
|
|
1984
|
-
throw this.
|
|
1985
|
+
throw this.c5j_1;
|
|
1985
1986
|
case 5:
|
|
1986
1987
|
this.b9_1 = 6;
|
|
1987
1988
|
return Unit_instance;
|
|
@@ -1999,36 +2000,36 @@
|
|
|
1999
2000
|
}
|
|
2000
2001
|
while (true);
|
|
2001
2002
|
};
|
|
2002
|
-
protoOf(Logging$lambda$slambda_5).
|
|
2003
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
2004
|
-
i.
|
|
2005
|
-
i.
|
|
2003
|
+
protoOf(Logging$lambda$slambda_5).f5j = function ($this$on, call, completion) {
|
|
2004
|
+
var i = new Logging$lambda$slambda_5(this.x5i_1, this.y5i_1, completion);
|
|
2005
|
+
i.z5i_1 = $this$on;
|
|
2006
|
+
i.a5j_1 = call;
|
|
2006
2007
|
return i;
|
|
2007
2008
|
};
|
|
2008
2009
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
2009
2010
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
2010
2011
|
var l = function ($this$on, call, $completion) {
|
|
2011
|
-
return i.
|
|
2012
|
+
return i.e5j($this$on, call, $completion);
|
|
2012
2013
|
};
|
|
2013
2014
|
l.$arity = 2;
|
|
2014
2015
|
return l;
|
|
2015
2016
|
}
|
|
2016
2017
|
function Logging$lambda$lambda$lambda(it) {
|
|
2017
2018
|
_init_properties_Logging_kt__66pui5();
|
|
2018
|
-
return !get_isSaved(it.
|
|
2019
|
+
return !get_isSaved(it.c3o());
|
|
2019
2020
|
}
|
|
2020
2021
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
2021
|
-
this.
|
|
2022
|
+
this.o5j_1 = $level;
|
|
2022
2023
|
CoroutineImpl.call(this, resultContinuation);
|
|
2023
2024
|
}
|
|
2024
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2025
|
-
var tmp = this.
|
|
2025
|
+
protoOf(Logging$lambda$lambda$slambda).t3z = function (response, $completion) {
|
|
2026
|
+
var tmp = this.g3y(response, $completion);
|
|
2026
2027
|
tmp.c9_1 = Unit_instance;
|
|
2027
2028
|
tmp.d9_1 = null;
|
|
2028
2029
|
return tmp.i9();
|
|
2029
2030
|
};
|
|
2030
2031
|
protoOf(Logging$lambda$lambda$slambda).u9 = function (p1, $completion) {
|
|
2031
|
-
return this.
|
|
2032
|
+
return this.t3z(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2032
2033
|
};
|
|
2033
2034
|
protoOf(Logging$lambda$lambda$slambda).i9 = function () {
|
|
2034
2035
|
var suspendResult = this.c9_1;
|
|
@@ -2038,11 +2039,11 @@
|
|
|
2038
2039
|
switch (tmp) {
|
|
2039
2040
|
case 0:
|
|
2040
2041
|
this.b9_1 = 3;
|
|
2041
|
-
if (this.
|
|
2042
|
+
if (this.o5j_1.equals(LogLevel_NONE_getInstance()) || this.p5j_1.r3q().l3q().u2j(get_DisableLogging()))
|
|
2042
2043
|
return Unit_instance;
|
|
2043
|
-
this.
|
|
2044
|
+
this.q5j_1 = this.p5j_1.r3q().l3q().s2j(get_ClientCallLogger());
|
|
2044
2045
|
this.a9_1 = 1;
|
|
2045
|
-
suspendResult = logResponseBody(this.
|
|
2046
|
+
suspendResult = logResponseBody(this.q5j_1, this.p5j_1, this);
|
|
2046
2047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2047
2048
|
return suspendResult;
|
|
2048
2049
|
}
|
|
@@ -2050,7 +2051,7 @@
|
|
|
2050
2051
|
continue $sm;
|
|
2051
2052
|
case 1:
|
|
2052
2053
|
this.a9_1 = 2;
|
|
2053
|
-
suspendResult = this.
|
|
2054
|
+
suspendResult = this.q5j_1.a58(this);
|
|
2054
2055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2055
2056
|
return suspendResult;
|
|
2056
2057
|
}
|
|
@@ -2072,36 +2073,36 @@
|
|
|
2072
2073
|
}
|
|
2073
2074
|
while (true);
|
|
2074
2075
|
};
|
|
2075
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2076
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
2077
|
-
i.
|
|
2076
|
+
protoOf(Logging$lambda$lambda$slambda).g3y = function (response, completion) {
|
|
2077
|
+
var i = new Logging$lambda$lambda$slambda(this.o5j_1, completion);
|
|
2078
|
+
i.p5j_1 = response;
|
|
2078
2079
|
return i;
|
|
2079
2080
|
};
|
|
2080
2081
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2081
2082
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2082
2083
|
var l = function (response, $completion) {
|
|
2083
|
-
return i.
|
|
2084
|
+
return i.t3z(response, $completion);
|
|
2084
2085
|
};
|
|
2085
2086
|
l.$arity = 1;
|
|
2086
2087
|
return l;
|
|
2087
2088
|
}
|
|
2088
2089
|
function Logging$lambda$lambda($level) {
|
|
2089
2090
|
return function ($this$prepare) {
|
|
2090
|
-
$this$prepare.
|
|
2091
|
-
$this$prepare.
|
|
2091
|
+
$this$prepare.j4l(Logging$lambda$lambda$lambda);
|
|
2092
|
+
$this$prepare.i4l(Logging$lambda$lambda$slambda_0($level, null));
|
|
2092
2093
|
return Unit_instance;
|
|
2093
2094
|
};
|
|
2094
2095
|
}
|
|
2095
2096
|
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2096
2097
|
CoroutineImpl.call(this, resultContinuation);
|
|
2097
|
-
this.
|
|
2098
|
-
this.
|
|
2099
|
-
this.
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2103
|
-
this.
|
|
2104
|
-
this.
|
|
2098
|
+
this.l5d_1 = bodyFilter;
|
|
2099
|
+
this.m5d_1 = url;
|
|
2100
|
+
this.n5d_1 = content;
|
|
2101
|
+
this.o5d_1 = contentLength;
|
|
2102
|
+
this.p5d_1 = headers;
|
|
2103
|
+
this.q5d_1 = method;
|
|
2104
|
+
this.r5d_1 = logLines;
|
|
2105
|
+
this.s5d_1 = body;
|
|
2105
2106
|
}
|
|
2106
2107
|
protoOf($invoke$logRequestBodyCOROUTINE$).i9 = function () {
|
|
2107
2108
|
var suspendResult = this.c9_1;
|
|
@@ -2112,7 +2113,7 @@
|
|
|
2112
2113
|
case 0:
|
|
2113
2114
|
this.b9_1 = 2;
|
|
2114
2115
|
this.a9_1 = 1;
|
|
2115
|
-
suspendResult = this.
|
|
2116
|
+
suspendResult = this.l5d_1.b58(this.m5d_1, this.o5d_1, this.n5d_1.h35(), this.p5d_1, this.s5d_1, this);
|
|
2116
2117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2117
2118
|
return suspendResult;
|
|
2118
2119
|
}
|
|
@@ -2121,29 +2122,29 @@
|
|
|
2121
2122
|
case 1:
|
|
2122
2123
|
var filteredBody = suspendResult;
|
|
2123
2124
|
if (filteredBody instanceof Empty) {
|
|
2124
|
-
this.
|
|
2125
|
+
this.r5d_1.j1('--> END ' + this.q5d_1.u2z_1 + ' (0-byte body)');
|
|
2125
2126
|
} else {
|
|
2126
2127
|
if (filteredBody instanceof Skip) {
|
|
2127
2128
|
var this_0 = StringBuilder_init_$Create$();
|
|
2128
|
-
this_0.q('--> END ' + this.
|
|
2129
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2129
|
+
this_0.q('--> END ' + this.q5d_1.u2z_1 + ' (');
|
|
2130
|
+
var tmp0_safe_receiver = filteredBody.f58_1;
|
|
2130
2131
|
if (tmp0_safe_receiver == null)
|
|
2131
2132
|
null;
|
|
2132
2133
|
else {
|
|
2133
2134
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2134
2135
|
}
|
|
2135
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2136
|
+
var tmp1_safe_receiver = filteredBody.g58_1;
|
|
2136
2137
|
if (tmp1_safe_receiver == null)
|
|
2137
2138
|
null;
|
|
2138
2139
|
else {
|
|
2139
2140
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2140
2141
|
}
|
|
2141
2142
|
this_0.q('body omitted)');
|
|
2142
|
-
this.
|
|
2143
|
+
this.r5d_1.j1(this_0.toString());
|
|
2143
2144
|
} else {
|
|
2144
2145
|
if (isInterface(filteredBody, Content)) {
|
|
2145
|
-
this.
|
|
2146
|
-
this.
|
|
2146
|
+
this.r5d_1.j1(filteredBody.h58());
|
|
2147
|
+
this.r5d_1.j1('--> END ' + this.q5d_1.u2z_1 + ' (' + toString_0(filteredBody.e58()) + '-byte body)');
|
|
2147
2148
|
} else {
|
|
2148
2149
|
noWhenBranchMatchedException();
|
|
2149
2150
|
}
|
|
@@ -2167,14 +2168,14 @@
|
|
|
2167
2168
|
};
|
|
2168
2169
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2169
2170
|
CoroutineImpl.call(this, resultContinuation);
|
|
2170
|
-
this.
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2177
|
-
this.
|
|
2171
|
+
this.b5e_1 = $this_createClientPlugin;
|
|
2172
|
+
this.c5e_1 = bodyFilter;
|
|
2173
|
+
this.d5e_1 = url;
|
|
2174
|
+
this.e5e_1 = content;
|
|
2175
|
+
this.f5e_1 = method;
|
|
2176
|
+
this.g5e_1 = headers;
|
|
2177
|
+
this.h5e_1 = logLines;
|
|
2178
|
+
this.i5e_1 = process;
|
|
2178
2179
|
}
|
|
2179
2180
|
protoOf($invoke$logOutgoingContentCOROUTINE$).i9 = function () {
|
|
2180
2181
|
var suspendResult = this.c9_1;
|
|
@@ -2184,10 +2185,10 @@
|
|
|
2184
2185
|
switch (tmp) {
|
|
2185
2186
|
case 0:
|
|
2186
2187
|
this.b9_1 = 7;
|
|
2187
|
-
var tmp0_subject = this.
|
|
2188
|
+
var tmp0_subject = this.e5e_1;
|
|
2188
2189
|
if (tmp0_subject instanceof ObservableContent) {
|
|
2189
2190
|
this.a9_1 = 5;
|
|
2190
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2191
|
+
suspendResult = invoke$logOutgoingContent(this.b5e_1, this.c5e_1, this.d5e_1, this.e5e_1.c3t_1, this.f5e_1, this.g5e_1, this.h5e_1, this.i5e_1, this);
|
|
2191
2192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2192
2193
|
return suspendResult;
|
|
2193
2194
|
}
|
|
@@ -2195,41 +2196,41 @@
|
|
|
2195
2196
|
} else {
|
|
2196
2197
|
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2197
2198
|
var tmp_0 = this;
|
|
2198
|
-
var _iterator__ex2g4s = this.
|
|
2199
|
+
var _iterator__ex2g4s = this.e5e_1.s5j_1.t();
|
|
2199
2200
|
while (_iterator__ex2g4s.u()) {
|
|
2200
2201
|
var part = _iterator__ex2g4s.v();
|
|
2201
|
-
this.
|
|
2202
|
-
var _iterator__ex2g4s_0 = part.
|
|
2202
|
+
this.h5e_1.j1('--' + this.e5e_1.t5j_1);
|
|
2203
|
+
var _iterator__ex2g4s_0 = part.u5j_1.u2n().t();
|
|
2203
2204
|
while (_iterator__ex2g4s_0.u()) {
|
|
2204
2205
|
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2205
2206
|
var key = _destruct__k2r9zo.r1();
|
|
2206
2207
|
var values = _destruct__k2r9zo.s1();
|
|
2207
|
-
this.
|
|
2208
|
+
this.h5e_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2208
2209
|
}
|
|
2209
2210
|
if (part instanceof FormItem) {
|
|
2210
|
-
this.
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2211
|
+
this.h5e_1.j1('Content-Length: ' + part.w5j_1.length);
|
|
2212
|
+
this.h5e_1.j1('');
|
|
2213
|
+
this.h5e_1.j1(part.w5j_1);
|
|
2213
2214
|
} else {
|
|
2214
|
-
this.
|
|
2215
|
-
var contentLength = part.
|
|
2215
|
+
this.h5e_1.j1('');
|
|
2216
|
+
var contentLength = part.u5j_1.l2m('Content-Length');
|
|
2216
2217
|
if (!(contentLength == null)) {
|
|
2217
|
-
this.
|
|
2218
|
+
this.h5e_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2218
2219
|
} else {
|
|
2219
|
-
this.
|
|
2220
|
+
this.h5e_1.j1('binary body omitted');
|
|
2220
2221
|
}
|
|
2221
2222
|
}
|
|
2222
2223
|
}
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2225
|
-
tmp_0.
|
|
2224
|
+
this.h5e_1.j1('--' + this.e5e_1.t5j_1 + '--');
|
|
2225
|
+
this.h5e_1.j1('--> END ' + this.f5e_1.u2z_1);
|
|
2226
|
+
tmp_0.j5e_1 = null;
|
|
2226
2227
|
this.a9_1 = 6;
|
|
2227
2228
|
continue $sm;
|
|
2228
2229
|
} else {
|
|
2229
2230
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2230
|
-
var bytes = this.
|
|
2231
|
+
var bytes = this.e5e_1.k35();
|
|
2231
2232
|
this.a9_1 = 4;
|
|
2232
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2233
|
+
suspendResult = invoke$logRequestBody(this.c5e_1, this.d5e_1, this.e5e_1, fromInt(bytes.length), this.g5e_1, this.f5e_1, this.h5e_1, ByteReadChannel(bytes), this);
|
|
2233
2234
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2234
2235
|
return suspendResult;
|
|
2235
2236
|
}
|
|
@@ -2237,7 +2238,7 @@
|
|
|
2237
2238
|
} else {
|
|
2238
2239
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2239
2240
|
this.a9_1 = 3;
|
|
2240
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2241
|
+
suspendResult = invoke$logOutgoingContent(this.b5e_1, this.c5e_1, this.d5e_1, this.e5e_1.t35(), this.f5e_1, this.g5e_1, this.h5e_1, this.i5e_1, this);
|
|
2241
2242
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2242
2243
|
return suspendResult;
|
|
2243
2244
|
}
|
|
@@ -2245,24 +2246,24 @@
|
|
|
2245
2246
|
} else {
|
|
2246
2247
|
if (tmp0_subject instanceof NoContent) {
|
|
2247
2248
|
var tmp_1 = this;
|
|
2248
|
-
this.
|
|
2249
|
-
tmp_1.
|
|
2249
|
+
this.h5e_1.j1('--> END ' + this.f5e_1.u2z_1);
|
|
2250
|
+
tmp_1.j5e_1 = null;
|
|
2250
2251
|
this.a9_1 = 6;
|
|
2251
2252
|
continue $sm;
|
|
2252
2253
|
} else {
|
|
2253
2254
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2254
2255
|
var tmp_2 = this;
|
|
2255
|
-
this.
|
|
2256
|
-
tmp_2.
|
|
2256
|
+
this.h5e_1.j1('--> END ' + this.f5e_1.u2z_1);
|
|
2257
|
+
tmp_2.j5e_1 = null;
|
|
2257
2258
|
this.a9_1 = 6;
|
|
2258
2259
|
continue $sm;
|
|
2259
2260
|
} else {
|
|
2260
2261
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2261
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2262
|
-
this.
|
|
2263
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2262
|
+
var _destruct__k2r9zo_0 = split(this.e5e_1.n35(), this.b5e_1.f3x_1);
|
|
2263
|
+
this.k5e_1 = _destruct__k2r9zo_0.bg();
|
|
2264
|
+
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2264
2265
|
this.a9_1 = 2;
|
|
2265
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2266
|
+
suspendResult = invoke$logRequestBody(this.c5e_1, this.d5e_1, this.e5e_1, this.e5e_1.j35(), this.g5e_1, this.f5e_1, this.h5e_1, newChannel, this);
|
|
2266
2267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2267
2268
|
return suspendResult;
|
|
2268
2269
|
}
|
|
@@ -2270,12 +2271,12 @@
|
|
|
2270
2271
|
} else {
|
|
2271
2272
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2272
2273
|
var channel = new ByteChannel();
|
|
2273
|
-
launch(this.
|
|
2274
|
-
var _destruct__k2r9zo_1 = split(channel, this.
|
|
2275
|
-
this.
|
|
2276
|
-
var newChannel_0 = _destruct__k2r9zo_1.
|
|
2274
|
+
launch(this.b5e_1.f3x_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.e5e_1, channel, null));
|
|
2275
|
+
var _destruct__k2r9zo_1 = split(channel, this.b5e_1.f3x_1);
|
|
2276
|
+
this.l5e_1 = _destruct__k2r9zo_1.bg();
|
|
2277
|
+
var newChannel_0 = _destruct__k2r9zo_1.cg();
|
|
2277
2278
|
this.a9_1 = 1;
|
|
2278
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2279
|
+
suspendResult = invoke$logRequestBody(this.c5e_1, this.d5e_1, this.e5e_1, this.e5e_1.j35(), this.g5e_1, this.f5e_1, this.h5e_1, newChannel_0, this);
|
|
2279
2280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2280
2281
|
return suspendResult;
|
|
2281
2282
|
}
|
|
@@ -2294,27 +2295,27 @@
|
|
|
2294
2295
|
|
|
2295
2296
|
break;
|
|
2296
2297
|
case 1:
|
|
2297
|
-
this.
|
|
2298
|
+
this.j5e_1 = new LoggedContent(this.e5e_1, this.l5e_1);
|
|
2298
2299
|
this.a9_1 = 6;
|
|
2299
2300
|
continue $sm;
|
|
2300
2301
|
case 2:
|
|
2301
|
-
this.
|
|
2302
|
+
this.j5e_1 = new LoggedContent(this.e5e_1, this.k5e_1);
|
|
2302
2303
|
this.a9_1 = 6;
|
|
2303
2304
|
continue $sm;
|
|
2304
2305
|
case 3:
|
|
2305
|
-
this.
|
|
2306
|
+
this.j5e_1 = suspendResult;
|
|
2306
2307
|
this.a9_1 = 6;
|
|
2307
2308
|
continue $sm;
|
|
2308
2309
|
case 4:
|
|
2309
|
-
this.
|
|
2310
|
+
this.j5e_1 = null;
|
|
2310
2311
|
this.a9_1 = 6;
|
|
2311
2312
|
continue $sm;
|
|
2312
2313
|
case 5:
|
|
2313
|
-
this.
|
|
2314
|
+
this.j5e_1 = suspendResult;
|
|
2314
2315
|
this.a9_1 = 6;
|
|
2315
2316
|
continue $sm;
|
|
2316
2317
|
case 6:
|
|
2317
|
-
return this.
|
|
2318
|
+
return this.j5e_1;
|
|
2318
2319
|
case 7:
|
|
2319
2320
|
throw this.d9_1;
|
|
2320
2321
|
}
|
|
@@ -2331,12 +2332,12 @@
|
|
|
2331
2332
|
};
|
|
2332
2333
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2333
2334
|
CoroutineImpl.call(this, resultContinuation);
|
|
2334
|
-
this.
|
|
2335
|
-
this.
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2335
|
+
this.u5e_1 = sanitizedHeaders;
|
|
2336
|
+
this.v5e_1 = level;
|
|
2337
|
+
this.w5e_1 = $this_createClientPlugin;
|
|
2338
|
+
this.x5e_1 = bodyFilter;
|
|
2339
|
+
this.y5e_1 = request;
|
|
2340
|
+
this.z5e_1 = logLines;
|
|
2340
2341
|
}
|
|
2341
2342
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2342
2343
|
var suspendResult = this.c9_1;
|
|
@@ -2346,22 +2347,22 @@
|
|
|
2346
2347
|
switch (tmp) {
|
|
2347
2348
|
case 0:
|
|
2348
2349
|
this.b9_1 = 4;
|
|
2349
|
-
if (invoke$isNone(this.
|
|
2350
|
+
if (invoke$isNone(this.v5e_1))
|
|
2350
2351
|
return null;
|
|
2351
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.
|
|
2352
|
-
var body = this.
|
|
2352
|
+
var uri = pathQuery(takeFrom(new URLBuilder(), this.y5e_1.c3p_1).e2v());
|
|
2353
|
+
var body = this.y5e_1.f3p_1;
|
|
2353
2354
|
var this_0 = new HeadersBuilder();
|
|
2354
2355
|
var tmp_0;
|
|
2355
2356
|
var tmp_1;
|
|
2356
2357
|
var tmp_2;
|
|
2357
2358
|
if (body instanceof OutgoingContent) {
|
|
2358
|
-
tmp_2 = !this.
|
|
2359
|
+
tmp_2 = !this.y5e_1.d3p_1.equals(Companion_getInstance().k2z_1);
|
|
2359
2360
|
} else {
|
|
2360
2361
|
tmp_2 = false;
|
|
2361
2362
|
}
|
|
2362
2363
|
|
|
2363
2364
|
if (tmp_2) {
|
|
2364
|
-
tmp_1 = !this.
|
|
2365
|
+
tmp_1 = !this.y5e_1.d3p_1.equals(Companion_getInstance().p2z_1);
|
|
2365
2366
|
} else {
|
|
2366
2367
|
tmp_1 = false;
|
|
2367
2368
|
}
|
|
@@ -2373,13 +2374,13 @@
|
|
|
2373
2374
|
}
|
|
2374
2375
|
|
|
2375
2376
|
if (tmp_0) {
|
|
2376
|
-
var tmp0_safe_receiver = body.
|
|
2377
|
+
var tmp0_safe_receiver = body.h35();
|
|
2377
2378
|
if (tmp0_safe_receiver == null)
|
|
2378
2379
|
null;
|
|
2379
2380
|
else {
|
|
2380
2381
|
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2381
2382
|
}
|
|
2382
|
-
var tmp1_safe_receiver = body.
|
|
2383
|
+
var tmp1_safe_receiver = body.j35();
|
|
2383
2384
|
if (tmp1_safe_receiver == null)
|
|
2384
2385
|
null;
|
|
2385
2386
|
else {
|
|
@@ -2387,16 +2388,16 @@
|
|
|
2387
2388
|
}
|
|
2388
2389
|
}
|
|
2389
2390
|
|
|
2390
|
-
appendAll(this_0, this.
|
|
2391
|
-
var headers = this_0.
|
|
2392
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2391
|
+
appendAll(this_0, this.y5e_1.e3p_1);
|
|
2392
|
+
var headers = this_0.e2v();
|
|
2393
|
+
var tmp0_safe_receiver_0 = headers.l2m('Content-Length');
|
|
2393
2394
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2394
2395
|
var tmp_3;
|
|
2395
|
-
if (this.
|
|
2396
|
-
tmp_3 = '--> ' + this.
|
|
2396
|
+
if (this.y5e_1.d3p_1.equals(Companion_getInstance().k2z_1) || this.y5e_1.d3p_1.equals(Companion_getInstance().p2z_1) || ((invoke$isHeaders(this.v5e_1) || invoke$isBody(this.v5e_1)) && !(contentLength == null)) || (invoke$isHeaders(this.v5e_1) && contentLength == null) || headers.s2n('Content-Encoding')) {
|
|
2397
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri;
|
|
2397
2398
|
} else {
|
|
2398
|
-
if (invoke$isInfo(this.
|
|
2399
|
-
tmp_3 = '--> ' + this.
|
|
2399
|
+
if (invoke$isInfo(this.v5e_1) && !(contentLength == null)) {
|
|
2400
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2400
2401
|
} else {
|
|
2401
2402
|
var tmp_4;
|
|
2402
2403
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2405,32 +2406,32 @@
|
|
|
2405
2406
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2406
2407
|
}
|
|
2407
2408
|
if (tmp_4) {
|
|
2408
|
-
tmp_3 = '--> ' + this.
|
|
2409
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2409
2410
|
} else {
|
|
2410
|
-
var size = computeRequestBodySize(this.
|
|
2411
|
-
tmp_3 = '--> ' + this.
|
|
2411
|
+
var size = computeRequestBodySize(this.y5e_1.f3p_1);
|
|
2412
|
+
tmp_3 = '--> ' + this.y5e_1.d3p_1.u2z_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2412
2413
|
}
|
|
2413
2414
|
}
|
|
2414
2415
|
}
|
|
2415
2416
|
|
|
2416
2417
|
var startLine = tmp_3;
|
|
2417
|
-
this.
|
|
2418
|
-
if (!invoke$isHeaders(this.
|
|
2418
|
+
this.z5e_1.j1(startLine);
|
|
2419
|
+
if (!invoke$isHeaders(this.v5e_1) && !invoke$isBody(this.v5e_1)) {
|
|
2419
2420
|
return null;
|
|
2420
2421
|
}
|
|
2421
2422
|
|
|
2422
|
-
var _iterator__ex2g4s = headers.
|
|
2423
|
+
var _iterator__ex2g4s = headers.u2n().t();
|
|
2423
2424
|
while (_iterator__ex2g4s.u()) {
|
|
2424
2425
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2425
2426
|
var name = _destruct__k2r9zo.r1();
|
|
2426
2427
|
var values = _destruct__k2r9zo.s1();
|
|
2427
|
-
var tmp0 = this.
|
|
2428
|
+
var tmp0 = this.u5e_1;
|
|
2428
2429
|
var tmp$ret$0 = Unit_instance;
|
|
2429
2430
|
l$ret$1: do {
|
|
2430
2431
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2431
2432
|
while (_iterator__ex2g4s_0.u()) {
|
|
2432
2433
|
var element = _iterator__ex2g4s_0.v();
|
|
2433
|
-
if (element.
|
|
2434
|
+
if (element.c5g_1(name)) {
|
|
2434
2435
|
tmp$ret$0 = element;
|
|
2435
2436
|
break l$ret$1;
|
|
2436
2437
|
}
|
|
@@ -2439,35 +2440,35 @@
|
|
|
2439
2440
|
}
|
|
2440
2441
|
while (false);
|
|
2441
2442
|
if (tmp$ret$0 == null) {
|
|
2442
|
-
this.
|
|
2443
|
+
this.z5e_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2443
2444
|
} else {
|
|
2444
|
-
this.
|
|
2445
|
+
this.z5e_1.j1(name + ': \u2588\u2588');
|
|
2445
2446
|
}
|
|
2446
2447
|
}
|
|
2447
2448
|
|
|
2448
|
-
if (!invoke$isBody(this.
|
|
2449
|
-
this.
|
|
2449
|
+
if (!invoke$isBody(this.v5e_1) || this.y5e_1.d3p_1.equals(Companion_getInstance().k2z_1) || this.y5e_1.d3p_1.equals(Companion_getInstance().p2z_1)) {
|
|
2450
|
+
this.z5e_1.j1('--> END ' + this.y5e_1.d3p_1.u2z_1);
|
|
2450
2451
|
return null;
|
|
2451
2452
|
}
|
|
2452
2453
|
|
|
2453
|
-
this.
|
|
2454
|
+
this.z5e_1.j1('');
|
|
2454
2455
|
if (!(body instanceof OutgoingContent)) {
|
|
2455
|
-
this.
|
|
2456
|
+
this.z5e_1.j1('--> END ' + this.y5e_1.d3p_1.u2z_1);
|
|
2456
2457
|
return null;
|
|
2457
2458
|
}
|
|
2458
2459
|
|
|
2459
|
-
if (this.
|
|
2460
|
+
if (this.y5e_1.e3p_1.l2m('Content-Encoding') === 'gzip') {
|
|
2460
2461
|
this.a9_1 = 2;
|
|
2461
|
-
var tmp_5 = this.
|
|
2462
|
-
var tmp_6 = this.
|
|
2463
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2462
|
+
var tmp_5 = this.y5e_1.c3p_1.e2v();
|
|
2463
|
+
var tmp_6 = this.y5e_1.d3p_1;
|
|
2464
|
+
suspendResult = invoke$logOutgoingContent(this.w5e_1, this.x5e_1, tmp_5, body, tmp_6, headers, this.z5e_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2464
2465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2465
2466
|
return suspendResult;
|
|
2466
2467
|
}
|
|
2467
2468
|
continue $sm;
|
|
2468
2469
|
} else {
|
|
2469
2470
|
this.a9_1 = 1;
|
|
2470
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2471
|
+
suspendResult = invoke$logOutgoingContent(this.w5e_1, this.x5e_1, this.y5e_1.c3p_1.e2v(), body, this.y5e_1.d3p_1, headers, this.z5e_1, VOID, this);
|
|
2471
2472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2472
2473
|
return suspendResult;
|
|
2473
2474
|
}
|
|
@@ -2475,15 +2476,15 @@
|
|
|
2475
2476
|
}
|
|
2476
2477
|
|
|
2477
2478
|
case 1:
|
|
2478
|
-
this.
|
|
2479
|
+
this.a5f_1 = suspendResult;
|
|
2479
2480
|
this.a9_1 = 3;
|
|
2480
2481
|
continue $sm;
|
|
2481
2482
|
case 2:
|
|
2482
|
-
this.
|
|
2483
|
+
this.a5f_1 = suspendResult;
|
|
2483
2484
|
this.a9_1 = 3;
|
|
2484
2485
|
continue $sm;
|
|
2485
2486
|
case 3:
|
|
2486
|
-
var newContent = this.
|
|
2487
|
+
var newContent = this.a5f_1;
|
|
2487
2488
|
return newContent;
|
|
2488
2489
|
case 4:
|
|
2489
2490
|
throw this.d9_1;
|
|
@@ -2501,10 +2502,10 @@
|
|
|
2501
2502
|
};
|
|
2502
2503
|
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2503
2504
|
CoroutineImpl.call(this, resultContinuation);
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2505
|
+
this.j5f_1 = bodyFilter;
|
|
2506
|
+
this.k5f_1 = response;
|
|
2507
|
+
this.l5f_1 = body;
|
|
2508
|
+
this.m5f_1 = logLines;
|
|
2508
2509
|
}
|
|
2509
2510
|
protoOf($invoke$logResponseBodyCOROUTINE$).i9 = function () {
|
|
2510
2511
|
var suspendResult = this.c9_1;
|
|
@@ -2514,9 +2515,9 @@
|
|
|
2514
2515
|
switch (tmp) {
|
|
2515
2516
|
case 0:
|
|
2516
2517
|
this.b9_1 = 2;
|
|
2517
|
-
this.
|
|
2518
|
+
this.m5f_1.j1('');
|
|
2518
2519
|
this.a9_1 = 1;
|
|
2519
|
-
suspendResult = this.
|
|
2520
|
+
suspendResult = this.j5f_1.d58(this.k5f_1.r3q().k3q().t3q(), contentLength(this.k5f_1), contentType(this.k5f_1), this.k5f_1.j2z(), this.l5f_1, this);
|
|
2520
2521
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2521
2522
|
return suspendResult;
|
|
2522
2523
|
}
|
|
@@ -2524,33 +2525,33 @@
|
|
|
2524
2525
|
continue $sm;
|
|
2525
2526
|
case 1:
|
|
2526
2527
|
var filteredBody = suspendResult;
|
|
2527
|
-
var duration = subtract(this.
|
|
2528
|
+
var duration = subtract(this.k5f_1.d3r().d2p_1, this.k5f_1.c3r().d2p_1);
|
|
2528
2529
|
if (filteredBody instanceof Empty) {
|
|
2529
|
-
this.
|
|
2530
|
+
this.m5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2530
2531
|
} else {
|
|
2531
2532
|
if (filteredBody instanceof Skip) {
|
|
2532
2533
|
var this_0 = StringBuilder_init_$Create$();
|
|
2533
2534
|
this_0.q('<-- END HTTP (');
|
|
2534
2535
|
this_0.nc(duration);
|
|
2535
2536
|
this_0.q('ms, ');
|
|
2536
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2537
|
+
var tmp0_safe_receiver = filteredBody.f58_1;
|
|
2537
2538
|
if (tmp0_safe_receiver == null)
|
|
2538
2539
|
null;
|
|
2539
2540
|
else {
|
|
2540
2541
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2541
2542
|
}
|
|
2542
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2543
|
+
var tmp1_safe_receiver = filteredBody.g58_1;
|
|
2543
2544
|
if (tmp1_safe_receiver == null)
|
|
2544
2545
|
null;
|
|
2545
2546
|
else {
|
|
2546
2547
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2547
2548
|
}
|
|
2548
2549
|
this_0.q('body omitted)');
|
|
2549
|
-
this.
|
|
2550
|
+
this.m5f_1.j1(this_0.toString());
|
|
2550
2551
|
} else {
|
|
2551
2552
|
if (isInterface(filteredBody, Content)) {
|
|
2552
|
-
this.
|
|
2553
|
-
this.
|
|
2553
|
+
this.m5f_1.j1(filteredBody.h58());
|
|
2554
|
+
this.m5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.e58()) + '-byte body)');
|
|
2554
2555
|
} else {
|
|
2555
2556
|
noWhenBranchMatchedException();
|
|
2556
2557
|
}
|
|
@@ -2574,11 +2575,11 @@
|
|
|
2574
2575
|
};
|
|
2575
2576
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2576
2577
|
CoroutineImpl.call(this, resultContinuation);
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2578
|
+
this.v5f_1 = sanitizedHeaders;
|
|
2579
|
+
this.w5f_1 = level;
|
|
2580
|
+
this.x5f_1 = bodyFilter;
|
|
2581
|
+
this.y5f_1 = response;
|
|
2582
|
+
this.z5f_1 = logLines;
|
|
2582
2583
|
}
|
|
2583
2584
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2584
2585
|
var suspendResult = this.c9_1;
|
|
@@ -2588,30 +2589,30 @@
|
|
|
2588
2589
|
switch (tmp) {
|
|
2589
2590
|
case 0:
|
|
2590
2591
|
this.b9_1 = 4;
|
|
2591
|
-
if (invoke$isNone(this.
|
|
2592
|
-
return this.
|
|
2593
|
-
var tmp0_safe_receiver = this.
|
|
2592
|
+
if (invoke$isNone(this.w5f_1))
|
|
2593
|
+
return this.y5f_1;
|
|
2594
|
+
var tmp0_safe_receiver = this.y5f_1.j2z().l2m('Content-Length');
|
|
2594
2595
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2595
|
-
var request = get_request(this.
|
|
2596
|
-
var duration = subtract(this.
|
|
2597
|
-
var startLine = this.
|
|
2598
|
-
this.
|
|
2599
|
-
if (!invoke$isHeaders(this.
|
|
2600
|
-
return this.
|
|
2596
|
+
var request = get_request(this.y5f_1);
|
|
2597
|
+
var duration = subtract(this.y5f_1.d3r().d2p_1, this.y5f_1.c3r().d2p_1);
|
|
2598
|
+
var startLine = this.y5f_1.j2z().l2m('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.w5f_1) || invoke$isHeaders(this.w5f_1)) ? '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.w5f_1) && !(contentLength == null) ? '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.w5f_1) || (invoke$isInfo(this.w5f_1) && contentLength == null) || (invoke$isHeaders(this.w5f_1) && !(contentLength == null)) || this.y5f_1.j2z().l2m('Content-Encoding') === 'gzip' ? '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.y5f_1.i35().toString() + ' ' + pathQuery(request.t3q()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2599
|
+
this.z5f_1.j1(startLine);
|
|
2600
|
+
if (!invoke$isHeaders(this.w5f_1) && !invoke$isBody(this.w5f_1)) {
|
|
2601
|
+
return this.y5f_1;
|
|
2601
2602
|
}
|
|
2602
2603
|
|
|
2603
|
-
var _iterator__ex2g4s = this.
|
|
2604
|
+
var _iterator__ex2g4s = this.y5f_1.j2z().u2n().t();
|
|
2604
2605
|
while (_iterator__ex2g4s.u()) {
|
|
2605
2606
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2606
2607
|
var name = _destruct__k2r9zo.r1();
|
|
2607
2608
|
var values = _destruct__k2r9zo.s1();
|
|
2608
|
-
var tmp0 = this.
|
|
2609
|
+
var tmp0 = this.v5f_1;
|
|
2609
2610
|
var tmp$ret$0 = Unit_instance;
|
|
2610
2611
|
l$ret$1: do {
|
|
2611
2612
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2612
2613
|
while (_iterator__ex2g4s_0.u()) {
|
|
2613
2614
|
var element = _iterator__ex2g4s_0.v();
|
|
2614
|
-
if (element.
|
|
2615
|
+
if (element.c5g_1(name)) {
|
|
2615
2616
|
tmp$ret$0 = element;
|
|
2616
2617
|
break l$ret$1;
|
|
2617
2618
|
}
|
|
@@ -2620,30 +2621,30 @@
|
|
|
2620
2621
|
}
|
|
2621
2622
|
while (false);
|
|
2622
2623
|
if (tmp$ret$0 == null) {
|
|
2623
|
-
this.
|
|
2624
|
+
this.z5f_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2624
2625
|
} else {
|
|
2625
|
-
this.
|
|
2626
|
+
this.z5f_1.j1(name + ': \u2588\u2588');
|
|
2626
2627
|
}
|
|
2627
2628
|
}
|
|
2628
2629
|
|
|
2629
|
-
if (!invoke$isBody(this.
|
|
2630
|
-
this.
|
|
2631
|
-
return this.
|
|
2630
|
+
if (!invoke$isBody(this.w5f_1)) {
|
|
2631
|
+
this.z5f_1.j1('<-- END HTTP');
|
|
2632
|
+
return this.y5f_1;
|
|
2632
2633
|
}
|
|
2633
2634
|
|
|
2634
2635
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2635
|
-
this.
|
|
2636
|
-
return this.
|
|
2636
|
+
this.z5f_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2637
|
+
return this.y5f_1;
|
|
2637
2638
|
}
|
|
2638
2639
|
|
|
2639
|
-
if (equals(contentType(this.
|
|
2640
|
-
this.
|
|
2641
|
-
return this.
|
|
2640
|
+
if (equals(contentType(this.y5f_1), Text_getInstance().s2u_1)) {
|
|
2641
|
+
this.z5f_1.j1('<-- END HTTP (streaming)');
|
|
2642
|
+
return this.y5f_1;
|
|
2642
2643
|
}
|
|
2643
2644
|
|
|
2644
|
-
if (get_isSaved(this.
|
|
2645
|
+
if (get_isSaved(this.y5f_1)) {
|
|
2645
2646
|
this.a9_1 = 3;
|
|
2646
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.x5f_1, this.y5f_1, this.y5f_1.a3r(), this.z5f_1, this);
|
|
2647
2648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2648
2649
|
return suspendResult;
|
|
2649
2650
|
}
|
|
@@ -2654,22 +2655,22 @@
|
|
|
2654
2655
|
}
|
|
2655
2656
|
|
|
2656
2657
|
case 1:
|
|
2657
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2658
|
-
this.
|
|
2659
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2658
|
+
var _destruct__k2r9zo_0 = split(this.y5f_1.a3r(), this.y5f_1);
|
|
2659
|
+
this.a5g_1 = _destruct__k2r9zo_0.bg();
|
|
2660
|
+
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2660
2661
|
this.a9_1 = 2;
|
|
2661
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2662
|
+
suspendResult = invoke$logResponseBody(this.x5f_1, this.y5f_1, newChannel, this.z5f_1, this);
|
|
2662
2663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2663
2664
|
return suspendResult;
|
|
2664
2665
|
}
|
|
2665
2666
|
|
|
2666
2667
|
continue $sm;
|
|
2667
2668
|
case 2:
|
|
2668
|
-
var tmp_0 = this.
|
|
2669
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2670
|
-
return call.
|
|
2669
|
+
var tmp_0 = this.y5f_1.r3q();
|
|
2670
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.a5g_1));
|
|
2671
|
+
return call.c3o();
|
|
2671
2672
|
case 3:
|
|
2672
|
-
return this.
|
|
2673
|
+
return this.y5f_1;
|
|
2673
2674
|
case 4:
|
|
2674
2675
|
throw this.d9_1;
|
|
2675
2676
|
}
|
|
@@ -2714,8 +2715,8 @@
|
|
|
2714
2715
|
}
|
|
2715
2716
|
tmp_0 = tmp_1;
|
|
2716
2717
|
}
|
|
2717
|
-
var tmp$ret$
|
|
2718
|
-
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$
|
|
2718
|
+
var tmp$ret$2 = tmp_0;
|
|
2719
|
+
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$2);
|
|
2719
2720
|
ClientCallLogger = new AttributeKey(name, tmp$ret$1);
|
|
2720
2721
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
2721
2722
|
var name_0 = 'DisableLogging';
|
|
@@ -2735,8 +2736,8 @@
|
|
|
2735
2736
|
}
|
|
2736
2737
|
tmp_3 = tmp_4;
|
|
2737
2738
|
}
|
|
2738
|
-
var tmp$ret$
|
|
2739
|
-
var tmp$ret$1_0 = new TypeInfo(tmp_2, tmp$ret$
|
|
2739
|
+
var tmp$ret$2_0 = tmp_3;
|
|
2740
|
+
var tmp$ret$1_0 = new TypeInfo(tmp_2, tmp$ret$2_0);
|
|
2740
2741
|
DisableLogging = new AttributeKey(name_0, tmp$ret$1_0);
|
|
2741
2742
|
var tmp_5 = LoggingConfig$_init_$ref_f1nb0k();
|
|
2742
2743
|
Logging = createClientPlugin('Logging', tmp_5, Logging$lambda);
|
|
@@ -2747,8 +2748,8 @@
|
|
|
2747
2748
|
var this_0 = toList(headers);
|
|
2748
2749
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
2749
2750
|
var tmp = logHeaders$lambda;
|
|
2750
|
-
var tmp$ret$
|
|
2751
|
-
var sortedHeaders = sortedWith(this_0, tmp$ret$
|
|
2751
|
+
var tmp$ret$1 = new sam$kotlin_Comparator$0(tmp);
|
|
2752
|
+
var sortedHeaders = sortedWith(this_0, tmp$ret$1);
|
|
2752
2753
|
// Inline function 'kotlin.collections.forEach' call
|
|
2753
2754
|
var _iterator__ex2g4s = sortedHeaders.t();
|
|
2754
2755
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -2757,21 +2758,21 @@
|
|
|
2757
2758
|
var key = element.r1();
|
|
2758
2759
|
// Inline function 'kotlin.collections.component2' call
|
|
2759
2760
|
var values = element.s1();
|
|
2760
|
-
var tmp$ret$
|
|
2761
|
+
var tmp$ret$6;
|
|
2761
2762
|
$l$block: {
|
|
2762
2763
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2763
2764
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2764
2765
|
while (_iterator__ex2g4s_0.u()) {
|
|
2765
2766
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2766
|
-
if (element_0.
|
|
2767
|
-
tmp$ret$
|
|
2767
|
+
if (element_0.c5g_1(key)) {
|
|
2768
|
+
tmp$ret$6 = element_0;
|
|
2768
2769
|
break $l$block;
|
|
2769
2770
|
}
|
|
2770
2771
|
}
|
|
2771
|
-
tmp$ret$
|
|
2772
|
+
tmp$ret$6 = null;
|
|
2772
2773
|
}
|
|
2773
|
-
var tmp0_safe_receiver = tmp$ret$
|
|
2774
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2774
|
+
var tmp0_safe_receiver = tmp$ret$6;
|
|
2775
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b5g_1;
|
|
2775
2776
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2776
2777
|
}
|
|
2777
2778
|
}
|
|
@@ -2783,26 +2784,26 @@
|
|
|
2783
2784
|
}
|
|
2784
2785
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2785
2786
|
// Inline function 'kotlin.with' call
|
|
2786
|
-
if (level.
|
|
2787
|
+
if (level.g59_1) {
|
|
2787
2788
|
// Inline function 'kotlin.text.appendLine' call
|
|
2788
|
-
var value = 'RESPONSE: ' + response.
|
|
2789
|
+
var value = 'RESPONSE: ' + response.i35().toString();
|
|
2789
2790
|
// Inline function 'kotlin.text.appendLine' call
|
|
2790
2791
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2791
2792
|
// Inline function 'kotlin.text.appendLine' call
|
|
2792
|
-
var value_0 = 'METHOD: ' + response.
|
|
2793
|
+
var value_0 = 'METHOD: ' + response.r3q().k3q().s3q().toString();
|
|
2793
2794
|
// Inline function 'kotlin.text.appendLine' call
|
|
2794
2795
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2795
2796
|
// Inline function 'kotlin.text.appendLine' call
|
|
2796
|
-
var value_1 = 'FROM: ' + response.
|
|
2797
|
+
var value_1 = 'FROM: ' + response.r3q().k3q().t3q().toString();
|
|
2797
2798
|
// Inline function 'kotlin.text.appendLine' call
|
|
2798
2799
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2799
2800
|
}
|
|
2800
|
-
if (level.
|
|
2801
|
+
if (level.h59_1) {
|
|
2801
2802
|
// Inline function 'kotlin.text.appendLine' call
|
|
2802
2803
|
var value_2 = 'COMMON HEADERS';
|
|
2803
2804
|
// Inline function 'kotlin.text.appendLine' call
|
|
2804
2805
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2805
|
-
logHeaders(log, response.
|
|
2806
|
+
logHeaders(log, response.j2z().u2n(), sanitizedHeaders);
|
|
2806
2807
|
}
|
|
2807
2808
|
}
|
|
2808
2809
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2818,16 +2819,16 @@
|
|
|
2818
2819
|
return tmp.i9();
|
|
2819
2820
|
}
|
|
2820
2821
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2821
|
-
this.
|
|
2822
|
+
this.w5k_1 = function_0;
|
|
2822
2823
|
}
|
|
2823
2824
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
2824
|
-
return this.
|
|
2825
|
+
return this.w5k_1(a, b);
|
|
2825
2826
|
};
|
|
2826
2827
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2827
2828
|
return this.wd(a, b);
|
|
2828
2829
|
};
|
|
2829
2830
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2830
|
-
return this.
|
|
2831
|
+
return this.w5k_1;
|
|
2831
2832
|
};
|
|
2832
2833
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2833
2834
|
var tmp;
|
|
@@ -2850,13 +2851,13 @@
|
|
|
2850
2851
|
function logHeaders$lambda(a, b) {
|
|
2851
2852
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
2852
2853
|
var tmp = a.r1();
|
|
2853
|
-
var tmp$ret$
|
|
2854
|
-
return compareValues(tmp, tmp$ret$
|
|
2854
|
+
var tmp$ret$2 = b.r1();
|
|
2855
|
+
return compareValues(tmp, tmp$ret$2);
|
|
2855
2856
|
}
|
|
2856
2857
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2857
2858
|
CoroutineImpl.call(this, resultContinuation);
|
|
2858
|
-
this.
|
|
2859
|
-
this.
|
|
2859
|
+
this.f5k_1 = _this__u8e3s4;
|
|
2860
|
+
this.g5k_1 = response;
|
|
2860
2861
|
}
|
|
2861
2862
|
protoOf($logResponseBodyCOROUTINE$_0).i9 = function () {
|
|
2862
2863
|
var suspendResult = this.c9_1;
|
|
@@ -2866,14 +2867,14 @@
|
|
|
2866
2867
|
switch (tmp) {
|
|
2867
2868
|
case 0:
|
|
2868
2869
|
this.b9_1 = 8;
|
|
2869
|
-
this.
|
|
2870
|
+
this.h5k_1 = StringBuilder_init_$Create$();
|
|
2870
2871
|
this.a9_1 = 1;
|
|
2871
2872
|
continue $sm;
|
|
2872
2873
|
case 1:
|
|
2873
2874
|
this.b9_1 = 4;
|
|
2874
2875
|
this.b9_1 = 3;
|
|
2875
2876
|
this.a9_1 = 2;
|
|
2876
|
-
suspendResult = appendResponseBody(this.
|
|
2877
|
+
suspendResult = appendResponseBody(this.h5k_1, contentType(this.g5k_1), this.g5k_1.a3r(), this);
|
|
2877
2878
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2878
2879
|
return suspendResult;
|
|
2879
2880
|
}
|
|
@@ -2897,22 +2898,22 @@
|
|
|
2897
2898
|
|
|
2898
2899
|
case 4:
|
|
2899
2900
|
this.b9_1 = 8;
|
|
2900
|
-
this.
|
|
2901
|
+
this.i5k_1 = this.d9_1;
|
|
2901
2902
|
this.a9_1 = 5;
|
|
2902
|
-
var this_0 = this.
|
|
2903
|
-
suspendResult = this.
|
|
2903
|
+
var this_0 = this.h5k_1.toString();
|
|
2904
|
+
suspendResult = this.f5k_1.y57(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2904
2905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2905
2906
|
return suspendResult;
|
|
2906
2907
|
}
|
|
2907
2908
|
|
|
2908
2909
|
continue $sm;
|
|
2909
2910
|
case 5:
|
|
2910
|
-
throw this.
|
|
2911
|
+
throw this.i5k_1;
|
|
2911
2912
|
case 6:
|
|
2912
2913
|
this.b9_1 = 8;
|
|
2913
2914
|
this.a9_1 = 7;
|
|
2914
|
-
var this_1 = this.
|
|
2915
|
-
suspendResult = this.
|
|
2915
|
+
var this_1 = this.h5k_1.toString();
|
|
2916
|
+
suspendResult = this.f5k_1.y57(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2916
2917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2917
2918
|
return suspendResult;
|
|
2918
2919
|
}
|
|
@@ -2936,9 +2937,9 @@
|
|
|
2936
2937
|
};
|
|
2937
2938
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2938
2939
|
CoroutineImpl.call(this, resultContinuation);
|
|
2939
|
-
this.
|
|
2940
|
-
this.
|
|
2941
|
-
this.
|
|
2940
|
+
this.r5k_1 = _this__u8e3s4;
|
|
2941
|
+
this.s5k_1 = contentType;
|
|
2942
|
+
this.t5k_1 = content;
|
|
2942
2943
|
}
|
|
2943
2944
|
protoOf($appendResponseBodyCOROUTINE$).i9 = function () {
|
|
2944
2945
|
var suspendResult = this.c9_1;
|
|
@@ -2948,16 +2949,16 @@
|
|
|
2948
2949
|
switch (tmp) {
|
|
2949
2950
|
case 0:
|
|
2950
2951
|
this.b9_1 = 3;
|
|
2951
|
-
var tmp0 = this.
|
|
2952
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2952
|
+
var tmp0 = this.r5k_1;
|
|
2953
|
+
var value = 'BODY Content-Type: ' + toString_0(this.s5k_1);
|
|
2953
2954
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2954
|
-
var tmp0_0 = this.
|
|
2955
|
+
var tmp0_0 = this.r5k_1;
|
|
2955
2956
|
var value_0 = 'BODY START';
|
|
2956
2957
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2957
|
-
var tmp0_1 = this.
|
|
2958
|
-
var tmp0_safe_receiver = this.
|
|
2958
|
+
var tmp0_1 = this.t5k_1;
|
|
2959
|
+
var tmp0_safe_receiver = this.s5k_1;
|
|
2959
2960
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2960
|
-
this.
|
|
2961
|
+
this.v5k_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().x1x_1 : tmp1_elvis_lhs;
|
|
2961
2962
|
this.b9_1 = 2;
|
|
2962
2963
|
this.a9_1 = 1;
|
|
2963
2964
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2968,7 +2969,7 @@
|
|
|
2968
2969
|
continue $sm;
|
|
2969
2970
|
case 1:
|
|
2970
2971
|
var ARGUMENT = suspendResult;
|
|
2971
|
-
this.
|
|
2972
|
+
this.u5k_1 = readText(ARGUMENT, this.v5k_1);
|
|
2972
2973
|
this.b9_1 = 3;
|
|
2973
2974
|
this.a9_1 = 4;
|
|
2974
2975
|
continue $sm;
|
|
@@ -2978,7 +2979,7 @@
|
|
|
2978
2979
|
if (tmp_0 instanceof Error) {
|
|
2979
2980
|
var cause = this.d9_1;
|
|
2980
2981
|
var tmp_1 = this;
|
|
2981
|
-
tmp_1.
|
|
2982
|
+
tmp_1.u5k_1 = null;
|
|
2982
2983
|
this.a9_1 = 4;
|
|
2983
2984
|
continue $sm;
|
|
2984
2985
|
} else {
|
|
@@ -2989,10 +2990,10 @@
|
|
|
2989
2990
|
throw this.d9_1;
|
|
2990
2991
|
case 4:
|
|
2991
2992
|
this.b9_1 = 3;
|
|
2992
|
-
var tmp2_elvis_lhs = this.
|
|
2993
|
+
var tmp2_elvis_lhs = this.u5k_1;
|
|
2993
2994
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2994
|
-
this.
|
|
2995
|
-
this.
|
|
2995
|
+
this.r5k_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2996
|
+
this.r5k_1.q('BODY END');
|
|
2996
2997
|
return Unit_instance;
|
|
2997
2998
|
}
|
|
2998
2999
|
} catch ($p) {
|
|
@@ -3014,21 +3015,21 @@
|
|
|
3014
3015
|
}
|
|
3015
3016
|
function toReadChannel(_this__u8e3s4) {
|
|
3016
3017
|
var tmp = GlobalScope_instance;
|
|
3017
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3018
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
3018
|
+
var tmp_0 = Dispatchers_getInstance().i15_1;
|
|
3019
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).p1v_1;
|
|
3019
3020
|
}
|
|
3020
3021
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3021
|
-
this.
|
|
3022
|
+
this.r5l_1 = $this_toReadChannel;
|
|
3022
3023
|
CoroutineImpl.call(this, resultContinuation);
|
|
3023
3024
|
}
|
|
3024
|
-
protoOf(toReadChannel$slambda).
|
|
3025
|
-
var tmp = this.
|
|
3025
|
+
protoOf(toReadChannel$slambda).o3a = function ($this$writer, $completion) {
|
|
3026
|
+
var tmp = this.p3a($this$writer, $completion);
|
|
3026
3027
|
tmp.c9_1 = Unit_instance;
|
|
3027
3028
|
tmp.d9_1 = null;
|
|
3028
3029
|
return tmp.i9();
|
|
3029
3030
|
};
|
|
3030
3031
|
protoOf(toReadChannel$slambda).u9 = function (p1, $completion) {
|
|
3031
|
-
return this.
|
|
3032
|
+
return this.o3a(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3032
3033
|
};
|
|
3033
3034
|
protoOf(toReadChannel$slambda).i9 = function () {
|
|
3034
3035
|
var suspendResult = this.c9_1;
|
|
@@ -3039,7 +3040,7 @@
|
|
|
3039
3040
|
case 0:
|
|
3040
3041
|
this.b9_1 = 2;
|
|
3041
3042
|
this.a9_1 = 1;
|
|
3042
|
-
suspendResult = this.
|
|
3043
|
+
suspendResult = this.r5l_1.p35(this.s5l_1.r1v_1, this);
|
|
3043
3044
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3044
3045
|
return suspendResult;
|
|
3045
3046
|
}
|
|
@@ -3061,23 +3062,23 @@
|
|
|
3061
3062
|
}
|
|
3062
3063
|
while (true);
|
|
3063
3064
|
};
|
|
3064
|
-
protoOf(toReadChannel$slambda).
|
|
3065
|
-
var i = new toReadChannel$slambda(this.
|
|
3066
|
-
i.
|
|
3065
|
+
protoOf(toReadChannel$slambda).p3a = function ($this$writer, completion) {
|
|
3066
|
+
var i = new toReadChannel$slambda(this.r5l_1, completion);
|
|
3067
|
+
i.s5l_1 = $this$writer;
|
|
3067
3068
|
return i;
|
|
3068
3069
|
};
|
|
3069
3070
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3070
3071
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3071
3072
|
var l = function ($this$writer, $completion) {
|
|
3072
|
-
return i.
|
|
3073
|
+
return i.o3a($this$writer, $completion);
|
|
3073
3074
|
};
|
|
3074
3075
|
l.$arity = 1;
|
|
3075
3076
|
return l;
|
|
3076
3077
|
}
|
|
3077
3078
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3078
3079
|
CoroutineImpl.call(this, resultContinuation);
|
|
3079
|
-
this.
|
|
3080
|
-
this.
|
|
3080
|
+
this.f5l_1 = _this__u8e3s4;
|
|
3081
|
+
this.g5l_1 = log;
|
|
3081
3082
|
}
|
|
3082
3083
|
protoOf($observeCOROUTINE$).i9 = function () {
|
|
3083
3084
|
var suspendResult = this.c9_1;
|
|
@@ -3087,10 +3088,10 @@
|
|
|
3087
3088
|
switch (tmp) {
|
|
3088
3089
|
case 0:
|
|
3089
3090
|
this.b9_1 = 6;
|
|
3090
|
-
var tmp0_subject = this.
|
|
3091
|
+
var tmp0_subject = this.f5l_1;
|
|
3091
3092
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3092
3093
|
this.a9_1 = 3;
|
|
3093
|
-
suspendResult = writeFully_0(this.
|
|
3094
|
+
suspendResult = writeFully_0(this.g5l_1, this.f5l_1.k35(), VOID, VOID, this);
|
|
3094
3095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3095
3096
|
return suspendResult;
|
|
3096
3097
|
}
|
|
@@ -3099,25 +3100,25 @@
|
|
|
3099
3100
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3100
3101
|
var tmp_0 = this;
|
|
3101
3102
|
var responseChannel = new ByteChannel();
|
|
3102
|
-
var content = this.
|
|
3103
|
-
copyToBoth(content, this.
|
|
3104
|
-
tmp_0.
|
|
3103
|
+
var content = this.f5l_1.n35();
|
|
3104
|
+
copyToBoth(content, this.g5l_1, responseChannel);
|
|
3105
|
+
tmp_0.h5l_1 = new LoggedContent(this.f5l_1, responseChannel);
|
|
3105
3106
|
this.a9_1 = 5;
|
|
3106
3107
|
continue $sm;
|
|
3107
3108
|
} else {
|
|
3108
3109
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3109
3110
|
var tmp_1 = this;
|
|
3110
3111
|
var responseChannel_0 = new ByteChannel();
|
|
3111
|
-
var content_0 = toReadChannel(this.
|
|
3112
|
-
copyToBoth(content_0, this.
|
|
3113
|
-
tmp_1.
|
|
3112
|
+
var content_0 = toReadChannel(this.f5l_1);
|
|
3113
|
+
copyToBoth(content_0, this.g5l_1, responseChannel_0);
|
|
3114
|
+
tmp_1.h5l_1 = new LoggedContent(this.f5l_1, responseChannel_0);
|
|
3114
3115
|
this.a9_1 = 5;
|
|
3115
3116
|
continue $sm;
|
|
3116
3117
|
} else {
|
|
3117
3118
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3118
|
-
this.
|
|
3119
|
+
this.i5l_1 = this.f5l_1;
|
|
3119
3120
|
this.a9_1 = 2;
|
|
3120
|
-
suspendResult = observe(this.
|
|
3121
|
+
suspendResult = observe(this.f5l_1.t35(), this.g5l_1, this);
|
|
3121
3122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3122
3123
|
return suspendResult;
|
|
3123
3124
|
}
|
|
@@ -3131,7 +3132,7 @@
|
|
|
3131
3132
|
}
|
|
3132
3133
|
if (tmp_2) {
|
|
3133
3134
|
this.a9_1 = 1;
|
|
3134
|
-
suspendResult = this.
|
|
3135
|
+
suspendResult = this.g5l_1.d1o(this);
|
|
3135
3136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3136
3137
|
return suspendResult;
|
|
3137
3138
|
}
|
|
@@ -3147,28 +3148,28 @@
|
|
|
3147
3148
|
|
|
3148
3149
|
break;
|
|
3149
3150
|
case 1:
|
|
3150
|
-
this.
|
|
3151
|
+
this.h5l_1 = this.f5l_1;
|
|
3151
3152
|
this.a9_1 = 5;
|
|
3152
3153
|
continue $sm;
|
|
3153
3154
|
case 2:
|
|
3154
3155
|
var ARGUMENT = suspendResult;
|
|
3155
|
-
this.
|
|
3156
|
+
this.h5l_1 = this.i5l_1.u35(ARGUMENT);
|
|
3156
3157
|
this.a9_1 = 5;
|
|
3157
3158
|
continue $sm;
|
|
3158
3159
|
case 3:
|
|
3159
3160
|
this.a9_1 = 4;
|
|
3160
|
-
suspendResult = this.
|
|
3161
|
+
suspendResult = this.g5l_1.d1o(this);
|
|
3161
3162
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3162
3163
|
return suspendResult;
|
|
3163
3164
|
}
|
|
3164
3165
|
|
|
3165
3166
|
continue $sm;
|
|
3166
3167
|
case 4:
|
|
3167
|
-
this.
|
|
3168
|
+
this.h5l_1 = this.f5l_1;
|
|
3168
3169
|
this.a9_1 = 5;
|
|
3169
3170
|
continue $sm;
|
|
3170
3171
|
case 5:
|
|
3171
|
-
return this.
|
|
3172
|
+
return this.h5l_1;
|
|
3172
3173
|
case 6:
|
|
3173
3174
|
throw this.d9_1;
|
|
3174
3175
|
}
|
|
@@ -3208,13 +3209,13 @@
|
|
|
3208
3209
|
return get_SIMPLE(_this__u8e3s4);
|
|
3209
3210
|
}
|
|
3210
3211
|
//region block: post-declaration
|
|
3211
|
-
protoOf(Empty).
|
|
3212
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3213
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3212
|
+
protoOf(Empty).e58 = get_byteSize;
|
|
3213
|
+
protoOf(BinaryLogBodyFilter$1).b58 = filterRequest;
|
|
3214
|
+
protoOf(BinaryLogBodyFilter$1).d58 = filterResponse;
|
|
3214
3215
|
protoOf(MDCContextElement).n9 = get;
|
|
3215
|
-
protoOf(MDCContextElement).
|
|
3216
|
-
protoOf(MDCContextElement).
|
|
3217
|
-
protoOf(MDCContextElement).
|
|
3216
|
+
protoOf(MDCContextElement).xg = fold;
|
|
3217
|
+
protoOf(MDCContextElement).wg = minusKey;
|
|
3218
|
+
protoOf(MDCContextElement).yg = plus;
|
|
3218
3219
|
//endregion
|
|
3219
3220
|
//region block: init
|
|
3220
3221
|
Empty_instance = new Empty();
|