@doordeck/doordeck-headless-sdk 0.204.0 → 0.206.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 +58 -58
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +21 -2
- package/kotlin/doordeck-sdk.js +12895 -12809
- package/kotlin/kotlin-kotlin-stdlib.js +1727 -1595
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2092 -2114
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +48 -48
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1917 -1916
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1498 -1501
- package/kotlin/ktor-ktor-client-auth.js +284 -299
- package/kotlin/ktor-ktor-client-content-negotiation.js +160 -165
- package/kotlin/ktor-ktor-client-core.js +2380 -2491
- package/kotlin/ktor-ktor-client-logging.js +694 -719
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +381 -386
- package/kotlin/ktor-ktor-http.js +809 -808
- package/kotlin/ktor-ktor-io.js +702 -704
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -173
- package/kotlin/ktor-ktor-serialization.js +76 -79
- package/kotlin/ktor-ktor-utils.js +927 -947
- package/kotlin/ktor-ktor-websockets.js +449 -464
- package/package.json +1 -1
|
@@ -3,50 +3,51 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
5
5
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
6
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
7
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
8
|
-
var trim = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.jg;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.vb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.nf;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.kc;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.z2;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.hc;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
|
|
13
13
|
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
14
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
14
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d4;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.e;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.c;
|
|
20
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
20
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ob;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.qb;
|
|
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.$_$.h;
|
|
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.$_$.b;
|
|
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.$_$.g;
|
|
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;
|
|
31
31
|
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
32
32
|
var charCodeAt = kotlin_kotlin.$_$.va;
|
|
33
|
-
var Enum = kotlin_kotlin.$_$.
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.ag;
|
|
34
34
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lb;
|
|
36
36
|
var println = kotlin_kotlin.$_$.w9;
|
|
37
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
37
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j3;
|
|
38
38
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
39
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
40
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s4;
|
|
40
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.zc;
|
|
41
41
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
42
42
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
43
43
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.q;
|
|
44
44
|
var fromInt = kotlin_kotlin.$_$.da;
|
|
45
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
46
46
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
47
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.pb;
|
|
48
|
+
var constructCallableReference = kotlin_kotlin.$_$.ab;
|
|
48
49
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
49
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
50
|
+
var isSuspendFunction = kotlin_kotlin.$_$.bc;
|
|
50
51
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
51
52
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
52
53
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
@@ -54,22 +55,22 @@
|
|
|
54
55
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
56
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
56
57
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
57
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
58
|
+
var isInterface = kotlin_kotlin.$_$.zb;
|
|
58
59
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
59
|
-
var readRemaining = kotlin_io_ktor_ktor_io.$_$.
|
|
60
|
+
var readRemaining = kotlin_io_ktor_ktor_io.$_$.k;
|
|
60
61
|
var Collection = kotlin_kotlin.$_$.i5;
|
|
61
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
62
|
+
var toString_0 = kotlin_kotlin.$_$.mh;
|
|
62
63
|
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.$_$.
|
|
64
|
+
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
65
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
65
66
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
66
67
|
var Url = kotlin_io_ktor_ktor_http.$_$.g1;
|
|
67
68
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
68
69
|
var joinToString = kotlin_kotlin.$_$.m7;
|
|
69
|
-
var equals = kotlin_kotlin.$_$.
|
|
70
|
+
var equals = kotlin_kotlin.$_$.cb;
|
|
70
71
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
71
72
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
72
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
73
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ih;
|
|
73
74
|
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
74
75
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
75
76
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
@@ -83,30 +84,30 @@
|
|
|
83
84
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
84
85
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
85
86
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
87
|
+
var toLongOrNull = kotlin_kotlin.$_$.df;
|
|
87
88
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
88
89
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
89
90
|
var subtract = kotlin_kotlin.$_$.ma;
|
|
90
91
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
91
92
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
92
93
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
93
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
94
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
-
var createKType = kotlin_kotlin.$_$.
|
|
94
|
+
var getKClass = kotlin_kotlin.$_$.ad;
|
|
95
|
+
var arrayOf = kotlin_kotlin.$_$.xg;
|
|
96
|
+
var createKType = kotlin_kotlin.$_$.yc;
|
|
96
97
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
97
98
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
|
|
98
|
-
var Unit = kotlin_kotlin.$_$.
|
|
99
|
+
var Unit = kotlin_kotlin.$_$.ug;
|
|
99
100
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
100
101
|
var toList = kotlin_kotlin.$_$.n8;
|
|
101
102
|
var sortedWith = kotlin_kotlin.$_$.i8;
|
|
102
103
|
var FunctionAdapter = kotlin_kotlin.$_$.oa;
|
|
103
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
104
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
104
|
+
var Comparator = kotlin_kotlin.$_$.xf;
|
|
105
|
+
var hashCode = kotlin_kotlin.$_$.jb;
|
|
105
106
|
var compareValues = kotlin_kotlin.$_$.z8;
|
|
106
107
|
var writer = kotlin_io_ktor_ktor_io.$_$.y1;
|
|
107
108
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
109
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.d1;
|
|
109
|
-
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.
|
|
110
|
+
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.p;
|
|
110
111
|
var get = kotlin_kotlin.$_$.o9;
|
|
111
112
|
var fold = kotlin_kotlin.$_$.n9;
|
|
112
113
|
var minusKey = kotlin_kotlin.$_$.p9;
|
|
@@ -119,10 +120,10 @@
|
|
|
119
120
|
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
120
121
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
121
122
|
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
122
|
-
return this.
|
|
123
|
+
return this.v5a(contentLength, contentType, headers, body, $completion);
|
|
123
124
|
}
|
|
124
125
|
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
-
return this.
|
|
126
|
+
return this.v5a(contentLength, contentType, headers, body, $completion);
|
|
126
127
|
}
|
|
127
128
|
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
128
129
|
function get_byteSize() {
|
|
@@ -175,8 +176,8 @@
|
|
|
175
176
|
//endregion
|
|
176
177
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
177
178
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
179
|
+
this.l59_1 = _this__u8e3s4;
|
|
180
|
+
this.m59_1 = message;
|
|
180
181
|
}
|
|
181
182
|
protoOf($logResponseExceptionCOROUTINE$).l9 = function () {
|
|
182
183
|
var suspendResult = this.f9_1;
|
|
@@ -187,15 +188,15 @@
|
|
|
187
188
|
case 0:
|
|
188
189
|
this.e9_1 = 2;
|
|
189
190
|
this.d9_1 = 1;
|
|
190
|
-
suspendResult = this.
|
|
191
|
+
suspendResult = this.l59_1.q59_1.av(this);
|
|
191
192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
192
193
|
return suspendResult;
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
continue $sm;
|
|
196
197
|
case 1:
|
|
197
|
-
var this_0 = this.
|
|
198
|
-
this.
|
|
198
|
+
var this_0 = this.m59_1;
|
|
199
|
+
this.l59_1.n59_1.u59(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
199
200
|
return Unit_instance;
|
|
200
201
|
case 2:
|
|
201
202
|
throw this.g9_1;
|
|
@@ -213,8 +214,8 @@
|
|
|
213
214
|
};
|
|
214
215
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
215
216
|
CoroutineImpl.call(this, resultContinuation);
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
217
|
+
this.d5a_1 = _this__u8e3s4;
|
|
218
|
+
this.e5a_1 = message;
|
|
218
219
|
}
|
|
219
220
|
protoOf($logResponseBodyCOROUTINE$).l9 = function () {
|
|
220
221
|
var suspendResult = this.f9_1;
|
|
@@ -225,14 +226,14 @@
|
|
|
225
226
|
case 0:
|
|
226
227
|
this.e9_1 = 2;
|
|
227
228
|
this.d9_1 = 1;
|
|
228
|
-
suspendResult = this.
|
|
229
|
+
suspendResult = this.d5a_1.r59_1.av(this);
|
|
229
230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
230
231
|
return suspendResult;
|
|
231
232
|
}
|
|
232
233
|
|
|
233
234
|
continue $sm;
|
|
234
235
|
case 1:
|
|
235
|
-
this.
|
|
236
|
+
this.d5a_1.p59_1.q(this.e5a_1);
|
|
236
237
|
return Unit_instance;
|
|
237
238
|
case 2:
|
|
238
239
|
throw this.g9_1;
|
|
@@ -250,7 +251,7 @@
|
|
|
250
251
|
};
|
|
251
252
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
252
253
|
CoroutineImpl.call(this, resultContinuation);
|
|
253
|
-
this.
|
|
254
|
+
this.n5a_1 = _this__u8e3s4;
|
|
254
255
|
}
|
|
255
256
|
protoOf($closeResponseLogCOROUTINE$).l9 = function () {
|
|
256
257
|
var suspendResult = this.f9_1;
|
|
@@ -260,19 +261,19 @@
|
|
|
260
261
|
switch (tmp) {
|
|
261
262
|
case 0:
|
|
262
263
|
this.e9_1 = 2;
|
|
263
|
-
if (!this.
|
|
264
|
+
if (!this.n5a_1.t59_1.atomicfu$compareAndSet(false, true))
|
|
264
265
|
return Unit_instance;
|
|
265
266
|
this.d9_1 = 1;
|
|
266
|
-
suspendResult = this.
|
|
267
|
+
suspendResult = this.n5a_1.q59_1.av(this);
|
|
267
268
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
268
269
|
return suspendResult;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
continue $sm;
|
|
272
273
|
case 1:
|
|
273
|
-
var message = toString(trim(this.
|
|
274
|
+
var message = toString(trim(this.n5a_1.p59_1));
|
|
274
275
|
if (charSequenceLength(message) > 0) {
|
|
275
|
-
this.
|
|
276
|
+
this.n5a_1.n59_1.u59(message);
|
|
276
277
|
}
|
|
277
278
|
|
|
278
279
|
return Unit_instance;
|
|
@@ -291,57 +292,57 @@
|
|
|
291
292
|
while (true);
|
|
292
293
|
};
|
|
293
294
|
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.
|
|
295
|
+
this.n59_1 = logger;
|
|
296
|
+
this.o59_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.p59_1 = StringBuilder_init_$Create$();
|
|
298
|
+
this.q59_1 = Job();
|
|
299
|
+
this.r59_1 = Job();
|
|
300
|
+
this.s59_1 = atomic$boolean$1(false);
|
|
301
|
+
this.t59_1 = atomic$boolean$1(false);
|
|
302
|
+
}
|
|
303
|
+
protoOf(HttpClientCallLogger).o5a = function (message) {
|
|
304
|
+
var tmp0 = this.o59_1;
|
|
304
305
|
// Inline function 'kotlin.text.trim' call
|
|
305
306
|
// Inline function 'kotlin.text.appendLine' call
|
|
306
307
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
307
308
|
// Inline function 'kotlin.text.appendLine' call
|
|
308
309
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
309
310
|
};
|
|
310
|
-
protoOf(HttpClientCallLogger).
|
|
311
|
-
var tmp0 = this.
|
|
311
|
+
protoOf(HttpClientCallLogger).p5a = function (message) {
|
|
312
|
+
var tmp0 = this.p59_1;
|
|
312
313
|
// Inline function 'kotlin.text.trim' call
|
|
313
314
|
// Inline function 'kotlin.text.appendLine' call
|
|
314
315
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
315
316
|
// Inline function 'kotlin.text.appendLine' call
|
|
316
317
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
317
|
-
this.
|
|
318
|
+
this.r59_1.e12();
|
|
318
319
|
};
|
|
319
|
-
protoOf(HttpClientCallLogger).
|
|
320
|
+
protoOf(HttpClientCallLogger).q5a = function (message, $completion) {
|
|
320
321
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
321
322
|
tmp.f9_1 = Unit_instance;
|
|
322
323
|
tmp.g9_1 = null;
|
|
323
324
|
return tmp.l9();
|
|
324
325
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
326
|
+
protoOf(HttpClientCallLogger).r5a = function (message, $completion) {
|
|
326
327
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
327
328
|
tmp.f9_1 = Unit_instance;
|
|
328
329
|
tmp.g9_1 = null;
|
|
329
330
|
return tmp.l9();
|
|
330
331
|
};
|
|
331
|
-
protoOf(HttpClientCallLogger).
|
|
332
|
-
if (!this.
|
|
332
|
+
protoOf(HttpClientCallLogger).s5a = function () {
|
|
333
|
+
if (!this.s59_1.atomicfu$compareAndSet(false, true))
|
|
333
334
|
return Unit_instance;
|
|
334
335
|
try {
|
|
335
|
-
var message = toString(trim(this.
|
|
336
|
+
var message = toString(trim(this.o59_1));
|
|
336
337
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
337
338
|
if (charSequenceLength(message) > 0) {
|
|
338
|
-
this.
|
|
339
|
+
this.n59_1.u59(message);
|
|
339
340
|
}
|
|
340
341
|
}finally {
|
|
341
|
-
this.
|
|
342
|
+
this.q59_1.e12();
|
|
342
343
|
}
|
|
343
344
|
};
|
|
344
|
-
protoOf(HttpClientCallLogger).
|
|
345
|
+
protoOf(HttpClientCallLogger).t5a = function ($completion) {
|
|
345
346
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
346
347
|
tmp.f9_1 = Unit_instance;
|
|
347
348
|
tmp.g9_1 = null;
|
|
@@ -363,35 +364,35 @@
|
|
|
363
364
|
function Skip(reason, byteSize) {
|
|
364
365
|
reason = reason === VOID ? null : reason;
|
|
365
366
|
byteSize = byteSize === VOID ? null : byteSize;
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
367
|
+
this.y5a_1 = reason;
|
|
368
|
+
this.z5a_1 = byteSize;
|
|
368
369
|
}
|
|
369
|
-
protoOf(Skip).
|
|
370
|
-
return this.
|
|
370
|
+
protoOf(Skip).x5a = function () {
|
|
371
|
+
return this.z5a_1;
|
|
371
372
|
};
|
|
372
373
|
function Content() {
|
|
373
374
|
}
|
|
374
375
|
function BufferContent(buffer, charset, byteSize) {
|
|
375
376
|
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
377
|
+
this.b5b_1 = buffer;
|
|
378
|
+
this.c5b_1 = charset;
|
|
379
|
+
this.d5b_1 = byteSize;
|
|
379
380
|
}
|
|
380
|
-
protoOf(BufferContent).
|
|
381
|
-
return this.
|
|
381
|
+
protoOf(BufferContent).x5a = function () {
|
|
382
|
+
return this.d5b_1;
|
|
382
383
|
};
|
|
383
|
-
protoOf(BufferContent).
|
|
384
|
-
return readText(this.
|
|
384
|
+
protoOf(BufferContent).a5b = function () {
|
|
385
|
+
return readText(this.b5b_1, this.c5b_1);
|
|
385
386
|
};
|
|
386
387
|
function BodyFilterResult() {
|
|
387
388
|
}
|
|
388
389
|
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
389
390
|
CoroutineImpl.call(this, resultContinuation);
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
391
|
+
this.m5b_1 = _this__u8e3s4;
|
|
392
|
+
this.n5b_1 = contentLength;
|
|
393
|
+
this.o5b_1 = contentType;
|
|
394
|
+
this.p5b_1 = headers;
|
|
395
|
+
this.q5b_1 = body;
|
|
395
396
|
}
|
|
396
397
|
protoOf($filterAllCOROUTINE$).l9 = function () {
|
|
397
398
|
var suspendResult = this.f9_1;
|
|
@@ -401,13 +402,13 @@
|
|
|
401
402
|
switch (tmp) {
|
|
402
403
|
case 0:
|
|
403
404
|
this.e9_1 = 6;
|
|
404
|
-
if (this.
|
|
405
|
-
return new Skip('encoded', this.
|
|
405
|
+
if (this.p5b_1.i2o('Content-Encoding')) {
|
|
406
|
+
return new Skip('encoded', this.n5b_1);
|
|
406
407
|
}
|
|
407
408
|
|
|
408
|
-
if (!(this.
|
|
409
|
+
if (!(this.o5b_1 == null) && isTextType(this.o5b_1)) {
|
|
409
410
|
this.d9_1 = 5;
|
|
410
|
-
suspendResult = readBuffer(this.
|
|
411
|
+
suspendResult = readBuffer(this.q5b_1, this);
|
|
411
412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
412
413
|
return suspendResult;
|
|
413
414
|
}
|
|
@@ -420,18 +421,18 @@
|
|
|
420
421
|
case 1:
|
|
421
422
|
var tmp_0 = this;
|
|
422
423
|
var tmp_1;
|
|
423
|
-
if (!(this.
|
|
424
|
-
var tmp1_elvis_lhs = charset(this.
|
|
425
|
-
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
424
|
+
if (!(this.o5b_1 == null)) {
|
|
425
|
+
var tmp1_elvis_lhs = charset(this.o5b_1);
|
|
426
|
+
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp1_elvis_lhs;
|
|
426
427
|
} else {
|
|
427
|
-
tmp_1 = Charsets_getInstance().
|
|
428
|
+
tmp_1 = Charsets_getInstance().c1z_1;
|
|
428
429
|
}
|
|
429
430
|
|
|
430
|
-
tmp_0.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
431
|
+
tmp_0.w5b_1 = tmp_1;
|
|
432
|
+
this.v5b_1 = false;
|
|
433
|
+
this.u5b_1 = new Int8Array(1024);
|
|
433
434
|
this.d9_1 = 2;
|
|
434
|
-
suspendResult = readAvailable(this.
|
|
435
|
+
suspendResult = readAvailable(this.q5b_1, this.u5b_1, VOID, VOID, this);
|
|
435
436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
436
437
|
return suspendResult;
|
|
437
438
|
}
|
|
@@ -444,16 +445,16 @@
|
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
var this_0 = new Buffer();
|
|
447
|
-
writeFully(this_0, this.
|
|
448
|
+
writeFully(this_0, this.u5b_1, 0, firstReadSize);
|
|
448
449
|
var buffer = this_0;
|
|
449
450
|
var tmp_2;
|
|
450
451
|
try {
|
|
451
|
-
tmp_2 = decode(this.
|
|
452
|
+
tmp_2 = decode(this.w5b_1.f1z(), buffer);
|
|
452
453
|
} catch ($p) {
|
|
453
454
|
var tmp_3;
|
|
454
455
|
if ($p instanceof MalformedInputException) {
|
|
455
456
|
var _unused_var__etf5q3 = $p;
|
|
456
|
-
this.
|
|
457
|
+
this.v5b_1 = true;
|
|
457
458
|
tmp_3 = '';
|
|
458
459
|
} else {
|
|
459
460
|
throw $p;
|
|
@@ -462,7 +463,7 @@
|
|
|
462
463
|
}
|
|
463
464
|
|
|
464
465
|
var firstChunkText = tmp_2;
|
|
465
|
-
if (!this.
|
|
466
|
+
if (!this.v5b_1) {
|
|
466
467
|
var lastCharIndex = -1;
|
|
467
468
|
var inductionVariable = 0;
|
|
468
469
|
var last = firstChunkText.length;
|
|
@@ -478,23 +479,23 @@
|
|
|
478
479
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
479
480
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
480
481
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
481
|
-
this.
|
|
482
|
+
this.v5b_1 = true;
|
|
482
483
|
break $l$loop;
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
487
|
|
|
487
|
-
if (this.
|
|
488
|
+
if (this.v5b_1) {
|
|
488
489
|
var tmp_4 = this;
|
|
489
|
-
tmp_4.
|
|
490
|
+
tmp_4.r5b_1 = new Skip('binary', this.n5b_1);
|
|
490
491
|
this.d9_1 = 4;
|
|
491
492
|
continue $sm;
|
|
492
493
|
} else {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
writeFully(this.
|
|
494
|
+
this.s5b_1 = new Buffer();
|
|
495
|
+
this.t5b_1 = this.s5b_1;
|
|
496
|
+
writeFully(this.t5b_1, this.u5b_1, 0, firstReadSize);
|
|
496
497
|
this.d9_1 = 3;
|
|
497
|
-
suspendResult = readBuffer(this.
|
|
498
|
+
suspendResult = readBuffer(this.q5b_1, this);
|
|
498
499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
500
|
return suspendResult;
|
|
500
501
|
}
|
|
@@ -503,25 +504,25 @@
|
|
|
503
504
|
|
|
504
505
|
case 3:
|
|
505
506
|
var ARGUMENT = suspendResult;
|
|
506
|
-
this.
|
|
507
|
-
var ARGUMENT_0 = this.
|
|
507
|
+
this.t5b_1.bs(ARGUMENT);
|
|
508
|
+
var ARGUMENT_0 = this.s5b_1;
|
|
508
509
|
var tmp_5 = this;
|
|
509
|
-
var tmp2_safe_receiver = this.
|
|
510
|
+
var tmp2_safe_receiver = this.o5b_1;
|
|
510
511
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
-
tmp_5.
|
|
512
|
+
tmp_5.r5b_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp3_elvis_lhs);
|
|
512
513
|
this.d9_1 = 4;
|
|
513
514
|
continue $sm;
|
|
514
515
|
case 4:
|
|
515
|
-
return this.
|
|
516
|
+
return this.r5b_1;
|
|
516
517
|
case 5:
|
|
517
518
|
var ARGUMENT_1 = suspendResult;
|
|
518
|
-
var tmp0_elvis_lhs = charset(this.
|
|
519
|
-
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().
|
|
519
|
+
var tmp0_elvis_lhs = charset(this.o5b_1);
|
|
520
|
+
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp0_elvis_lhs);
|
|
520
521
|
case 6:
|
|
521
522
|
throw this.g9_1;
|
|
522
523
|
}
|
|
523
|
-
} catch ($
|
|
524
|
-
var e = $
|
|
524
|
+
} catch ($p_0) {
|
|
525
|
+
var e = $p_0;
|
|
525
526
|
if (this.e9_1 === 6) {
|
|
526
527
|
throw e;
|
|
527
528
|
} else {
|
|
@@ -533,7 +534,7 @@
|
|
|
533
534
|
};
|
|
534
535
|
function BinaryLogBodyFilter$1() {
|
|
535
536
|
}
|
|
536
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
537
|
+
protoOf(BinaryLogBodyFilter$1).v5a = function (contentLength, contentType, headers, body, $completion) {
|
|
537
538
|
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
538
539
|
tmp.f9_1 = Unit_instance;
|
|
539
540
|
tmp.g9_1 = null;
|
|
@@ -564,9 +565,9 @@
|
|
|
564
565
|
}
|
|
565
566
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
566
567
|
Enum.call(this, name, ordinal);
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
568
|
+
this.z5b_1 = info;
|
|
569
|
+
this.a5c_1 = headers;
|
|
570
|
+
this.b5c_1 = body;
|
|
570
571
|
}
|
|
571
572
|
function LogLevel_ALL_getInstance() {
|
|
572
573
|
LogLevel_initEntries();
|
|
@@ -590,27 +591,27 @@
|
|
|
590
591
|
}
|
|
591
592
|
function LoggedContent(originalContent, channel) {
|
|
592
593
|
ReadChannelContent.call(this);
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
594
|
+
this.d5c_1 = originalContent;
|
|
595
|
+
this.e5c_1 = channel;
|
|
596
|
+
this.f5c_1 = this.d5c_1.u37();
|
|
597
|
+
this.g5c_1 = this.d5c_1.w37();
|
|
598
|
+
this.h5c_1 = this.d5c_1.v37();
|
|
599
|
+
this.i5c_1 = this.d5c_1.w31();
|
|
599
600
|
}
|
|
600
|
-
protoOf(LoggedContent).
|
|
601
|
-
return this.
|
|
601
|
+
protoOf(LoggedContent).u37 = function () {
|
|
602
|
+
return this.f5c_1;
|
|
602
603
|
};
|
|
603
|
-
protoOf(LoggedContent).
|
|
604
|
-
return this.
|
|
604
|
+
protoOf(LoggedContent).w37 = function () {
|
|
605
|
+
return this.g5c_1;
|
|
605
606
|
};
|
|
606
|
-
protoOf(LoggedContent).
|
|
607
|
-
return this.
|
|
607
|
+
protoOf(LoggedContent).v37 = function () {
|
|
608
|
+
return this.h5c_1;
|
|
608
609
|
};
|
|
609
|
-
protoOf(LoggedContent).
|
|
610
|
-
return this.
|
|
610
|
+
protoOf(LoggedContent).w31 = function () {
|
|
611
|
+
return this.i5c_1;
|
|
611
612
|
};
|
|
612
|
-
protoOf(LoggedContent).
|
|
613
|
-
return this.
|
|
613
|
+
protoOf(LoggedContent).a38 = function () {
|
|
614
|
+
return this.e5c_1;
|
|
614
615
|
};
|
|
615
616
|
function Companion() {
|
|
616
617
|
}
|
|
@@ -623,7 +624,7 @@
|
|
|
623
624
|
}
|
|
624
625
|
function SimpleLogger() {
|
|
625
626
|
}
|
|
626
|
-
protoOf(SimpleLogger).
|
|
627
|
+
protoOf(SimpleLogger).u59 = function (message) {
|
|
627
628
|
println('HttpClient: ' + message);
|
|
628
629
|
};
|
|
629
630
|
var SimpleLogger_instance;
|
|
@@ -648,20 +649,20 @@
|
|
|
648
649
|
function LoggingConfig() {
|
|
649
650
|
var tmp = this;
|
|
650
651
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
651
|
-
tmp.
|
|
652
|
+
tmp.j5c_1 = ArrayList_init_$Create$();
|
|
652
653
|
var tmp_0 = this;
|
|
653
654
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
654
|
-
tmp_0.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
655
|
+
tmp_0.k5c_1 = ArrayList_init_$Create$();
|
|
656
|
+
this.l5c_1 = null;
|
|
657
|
+
this.m5c_1 = LoggingFormat_Default_getInstance();
|
|
658
|
+
this.n5c_1 = LogLevel_HEADERS_getInstance();
|
|
659
|
+
this.o5c_1 = get_BinaryLogBodyFilter();
|
|
659
660
|
}
|
|
660
|
-
protoOf(LoggingConfig).
|
|
661
|
-
this.
|
|
661
|
+
protoOf(LoggingConfig).p5c = function (value) {
|
|
662
|
+
this.l5c_1 = value;
|
|
662
663
|
};
|
|
663
|
-
protoOf(LoggingConfig).
|
|
664
|
-
var tmp0_elvis_lhs = this.
|
|
664
|
+
protoOf(LoggingConfig).q5c = function () {
|
|
665
|
+
var tmp0_elvis_lhs = this.l5c_1;
|
|
665
666
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
666
667
|
};
|
|
667
668
|
var LoggingFormat_Default_instance;
|
|
@@ -685,10 +686,10 @@
|
|
|
685
686
|
}
|
|
686
687
|
var tmp;
|
|
687
688
|
if (content instanceof ByteArrayContent) {
|
|
688
|
-
tmp = fromInt(content.
|
|
689
|
+
tmp = fromInt(content.x37().length);
|
|
689
690
|
} else {
|
|
690
691
|
if (content instanceof ContentWrapper) {
|
|
691
|
-
tmp = computeRequestBodySize(content.
|
|
692
|
+
tmp = computeRequestBodySize(content.g38());
|
|
692
693
|
} else {
|
|
693
694
|
if (content instanceof NoContent) {
|
|
694
695
|
tmp = 0n;
|
|
@@ -706,27 +707,27 @@
|
|
|
706
707
|
return tmp;
|
|
707
708
|
}
|
|
708
709
|
function Context(context) {
|
|
709
|
-
this.
|
|
710
|
+
this.r5c_1 = context;
|
|
710
711
|
}
|
|
711
|
-
protoOf(Context).
|
|
712
|
-
return this.
|
|
712
|
+
protoOf(Context).s5c = function (content, $completion) {
|
|
713
|
+
return this.r5c_1.i2s(content, $completion);
|
|
713
714
|
};
|
|
714
|
-
protoOf(Context).
|
|
715
|
-
return this.
|
|
715
|
+
protoOf(Context).t5c = function ($completion) {
|
|
716
|
+
return this.r5c_1.j2s($completion);
|
|
716
717
|
};
|
|
717
718
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
718
|
-
this.
|
|
719
|
+
this.c5d_1 = $handler;
|
|
719
720
|
CoroutineImpl.call(this, resultContinuation);
|
|
720
721
|
}
|
|
721
|
-
protoOf(SendHook$install$slambda).
|
|
722
|
-
var tmp = this.
|
|
722
|
+
protoOf(SendHook$install$slambda).n3q = function ($this$intercept, it, $completion) {
|
|
723
|
+
var tmp = this.o3q($this$intercept, it, $completion);
|
|
723
724
|
tmp.f9_1 = Unit_instance;
|
|
724
725
|
tmp.g9_1 = null;
|
|
725
726
|
return tmp.l9();
|
|
726
727
|
};
|
|
727
728
|
protoOf(SendHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
728
729
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
729
|
-
return this.
|
|
730
|
+
return this.n3q(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
730
731
|
};
|
|
731
732
|
protoOf(SendHook$install$slambda).l9 = function () {
|
|
732
733
|
var suspendResult = this.f9_1;
|
|
@@ -737,7 +738,7 @@
|
|
|
737
738
|
case 0:
|
|
738
739
|
this.e9_1 = 2;
|
|
739
740
|
this.d9_1 = 1;
|
|
740
|
-
suspendResult = this.
|
|
741
|
+
suspendResult = this.c5d_1(new Context(this.d5d_1), this.d5d_1.e2t_1, this);
|
|
741
742
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
742
743
|
return suspendResult;
|
|
743
744
|
}
|
|
@@ -759,52 +760,50 @@
|
|
|
759
760
|
}
|
|
760
761
|
while (true);
|
|
761
762
|
};
|
|
762
|
-
protoOf(SendHook$install$slambda).
|
|
763
|
-
var i = new SendHook$install$slambda(this.
|
|
764
|
-
i.
|
|
765
|
-
i.
|
|
763
|
+
protoOf(SendHook$install$slambda).o3q = function ($this$intercept, it, completion) {
|
|
764
|
+
var i = new SendHook$install$slambda(this.c5d_1, completion);
|
|
765
|
+
i.d5d_1 = $this$intercept;
|
|
766
|
+
i.e5d_1 = it;
|
|
766
767
|
return i;
|
|
767
768
|
};
|
|
768
769
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
769
770
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
770
|
-
|
|
771
|
-
return i.
|
|
772
|
-
};
|
|
773
|
-
l.$arity = 2;
|
|
774
|
-
return l;
|
|
771
|
+
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
772
|
+
return i.n3q($this$intercept, it, $completion);
|
|
773
|
+
}, 2);
|
|
775
774
|
}
|
|
776
775
|
function SendHook() {
|
|
777
776
|
}
|
|
778
|
-
protoOf(SendHook).
|
|
779
|
-
var tmp = Phases_getInstance().
|
|
780
|
-
client.
|
|
777
|
+
protoOf(SendHook).f5d = function (client, handler) {
|
|
778
|
+
var tmp = Phases_getInstance().e3s_1;
|
|
779
|
+
client.r3p_1.i2t(tmp, SendHook$install$slambda_0(handler, null));
|
|
781
780
|
};
|
|
782
|
-
protoOf(SendHook).
|
|
783
|
-
return this.
|
|
781
|
+
protoOf(SendHook).a3z = function (client, handler) {
|
|
782
|
+
return this.f5d(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
784
783
|
};
|
|
785
784
|
var SendHook_instance;
|
|
786
785
|
function SendHook_getInstance() {
|
|
787
786
|
return SendHook_instance;
|
|
788
787
|
}
|
|
789
788
|
function Context_0(context) {
|
|
790
|
-
this.
|
|
789
|
+
this.g5d_1 = context;
|
|
791
790
|
}
|
|
792
|
-
protoOf(Context_0).
|
|
793
|
-
return this.
|
|
791
|
+
protoOf(Context_0).b4o = function (response, $completion) {
|
|
792
|
+
return this.g5d_1.i2s(response, $completion);
|
|
794
793
|
};
|
|
795
794
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
796
|
-
this.
|
|
795
|
+
this.p5d_1 = $handler;
|
|
797
796
|
CoroutineImpl.call(this, resultContinuation);
|
|
798
797
|
}
|
|
799
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
800
|
-
var tmp = this.
|
|
798
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).m3z = function ($this$intercept, it, $completion) {
|
|
799
|
+
var tmp = this.n3z($this$intercept, it, $completion);
|
|
801
800
|
tmp.f9_1 = Unit_instance;
|
|
802
801
|
tmp.g9_1 = null;
|
|
803
802
|
return tmp.l9();
|
|
804
803
|
};
|
|
805
804
|
protoOf(ResponseAfterEncodingHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
806
805
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
807
|
-
return this.
|
|
806
|
+
return this.m3z(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
808
807
|
};
|
|
809
808
|
protoOf(ResponseAfterEncodingHook$install$slambda).l9 = function () {
|
|
810
809
|
var suspendResult = this.f9_1;
|
|
@@ -815,7 +814,7 @@
|
|
|
815
814
|
case 0:
|
|
816
815
|
this.e9_1 = 2;
|
|
817
816
|
this.d9_1 = 1;
|
|
818
|
-
suspendResult = this.
|
|
817
|
+
suspendResult = this.p5d_1(new Context_0(this.q5d_1), this.q5d_1.h2s(), this);
|
|
819
818
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
820
819
|
return suspendResult;
|
|
821
820
|
}
|
|
@@ -837,53 +836,51 @@
|
|
|
837
836
|
}
|
|
838
837
|
while (true);
|
|
839
838
|
};
|
|
840
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
841
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
842
|
-
i.
|
|
843
|
-
i.
|
|
839
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).n3z = function ($this$intercept, it, completion) {
|
|
840
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.p5d_1, completion);
|
|
841
|
+
i.q5d_1 = $this$intercept;
|
|
842
|
+
i.r5d_1 = it;
|
|
844
843
|
return i;
|
|
845
844
|
};
|
|
846
845
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
847
846
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
848
|
-
|
|
849
|
-
return i.
|
|
850
|
-
};
|
|
851
|
-
l.$arity = 2;
|
|
852
|
-
return l;
|
|
847
|
+
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
848
|
+
return i.m3z($this$intercept, it, $completion);
|
|
849
|
+
}, 2);
|
|
853
850
|
}
|
|
854
851
|
function ResponseAfterEncodingHook() {
|
|
855
852
|
}
|
|
856
|
-
protoOf(ResponseAfterEncodingHook).
|
|
853
|
+
protoOf(ResponseAfterEncodingHook).s5d = function (client, handler) {
|
|
857
854
|
var afterState = new PipelinePhase('AfterState');
|
|
858
|
-
client.
|
|
859
|
-
client.
|
|
855
|
+
client.s3p_1.f2t(Phases_getInstance_0().q3z_1, afterState);
|
|
856
|
+
client.s3p_1.i2t(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
860
857
|
};
|
|
861
|
-
protoOf(ResponseAfterEncodingHook).
|
|
862
|
-
return this.
|
|
858
|
+
protoOf(ResponseAfterEncodingHook).a3z = function (client, handler) {
|
|
859
|
+
return this.s5d(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
863
860
|
};
|
|
864
861
|
var ResponseAfterEncodingHook_instance;
|
|
865
862
|
function ResponseAfterEncodingHook_getInstance() {
|
|
866
863
|
return ResponseAfterEncodingHook_instance;
|
|
867
864
|
}
|
|
868
865
|
function Context_1(context) {
|
|
869
|
-
this.
|
|
866
|
+
this.t5d_1 = context;
|
|
870
867
|
}
|
|
871
|
-
protoOf(Context_1).
|
|
872
|
-
return this.
|
|
868
|
+
protoOf(Context_1).u5d = function ($completion) {
|
|
869
|
+
return this.t5d_1.j2s($completion);
|
|
873
870
|
};
|
|
874
871
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
875
|
-
this.
|
|
872
|
+
this.d5e_1 = $handler;
|
|
876
873
|
CoroutineImpl.call(this, resultContinuation);
|
|
877
874
|
}
|
|
878
|
-
protoOf(ResponseHook$install$slambda).
|
|
879
|
-
var tmp = this.
|
|
875
|
+
protoOf(ResponseHook$install$slambda).m3z = function ($this$intercept, it, $completion) {
|
|
876
|
+
var tmp = this.n3z($this$intercept, it, $completion);
|
|
880
877
|
tmp.f9_1 = Unit_instance;
|
|
881
878
|
tmp.g9_1 = null;
|
|
882
879
|
return tmp.l9();
|
|
883
880
|
};
|
|
884
881
|
protoOf(ResponseHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
885
882
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
886
|
-
return this.
|
|
883
|
+
return this.m3z(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
887
884
|
};
|
|
888
885
|
protoOf(ResponseHook$install$slambda).l9 = function () {
|
|
889
886
|
var suspendResult = this.f9_1;
|
|
@@ -894,7 +891,7 @@
|
|
|
894
891
|
case 0:
|
|
895
892
|
this.e9_1 = 2;
|
|
896
893
|
this.d9_1 = 1;
|
|
897
|
-
suspendResult = this.
|
|
894
|
+
suspendResult = this.d5e_1(new Context_1(this.e5e_1), this.e5e_1.h2s(), this);
|
|
898
895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
899
896
|
return suspendResult;
|
|
900
897
|
}
|
|
@@ -916,52 +913,50 @@
|
|
|
916
913
|
}
|
|
917
914
|
while (true);
|
|
918
915
|
};
|
|
919
|
-
protoOf(ResponseHook$install$slambda).
|
|
920
|
-
var i = new ResponseHook$install$slambda(this.
|
|
921
|
-
i.
|
|
922
|
-
i.
|
|
916
|
+
protoOf(ResponseHook$install$slambda).n3z = function ($this$intercept, it, completion) {
|
|
917
|
+
var i = new ResponseHook$install$slambda(this.d5e_1, completion);
|
|
918
|
+
i.e5e_1 = $this$intercept;
|
|
919
|
+
i.f5e_1 = it;
|
|
923
920
|
return i;
|
|
924
921
|
};
|
|
925
922
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
926
923
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
927
|
-
|
|
928
|
-
return i.
|
|
929
|
-
};
|
|
930
|
-
l.$arity = 2;
|
|
931
|
-
return l;
|
|
924
|
+
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
925
|
+
return i.m3z($this$intercept, it, $completion);
|
|
926
|
+
}, 2);
|
|
932
927
|
}
|
|
933
928
|
function ResponseHook() {
|
|
934
929
|
}
|
|
935
|
-
protoOf(ResponseHook).
|
|
936
|
-
var tmp = Phases_getInstance_0().
|
|
937
|
-
client.
|
|
930
|
+
protoOf(ResponseHook).g5e = function (client, handler) {
|
|
931
|
+
var tmp = Phases_getInstance_0().q3z_1;
|
|
932
|
+
client.s3p_1.i2t(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
938
933
|
};
|
|
939
|
-
protoOf(ResponseHook).
|
|
940
|
-
return this.
|
|
934
|
+
protoOf(ResponseHook).a3z = function (client, handler) {
|
|
935
|
+
return this.g5e(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
941
936
|
};
|
|
942
937
|
var ResponseHook_instance;
|
|
943
938
|
function ResponseHook_getInstance() {
|
|
944
939
|
return ResponseHook_instance;
|
|
945
940
|
}
|
|
946
941
|
function Context_2(context) {
|
|
947
|
-
this.
|
|
942
|
+
this.h5e_1 = context;
|
|
948
943
|
}
|
|
949
|
-
protoOf(Context_2).
|
|
950
|
-
return this.
|
|
944
|
+
protoOf(Context_2).i5e = function ($completion) {
|
|
945
|
+
return this.h5e_1.j2s($completion);
|
|
951
946
|
};
|
|
952
947
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
953
|
-
this.
|
|
948
|
+
this.r5e_1 = $handler;
|
|
954
949
|
CoroutineImpl.call(this, resultContinuation);
|
|
955
950
|
}
|
|
956
|
-
protoOf(ReceiveHook$install$slambda).
|
|
957
|
-
var tmp = this.
|
|
951
|
+
protoOf(ReceiveHook$install$slambda).i3r = function ($this$intercept, it, $completion) {
|
|
952
|
+
var tmp = this.j3r($this$intercept, it, $completion);
|
|
958
953
|
tmp.f9_1 = Unit_instance;
|
|
959
954
|
tmp.g9_1 = null;
|
|
960
955
|
return tmp.l9();
|
|
961
956
|
};
|
|
962
957
|
protoOf(ReceiveHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
963
958
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
964
|
-
return this.
|
|
959
|
+
return this.i3r(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
965
960
|
};
|
|
966
961
|
protoOf(ReceiveHook$install$slambda).l9 = function () {
|
|
967
962
|
var suspendResult = this.f9_1;
|
|
@@ -972,7 +967,7 @@
|
|
|
972
967
|
case 0:
|
|
973
968
|
this.e9_1 = 2;
|
|
974
969
|
this.d9_1 = 1;
|
|
975
|
-
suspendResult = this.
|
|
970
|
+
suspendResult = this.r5e_1(new Context_2(this.s5e_1), this.s5e_1.e2t_1, this);
|
|
976
971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
972
|
return suspendResult;
|
|
978
973
|
}
|
|
@@ -994,63 +989,59 @@
|
|
|
994
989
|
}
|
|
995
990
|
while (true);
|
|
996
991
|
};
|
|
997
|
-
protoOf(ReceiveHook$install$slambda).
|
|
998
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
999
|
-
i.
|
|
1000
|
-
i.
|
|
992
|
+
protoOf(ReceiveHook$install$slambda).j3r = function ($this$intercept, it, completion) {
|
|
993
|
+
var i = new ReceiveHook$install$slambda(this.r5e_1, completion);
|
|
994
|
+
i.s5e_1 = $this$intercept;
|
|
995
|
+
i.t5e_1 = it;
|
|
1001
996
|
return i;
|
|
1002
997
|
};
|
|
1003
998
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
1004
999
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1005
|
-
|
|
1006
|
-
return i.
|
|
1007
|
-
};
|
|
1008
|
-
l.$arity = 2;
|
|
1009
|
-
return l;
|
|
1000
|
+
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
1001
|
+
return i.i3r($this$intercept, it, $completion);
|
|
1002
|
+
}, 2);
|
|
1010
1003
|
}
|
|
1011
1004
|
function ReceiveHook() {
|
|
1012
1005
|
}
|
|
1013
|
-
protoOf(ReceiveHook).
|
|
1014
|
-
var tmp = Phases_getInstance_1().
|
|
1015
|
-
client.
|
|
1006
|
+
protoOf(ReceiveHook).u5e = function (client, handler) {
|
|
1007
|
+
var tmp = Phases_getInstance_1().s3s_1;
|
|
1008
|
+
client.q3p_1.i2t(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1016
1009
|
};
|
|
1017
|
-
protoOf(ReceiveHook).
|
|
1018
|
-
return this.
|
|
1010
|
+
protoOf(ReceiveHook).a3z = function (client, handler) {
|
|
1011
|
+
return this.u5e(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1019
1012
|
};
|
|
1020
1013
|
var ReceiveHook_instance;
|
|
1021
1014
|
function ReceiveHook_getInstance() {
|
|
1022
1015
|
return ReceiveHook_instance;
|
|
1023
1016
|
}
|
|
1024
1017
|
function LoggingConfig$_init_$ref_f1nb0k() {
|
|
1025
|
-
|
|
1018
|
+
return constructCallableReference(function () {
|
|
1026
1019
|
return new LoggingConfig();
|
|
1027
|
-
};
|
|
1028
|
-
l.callableName = '<init>';
|
|
1029
|
-
return l;
|
|
1020
|
+
}, 0, 0, 40, '<init>');
|
|
1030
1021
|
}
|
|
1031
1022
|
function Logging$lambda($this$createClientPlugin) {
|
|
1032
1023
|
_init_properties_Logging_kt__66pui5();
|
|
1033
|
-
var logger = $this$createClientPlugin.
|
|
1034
|
-
var level = $this$createClientPlugin.
|
|
1035
|
-
var filters = $this$createClientPlugin.
|
|
1036
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
1037
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
1038
|
-
var bodyFilter = $this$createClientPlugin.
|
|
1024
|
+
var logger = $this$createClientPlugin.u3z_1.q5c();
|
|
1025
|
+
var level = $this$createClientPlugin.u3z_1.n5c_1;
|
|
1026
|
+
var filters = $this$createClientPlugin.u3z_1.j5c_1;
|
|
1027
|
+
var sanitizedHeaders = $this$createClientPlugin.u3z_1.k5c_1;
|
|
1028
|
+
var okHttpFormat = $this$createClientPlugin.u3z_1.m5c_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1029
|
+
var bodyFilter = $this$createClientPlugin.u3z_1.o5c_1;
|
|
1039
1030
|
var tmp = SendHook_instance;
|
|
1040
|
-
$this$createClientPlugin.
|
|
1031
|
+
$this$createClientPlugin.x3z(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1041
1032
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1042
|
-
$this$createClientPlugin.
|
|
1033
|
+
$this$createClientPlugin.x3z(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1043
1034
|
var tmp_1 = ResponseHook_instance;
|
|
1044
|
-
$this$createClientPlugin.
|
|
1035
|
+
$this$createClientPlugin.x3z(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1045
1036
|
var tmp_2 = ReceiveHook_instance;
|
|
1046
|
-
$this$createClientPlugin.
|
|
1037
|
+
$this$createClientPlugin.x3z(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, logger, null));
|
|
1047
1038
|
if (okHttpFormat)
|
|
1048
1039
|
return Unit_instance;
|
|
1049
|
-
if (!level.
|
|
1040
|
+
if (!level.b5c_1)
|
|
1050
1041
|
return Unit_instance;
|
|
1051
1042
|
var tmp_3 = get_ResponseObserver();
|
|
1052
|
-
var responseObserver = tmp_3.
|
|
1053
|
-
get_ResponseObserver().
|
|
1043
|
+
var responseObserver = tmp_3.z3s(Logging$lambda$lambda(level));
|
|
1044
|
+
get_ResponseObserver().a3t(responseObserver, $this$createClientPlugin.t3z_1);
|
|
1054
1045
|
return Unit_instance;
|
|
1055
1046
|
}
|
|
1056
1047
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
@@ -1058,18 +1049,18 @@
|
|
|
1058
1049
|
return it;
|
|
1059
1050
|
}
|
|
1060
1051
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1052
|
+
this.d5f_1 = $content;
|
|
1053
|
+
this.e5f_1 = $channel;
|
|
1063
1054
|
CoroutineImpl.call(this, resultContinuation);
|
|
1064
1055
|
}
|
|
1065
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1066
|
-
var tmp = this.
|
|
1056
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).c1y = function ($this$launch, $completion) {
|
|
1057
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
1067
1058
|
tmp.f9_1 = Unit_instance;
|
|
1068
1059
|
tmp.g9_1 = null;
|
|
1069
1060
|
return tmp.l9();
|
|
1070
1061
|
};
|
|
1071
1062
|
protoOf(Logging$lambda$logOutgoingContent$slambda).y9 = function (p1, $completion) {
|
|
1072
|
-
return this.
|
|
1063
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1073
1064
|
};
|
|
1074
1065
|
protoOf(Logging$lambda$logOutgoingContent$slambda).l9 = function () {
|
|
1075
1066
|
var suspendResult = this.f9_1;
|
|
@@ -1080,14 +1071,14 @@
|
|
|
1080
1071
|
case 0:
|
|
1081
1072
|
this.e9_1 = 2;
|
|
1082
1073
|
this.d9_1 = 1;
|
|
1083
|
-
suspendResult = this.
|
|
1074
|
+
suspendResult = this.d5f_1.c38(this.e5f_1, this);
|
|
1084
1075
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
1076
|
return suspendResult;
|
|
1086
1077
|
}
|
|
1087
1078
|
|
|
1088
1079
|
continue $sm;
|
|
1089
1080
|
case 1:
|
|
1090
|
-
this.
|
|
1081
|
+
this.e5f_1.o4();
|
|
1091
1082
|
return Unit_instance;
|
|
1092
1083
|
case 2:
|
|
1093
1084
|
throw this.g9_1;
|
|
@@ -1103,22 +1094,20 @@
|
|
|
1103
1094
|
}
|
|
1104
1095
|
while (true);
|
|
1105
1096
|
};
|
|
1106
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).
|
|
1107
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1108
|
-
i.
|
|
1097
|
+
protoOf(Logging$lambda$logOutgoingContent$slambda).d1y = function ($this$launch, completion) {
|
|
1098
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.d5f_1, this.e5f_1, completion);
|
|
1099
|
+
i.f5f_1 = $this$launch;
|
|
1109
1100
|
return i;
|
|
1110
1101
|
};
|
|
1111
1102
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1112
1103
|
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1113
|
-
|
|
1114
|
-
return i.
|
|
1115
|
-
};
|
|
1116
|
-
l.$arity = 1;
|
|
1117
|
-
return l;
|
|
1104
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
1105
|
+
return i.c1y($this$launch, $completion);
|
|
1106
|
+
}, 1);
|
|
1118
1107
|
}
|
|
1119
1108
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1120
1109
|
_init_properties_Logging_kt__66pui5();
|
|
1121
|
-
return GZipEncoder_getInstance().
|
|
1110
|
+
return GZipEncoder_getInstance().a2p(channel);
|
|
1122
1111
|
}
|
|
1123
1112
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1124
1113
|
return function ($this$replaceResponse) {
|
|
@@ -1126,20 +1115,20 @@
|
|
|
1126
1115
|
};
|
|
1127
1116
|
}
|
|
1128
1117
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1118
|
+
this.o5f_1 = $channel;
|
|
1119
|
+
this.p5f_1 = $charset;
|
|
1120
|
+
this.q5f_1 = $requestLog;
|
|
1121
|
+
this.r5f_1 = $logger;
|
|
1133
1122
|
CoroutineImpl.call(this, resultContinuation);
|
|
1134
1123
|
}
|
|
1135
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1136
|
-
var tmp = this.
|
|
1124
|
+
protoOf(Logging$lambda$logRequestBody$slambda).c1y = function ($this$launch, $completion) {
|
|
1125
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
1137
1126
|
tmp.f9_1 = Unit_instance;
|
|
1138
1127
|
tmp.g9_1 = null;
|
|
1139
1128
|
return tmp.l9();
|
|
1140
1129
|
};
|
|
1141
1130
|
protoOf(Logging$lambda$logRequestBody$slambda).y9 = function (p1, $completion) {
|
|
1142
|
-
return this.
|
|
1131
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1143
1132
|
};
|
|
1144
1133
|
protoOf(Logging$lambda$logRequestBody$slambda).l9 = function () {
|
|
1145
1134
|
var suspendResult = this.f9_1;
|
|
@@ -1153,8 +1142,8 @@
|
|
|
1153
1142
|
continue $sm;
|
|
1154
1143
|
case 1:
|
|
1155
1144
|
this.e9_1 = 6;
|
|
1156
|
-
var tmp0 = this.
|
|
1157
|
-
this.
|
|
1145
|
+
var tmp0 = this.o5f_1;
|
|
1146
|
+
this.v5f_1 = this.p5f_1;
|
|
1158
1147
|
this.e9_1 = 3;
|
|
1159
1148
|
this.d9_1 = 2;
|
|
1160
1149
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1165,7 +1154,7 @@
|
|
|
1165
1154
|
continue $sm;
|
|
1166
1155
|
case 2:
|
|
1167
1156
|
var ARGUMENT = suspendResult;
|
|
1168
|
-
this.
|
|
1157
|
+
this.u5f_1 = readText(ARGUMENT, this.v5f_1);
|
|
1169
1158
|
this.e9_1 = 6;
|
|
1170
1159
|
this.d9_1 = 4;
|
|
1171
1160
|
continue $sm;
|
|
@@ -1175,7 +1164,7 @@
|
|
|
1175
1164
|
if (tmp_0 instanceof Error) {
|
|
1176
1165
|
var cause = this.g9_1;
|
|
1177
1166
|
var tmp_1 = this;
|
|
1178
|
-
tmp_1.
|
|
1167
|
+
tmp_1.u5f_1 = null;
|
|
1179
1168
|
this.d9_1 = 4;
|
|
1180
1169
|
continue $sm;
|
|
1181
1170
|
} else {
|
|
@@ -1184,27 +1173,27 @@
|
|
|
1184
1173
|
|
|
1185
1174
|
case 4:
|
|
1186
1175
|
this.e9_1 = 6;
|
|
1187
|
-
var tmp0_elvis_lhs = this.
|
|
1176
|
+
var tmp0_elvis_lhs = this.u5f_1;
|
|
1188
1177
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1189
|
-
var tmp0_0 = this.
|
|
1178
|
+
var tmp0_0 = this.q5f_1;
|
|
1190
1179
|
var value = 'BODY START';
|
|
1191
1180
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1181
|
+
this.q5f_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1182
|
+
this.t5f_1 = this.q5f_1.q('BODY END');
|
|
1194
1183
|
this.e9_1 = 7;
|
|
1195
1184
|
this.d9_1 = 5;
|
|
1196
1185
|
continue $sm;
|
|
1197
1186
|
case 5:
|
|
1198
|
-
this.
|
|
1187
|
+
this.t5f_1;
|
|
1199
1188
|
this.e9_1 = 7;
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1189
|
+
this.r5f_1.o5a(this.q5f_1.toString());
|
|
1190
|
+
this.r5f_1.s5a();
|
|
1202
1191
|
return Unit_instance;
|
|
1203
1192
|
case 6:
|
|
1204
1193
|
this.e9_1 = 7;
|
|
1205
1194
|
var t = this.g9_1;
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1195
|
+
this.r5f_1.o5a(this.q5f_1.toString());
|
|
1196
|
+
this.r5f_1.s5a();
|
|
1208
1197
|
throw t;
|
|
1209
1198
|
case 7:
|
|
1210
1199
|
throw this.g9_1;
|
|
@@ -1220,18 +1209,16 @@
|
|
|
1220
1209
|
}
|
|
1221
1210
|
while (true);
|
|
1222
1211
|
};
|
|
1223
|
-
protoOf(Logging$lambda$logRequestBody$slambda).
|
|
1224
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1225
|
-
i.
|
|
1212
|
+
protoOf(Logging$lambda$logRequestBody$slambda).d1y = function ($this$launch, completion) {
|
|
1213
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.o5f_1, this.p5f_1, this.q5f_1, this.r5f_1, completion);
|
|
1214
|
+
i.s5f_1 = $this$launch;
|
|
1226
1215
|
return i;
|
|
1227
1216
|
};
|
|
1228
1217
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1229
1218
|
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1230
|
-
|
|
1231
|
-
return i.
|
|
1232
|
-
};
|
|
1233
|
-
l.$arity = 1;
|
|
1234
|
-
return l;
|
|
1219
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
1220
|
+
return i.c1y($this$launch, $completion);
|
|
1221
|
+
}, 1);
|
|
1235
1222
|
}
|
|
1236
1223
|
function invoke$shouldBeLogged(filters, request) {
|
|
1237
1224
|
var tmp;
|
|
@@ -1317,47 +1304,47 @@
|
|
|
1317
1304
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1318
1305
|
var requestLog = StringBuilder_init_$Create$();
|
|
1319
1306
|
// Inline function 'kotlin.text.appendLine' call
|
|
1320
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1307
|
+
var value = 'BODY Content-Type: ' + toString_0(content.u37());
|
|
1321
1308
|
// Inline function 'kotlin.text.appendLine' call
|
|
1322
1309
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1323
|
-
var tmp0_safe_receiver = content.
|
|
1310
|
+
var tmp0_safe_receiver = content.u37();
|
|
1324
1311
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1325
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
1312
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp1_elvis_lhs;
|
|
1326
1313
|
var channel = new ByteChannel();
|
|
1327
1314
|
var tmp = GlobalScope_instance;
|
|
1328
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1315
|
+
var tmp_0 = Dispatchers_getInstance().k16_1.gh(MDCContext());
|
|
1329
1316
|
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1330
1317
|
return observe(content, channel, $completion);
|
|
1331
1318
|
}
|
|
1332
1319
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1333
|
-
if (level.
|
|
1334
|
-
logger.
|
|
1320
|
+
if (level.z5b_1) {
|
|
1321
|
+
logger.u59('REQUEST ' + Url(context.u3r_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1335
1322
|
}
|
|
1336
1323
|
}
|
|
1337
1324
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1338
|
-
var tmp = request.
|
|
1325
|
+
var tmp = request.x3r_1;
|
|
1339
1326
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1340
1327
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1341
|
-
request.
|
|
1328
|
+
request.z3r_1.c2l(get_ClientCallLogger(), callLogger);
|
|
1342
1329
|
// Inline function 'kotlin.text.buildString' call
|
|
1343
1330
|
// Inline function 'kotlin.apply' call
|
|
1344
1331
|
var this_0 = StringBuilder_init_$Create$();
|
|
1345
|
-
if (level.
|
|
1332
|
+
if (level.z5b_1) {
|
|
1346
1333
|
// Inline function 'kotlin.text.appendLine' call
|
|
1347
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1334
|
+
var value = 'REQUEST: ' + Url(request.u3r_1).toString();
|
|
1348
1335
|
// Inline function 'kotlin.text.appendLine' call
|
|
1349
1336
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1350
1337
|
// Inline function 'kotlin.text.appendLine' call
|
|
1351
|
-
var value_0 = 'METHOD: ' + request.
|
|
1338
|
+
var value_0 = 'METHOD: ' + request.v3r_1.toString();
|
|
1352
1339
|
// Inline function 'kotlin.text.appendLine' call
|
|
1353
1340
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1354
1341
|
}
|
|
1355
|
-
if (level.
|
|
1342
|
+
if (level.a5c_1) {
|
|
1356
1343
|
// Inline function 'kotlin.text.appendLine' call
|
|
1357
1344
|
var value_1 = 'COMMON HEADERS';
|
|
1358
1345
|
// Inline function 'kotlin.text.appendLine' call
|
|
1359
1346
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1360
|
-
logHeaders(this_0, request.
|
|
1347
|
+
logHeaders(this_0, request.w3r_1.n2p(), sanitizedHeaders);
|
|
1361
1348
|
// Inline function 'kotlin.text.appendLine' call
|
|
1362
1349
|
var value_2 = 'CONTENT HEADERS';
|
|
1363
1350
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1368,7 +1355,7 @@
|
|
|
1368
1355
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1369
1356
|
while (_iterator__ex2g4s.u()) {
|
|
1370
1357
|
var element = _iterator__ex2g4s.v();
|
|
1371
|
-
if (element.
|
|
1358
|
+
if (element.v5i_1('Content-Length')) {
|
|
1372
1359
|
tmp$ret$11 = element;
|
|
1373
1360
|
break $l$block;
|
|
1374
1361
|
}
|
|
@@ -1376,14 +1363,14 @@
|
|
|
1376
1363
|
tmp$ret$11 = null;
|
|
1377
1364
|
}
|
|
1378
1365
|
var tmp0_safe_receiver = tmp$ret$11;
|
|
1379
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1366
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u5i_1;
|
|
1380
1367
|
var tmp$ret$13;
|
|
1381
1368
|
$l$block_0: {
|
|
1382
1369
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1383
1370
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1384
1371
|
while (_iterator__ex2g4s_0.u()) {
|
|
1385
1372
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1386
|
-
if (element_0.
|
|
1373
|
+
if (element_0.v5i_1('Content-Type')) {
|
|
1387
1374
|
tmp$ret$13 = element_0;
|
|
1388
1375
|
break $l$block_0;
|
|
1389
1376
|
}
|
|
@@ -1391,65 +1378,65 @@
|
|
|
1391
1378
|
tmp$ret$13 = null;
|
|
1392
1379
|
}
|
|
1393
1380
|
var tmp1_safe_receiver = tmp$ret$13;
|
|
1394
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1395
|
-
var tmp2_safe_receiver = content.
|
|
1381
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.u5i_1;
|
|
1382
|
+
var tmp2_safe_receiver = content.w37();
|
|
1396
1383
|
if (tmp2_safe_receiver == null)
|
|
1397
1384
|
null;
|
|
1398
1385
|
else {
|
|
1399
1386
|
// Inline function 'kotlin.let' call
|
|
1400
1387
|
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1401
1388
|
}
|
|
1402
|
-
var tmp3_safe_receiver = content.
|
|
1389
|
+
var tmp3_safe_receiver = content.u37();
|
|
1403
1390
|
if (tmp3_safe_receiver == null)
|
|
1404
1391
|
null;
|
|
1405
1392
|
else {
|
|
1406
1393
|
// Inline function 'kotlin.let' call
|
|
1407
1394
|
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1408
1395
|
}
|
|
1409
|
-
logHeaders(this_0, content.
|
|
1396
|
+
logHeaders(this_0, content.w31().n2p(), sanitizedHeaders);
|
|
1410
1397
|
}
|
|
1411
1398
|
var message = this_0.toString();
|
|
1412
1399
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1413
1400
|
if (charSequenceLength(message) > 0) {
|
|
1414
|
-
callLogger.
|
|
1401
|
+
callLogger.o5a(message);
|
|
1415
1402
|
}
|
|
1416
1403
|
var tmp_0;
|
|
1417
1404
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1418
1405
|
if (charSequenceLength(message) === 0) {
|
|
1419
1406
|
tmp_0 = true;
|
|
1420
1407
|
} else {
|
|
1421
|
-
tmp_0 = !level.
|
|
1408
|
+
tmp_0 = !level.b5c_1;
|
|
1422
1409
|
}
|
|
1423
1410
|
if (tmp_0) {
|
|
1424
|
-
callLogger.
|
|
1411
|
+
callLogger.s5a();
|
|
1425
1412
|
return null;
|
|
1426
1413
|
}
|
|
1427
1414
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1428
1415
|
}
|
|
1429
1416
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1430
|
-
if (!level.
|
|
1417
|
+
if (!level.z5b_1)
|
|
1431
1418
|
return Unit_instance;
|
|
1432
|
-
log.q('RESPONSE ' + request.
|
|
1419
|
+
log.q('RESPONSE ' + request.l3t().toString() + ' failed with exception: ' + cause.toString());
|
|
1433
1420
|
}
|
|
1434
1421
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1422
|
+
this.e5j_1 = $okHttpFormat;
|
|
1423
|
+
this.f5j_1 = $logger;
|
|
1424
|
+
this.g5j_1 = $filters;
|
|
1425
|
+
this.h5j_1 = $sanitizedHeaders;
|
|
1426
|
+
this.i5j_1 = $level;
|
|
1427
|
+
this.j5j_1 = $this_createClientPlugin;
|
|
1428
|
+
this.k5j_1 = $bodyFilter;
|
|
1442
1429
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
1430
|
}
|
|
1444
|
-
protoOf(Logging$lambda$slambda).
|
|
1445
|
-
var tmp = this.
|
|
1431
|
+
protoOf(Logging$lambda$slambda).t5j = function ($this$on, request, $completion) {
|
|
1432
|
+
var tmp = this.u5j($this$on, request, $completion);
|
|
1446
1433
|
tmp.f9_1 = Unit_instance;
|
|
1447
1434
|
tmp.g9_1 = null;
|
|
1448
1435
|
return tmp.l9();
|
|
1449
1436
|
};
|
|
1450
1437
|
protoOf(Logging$lambda$slambda).z9 = function (p1, p2, $completion) {
|
|
1451
1438
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1452
|
-
return this.
|
|
1439
|
+
return this.t5j(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1453
1440
|
};
|
|
1454
1441
|
protoOf(Logging$lambda$slambda).l9 = function () {
|
|
1455
1442
|
var suspendResult = this.f9_1;
|
|
@@ -1459,16 +1446,16 @@
|
|
|
1459
1446
|
switch (tmp) {
|
|
1460
1447
|
case 0:
|
|
1461
1448
|
this.e9_1 = 16;
|
|
1462
|
-
if (!invoke$shouldBeLogged(this.
|
|
1463
|
-
this.
|
|
1449
|
+
if (!invoke$shouldBeLogged(this.g5j_1, this.m5j_1)) {
|
|
1450
|
+
this.m5j_1.z3r_1.c2l(get_DisableLogging(), Unit_instance);
|
|
1464
1451
|
return Unit_instance;
|
|
1465
1452
|
}
|
|
1466
1453
|
|
|
1467
|
-
if (this.
|
|
1454
|
+
if (this.e5j_1) {
|
|
1468
1455
|
var tmp_0 = this;
|
|
1469
|
-
tmp_0.
|
|
1456
|
+
tmp_0.p5j_1 = ArrayList_init_$Create$();
|
|
1470
1457
|
this.d9_1 = 10;
|
|
1471
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1458
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.h5j_1, this.i5j_1, this.j5j_1, this.k5j_1, this.m5j_1, this.p5j_1, this);
|
|
1472
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1473
1460
|
return suspendResult;
|
|
1474
1461
|
}
|
|
@@ -1481,14 +1468,14 @@
|
|
|
1481
1468
|
case 1:
|
|
1482
1469
|
this.e9_1 = 3;
|
|
1483
1470
|
this.d9_1 = 2;
|
|
1484
|
-
suspendResult = invoke$logRequest(this.
|
|
1471
|
+
suspendResult = invoke$logRequest(this.f5j_1, this.i5j_1, this.h5j_1, this.m5j_1, this);
|
|
1485
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1486
1473
|
return suspendResult;
|
|
1487
1474
|
}
|
|
1488
1475
|
|
|
1489
1476
|
continue $sm;
|
|
1490
1477
|
case 2:
|
|
1491
|
-
this.
|
|
1478
|
+
this.s5j_1 = suspendResult;
|
|
1492
1479
|
this.e9_1 = 16;
|
|
1493
1480
|
this.d9_1 = 4;
|
|
1494
1481
|
continue $sm;
|
|
@@ -1498,7 +1485,7 @@
|
|
|
1498
1485
|
if (tmp_1 instanceof Error) {
|
|
1499
1486
|
var _unused_var__etf5q3 = this.g9_1;
|
|
1500
1487
|
var tmp_2 = this;
|
|
1501
|
-
tmp_2.
|
|
1488
|
+
tmp_2.s5j_1 = null;
|
|
1502
1489
|
this.d9_1 = 4;
|
|
1503
1490
|
continue $sm;
|
|
1504
1491
|
} else {
|
|
@@ -1507,23 +1494,23 @@
|
|
|
1507
1494
|
|
|
1508
1495
|
case 4:
|
|
1509
1496
|
this.e9_1 = 16;
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1497
|
+
this.r5j_1 = this.s5j_1;
|
|
1498
|
+
this.q5j_1 = Unit_instance;
|
|
1512
1499
|
this.d9_1 = 5;
|
|
1513
1500
|
continue $sm;
|
|
1514
1501
|
case 5:
|
|
1515
1502
|
this.e9_1 = 8;
|
|
1516
1503
|
this.e9_1 = 7;
|
|
1517
1504
|
this.d9_1 = 6;
|
|
1518
|
-
var tmp0_elvis_lhs = this.
|
|
1519
|
-
suspendResult = this.
|
|
1505
|
+
var tmp0_elvis_lhs = this.r5j_1;
|
|
1506
|
+
suspendResult = this.l5j_1.s5c(tmp0_elvis_lhs == null ? this.m5j_1.x3r_1 : tmp0_elvis_lhs, this);
|
|
1520
1507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1521
1508
|
return suspendResult;
|
|
1522
1509
|
}
|
|
1523
1510
|
|
|
1524
1511
|
continue $sm;
|
|
1525
1512
|
case 6:
|
|
1526
|
-
this.
|
|
1513
|
+
this.q5j_1 = suspendResult;
|
|
1527
1514
|
this.e9_1 = 16;
|
|
1528
1515
|
this.d9_1 = 9;
|
|
1529
1516
|
continue $sm;
|
|
@@ -1533,7 +1520,7 @@
|
|
|
1533
1520
|
if (tmp_3 instanceof Error) {
|
|
1534
1521
|
var cause = this.g9_1;
|
|
1535
1522
|
var tmp_4 = this;
|
|
1536
|
-
invoke$logRequestException(this.
|
|
1523
|
+
invoke$logRequestException(this.i5j_1, this.f5j_1, this.m5j_1, cause);
|
|
1537
1524
|
throw cause;
|
|
1538
1525
|
} else {
|
|
1539
1526
|
throw this.g9_1;
|
|
@@ -1544,26 +1531,26 @@
|
|
|
1544
1531
|
var t = this.g9_1;
|
|
1545
1532
|
throw t;
|
|
1546
1533
|
case 9:
|
|
1547
|
-
this.
|
|
1534
|
+
this.q5j_1;
|
|
1548
1535
|
this.e9_1 = 16;
|
|
1549
1536
|
return Unit_instance;
|
|
1550
1537
|
case 10:
|
|
1551
1538
|
var content = suspendResult;
|
|
1552
|
-
if (this.
|
|
1553
|
-
this.
|
|
1539
|
+
if (this.p5j_1.l1() > 0) {
|
|
1540
|
+
this.f5j_1.u59(joinToString(this.p5j_1, '\n'));
|
|
1554
1541
|
}
|
|
1555
1542
|
|
|
1556
1543
|
this.e9_1 = 14;
|
|
1557
1544
|
if (!(content == null)) {
|
|
1558
1545
|
this.d9_1 = 12;
|
|
1559
|
-
suspendResult = this.
|
|
1546
|
+
suspendResult = this.l5j_1.s5c(content, this);
|
|
1560
1547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1561
1548
|
return suspendResult;
|
|
1562
1549
|
}
|
|
1563
1550
|
continue $sm;
|
|
1564
1551
|
} else {
|
|
1565
1552
|
this.d9_1 = 11;
|
|
1566
|
-
suspendResult = this.
|
|
1553
|
+
suspendResult = this.l5j_1.t5c(this);
|
|
1567
1554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
1555
|
return suspendResult;
|
|
1569
1556
|
}
|
|
@@ -1571,15 +1558,15 @@
|
|
|
1571
1558
|
}
|
|
1572
1559
|
|
|
1573
1560
|
case 11:
|
|
1574
|
-
this.
|
|
1561
|
+
this.o5j_1 = suspendResult;
|
|
1575
1562
|
this.d9_1 = 13;
|
|
1576
1563
|
continue $sm;
|
|
1577
1564
|
case 12:
|
|
1578
|
-
this.
|
|
1565
|
+
this.o5j_1 = suspendResult;
|
|
1579
1566
|
this.d9_1 = 13;
|
|
1580
1567
|
continue $sm;
|
|
1581
1568
|
case 13:
|
|
1582
|
-
this.
|
|
1569
|
+
this.n5j_1 = this.o5j_1;
|
|
1583
1570
|
this.e9_1 = 16;
|
|
1584
1571
|
this.d9_1 = 15;
|
|
1585
1572
|
continue $sm;
|
|
@@ -1589,7 +1576,7 @@
|
|
|
1589
1576
|
if (tmp_5 instanceof Error) {
|
|
1590
1577
|
var cause_0 = this.g9_1;
|
|
1591
1578
|
var tmp_6 = this;
|
|
1592
|
-
this.
|
|
1579
|
+
this.f5j_1.u59('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1593
1580
|
throw cause_0;
|
|
1594
1581
|
} else {
|
|
1595
1582
|
throw this.g9_1;
|
|
@@ -1612,37 +1599,35 @@
|
|
|
1612
1599
|
}
|
|
1613
1600
|
while (true);
|
|
1614
1601
|
};
|
|
1615
|
-
protoOf(Logging$lambda$slambda).
|
|
1616
|
-
var i = new Logging$lambda$slambda(this.
|
|
1617
|
-
i.
|
|
1618
|
-
i.
|
|
1602
|
+
protoOf(Logging$lambda$slambda).u5j = function ($this$on, request, completion) {
|
|
1603
|
+
var i = new Logging$lambda$slambda(this.e5j_1, this.f5j_1, this.g5j_1, this.h5j_1, this.i5j_1, this.j5j_1, this.k5j_1, completion);
|
|
1604
|
+
i.l5j_1 = $this$on;
|
|
1605
|
+
i.m5j_1 = request;
|
|
1619
1606
|
return i;
|
|
1620
1607
|
};
|
|
1621
1608
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1622
1609
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1623
|
-
|
|
1624
|
-
return i.
|
|
1625
|
-
};
|
|
1626
|
-
l.$arity = 2;
|
|
1627
|
-
return l;
|
|
1610
|
+
return constructCallableReference(function ($this$on, request, $completion) {
|
|
1611
|
+
return i.t5j($this$on, request, $completion);
|
|
1612
|
+
}, 2);
|
|
1628
1613
|
}
|
|
1629
1614
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1615
|
+
this.d5k_1 = $okHttpFormat;
|
|
1616
|
+
this.e5k_1 = $logger;
|
|
1617
|
+
this.f5k_1 = $sanitizedHeaders;
|
|
1618
|
+
this.g5k_1 = $level;
|
|
1619
|
+
this.h5k_1 = $bodyFilter;
|
|
1635
1620
|
CoroutineImpl.call(this, resultContinuation);
|
|
1636
1621
|
}
|
|
1637
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1638
|
-
var tmp = this.
|
|
1622
|
+
protoOf(Logging$lambda$slambda_1).l5k = function ($this$on, response, $completion) {
|
|
1623
|
+
var tmp = this.m5k($this$on, response, $completion);
|
|
1639
1624
|
tmp.f9_1 = Unit_instance;
|
|
1640
1625
|
tmp.g9_1 = null;
|
|
1641
1626
|
return tmp.l9();
|
|
1642
1627
|
};
|
|
1643
1628
|
protoOf(Logging$lambda$slambda_1).z9 = function (p1, p2, $completion) {
|
|
1644
1629
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1645
|
-
return this.
|
|
1630
|
+
return this.l5k(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1646
1631
|
};
|
|
1647
1632
|
protoOf(Logging$lambda$slambda_1).l9 = function () {
|
|
1648
1633
|
var suspendResult = this.f9_1;
|
|
@@ -1652,11 +1637,11 @@
|
|
|
1652
1637
|
switch (tmp) {
|
|
1653
1638
|
case 0:
|
|
1654
1639
|
this.e9_1 = 5;
|
|
1655
|
-
if (this.
|
|
1640
|
+
if (this.d5k_1) {
|
|
1656
1641
|
var tmp_0 = this;
|
|
1657
|
-
tmp_0.
|
|
1642
|
+
tmp_0.k5k_1 = ArrayList_init_$Create$();
|
|
1658
1643
|
this.d9_1 = 1;
|
|
1659
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1644
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.f5k_1, this.g5k_1, this.h5k_1, this.j5k_1, this.k5k_1, this);
|
|
1660
1645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1661
1646
|
return suspendResult;
|
|
1662
1647
|
}
|
|
@@ -1668,13 +1653,13 @@
|
|
|
1668
1653
|
|
|
1669
1654
|
case 1:
|
|
1670
1655
|
var newResponse = suspendResult;
|
|
1671
|
-
if (this.
|
|
1672
|
-
this.
|
|
1656
|
+
if (this.k5k_1.l1() > 0) {
|
|
1657
|
+
this.e5k_1.u59(joinToString(this.k5k_1, '\n'));
|
|
1673
1658
|
}
|
|
1674
1659
|
|
|
1675
|
-
if (!equals(newResponse, this.
|
|
1660
|
+
if (!equals(newResponse, this.j5k_1)) {
|
|
1676
1661
|
this.d9_1 = 2;
|
|
1677
|
-
suspendResult = this.
|
|
1662
|
+
suspendResult = this.i5k_1.b4o(newResponse, this);
|
|
1678
1663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1679
1664
|
return suspendResult;
|
|
1680
1665
|
}
|
|
@@ -1706,35 +1691,33 @@
|
|
|
1706
1691
|
}
|
|
1707
1692
|
while (true);
|
|
1708
1693
|
};
|
|
1709
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1710
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1711
|
-
i.
|
|
1712
|
-
i.
|
|
1694
|
+
protoOf(Logging$lambda$slambda_1).m5k = function ($this$on, response, completion) {
|
|
1695
|
+
var i = new Logging$lambda$slambda_1(this.d5k_1, this.e5k_1, this.f5k_1, this.g5k_1, this.h5k_1, completion);
|
|
1696
|
+
i.i5k_1 = $this$on;
|
|
1697
|
+
i.j5k_1 = response;
|
|
1713
1698
|
return i;
|
|
1714
1699
|
};
|
|
1715
1700
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1716
1701
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1717
|
-
|
|
1718
|
-
return i.
|
|
1719
|
-
};
|
|
1720
|
-
l.$arity = 2;
|
|
1721
|
-
return l;
|
|
1702
|
+
return constructCallableReference(function ($this$on, response, $completion) {
|
|
1703
|
+
return i.l5k($this$on, response, $completion);
|
|
1704
|
+
}, 2);
|
|
1722
1705
|
}
|
|
1723
1706
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1707
|
+
this.v5k_1 = $okHttpFormat;
|
|
1708
|
+
this.w5k_1 = $level;
|
|
1709
|
+
this.x5k_1 = $sanitizedHeaders;
|
|
1727
1710
|
CoroutineImpl.call(this, resultContinuation);
|
|
1728
1711
|
}
|
|
1729
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1730
|
-
var tmp = this.
|
|
1712
|
+
protoOf(Logging$lambda$slambda_3).g5l = function ($this$on, response, $completion) {
|
|
1713
|
+
var tmp = this.h5l($this$on, response, $completion);
|
|
1731
1714
|
tmp.f9_1 = Unit_instance;
|
|
1732
1715
|
tmp.g9_1 = null;
|
|
1733
1716
|
return tmp.l9();
|
|
1734
1717
|
};
|
|
1735
1718
|
protoOf(Logging$lambda$slambda_3).z9 = function (p1, p2, $completion) {
|
|
1736
1719
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1737
|
-
return this.
|
|
1720
|
+
return this.g5l(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1738
1721
|
};
|
|
1739
1722
|
protoOf(Logging$lambda$slambda_3).l9 = function () {
|
|
1740
1723
|
var suspendResult = this.f9_1;
|
|
@@ -1744,28 +1727,28 @@
|
|
|
1744
1727
|
switch (tmp) {
|
|
1745
1728
|
case 0:
|
|
1746
1729
|
this.e9_1 = 14;
|
|
1747
|
-
if (this.
|
|
1730
|
+
if (this.v5k_1)
|
|
1748
1731
|
return Unit_instance;
|
|
1749
|
-
if (this.
|
|
1732
|
+
if (this.w5k_1.equals(LogLevel_NONE_getInstance()) || this.z5k_1.j3t().d3t().b2l(get_DisableLogging()))
|
|
1750
1733
|
return Unit_instance;
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
this.
|
|
1734
|
+
this.b5l_1 = this.z5k_1.j3t().d3t().z2k(get_ClientCallLogger());
|
|
1735
|
+
this.d5l_1 = StringBuilder_init_$Create$();
|
|
1736
|
+
this.c5l_1 = false;
|
|
1754
1737
|
this.d9_1 = 1;
|
|
1755
1738
|
continue $sm;
|
|
1756
1739
|
case 1:
|
|
1757
1740
|
this.e9_1 = 4;
|
|
1758
1741
|
this.e9_1 = 3;
|
|
1759
|
-
logResponseHeader(this.
|
|
1742
|
+
logResponseHeader(this.d5l_1, this.z5k_1.j3t().u3q(), this.w5k_1, this.x5k_1);
|
|
1760
1743
|
this.d9_1 = 2;
|
|
1761
|
-
suspendResult = this.
|
|
1744
|
+
suspendResult = this.y5k_1.u5d(this);
|
|
1762
1745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1763
1746
|
return suspendResult;
|
|
1764
1747
|
}
|
|
1765
1748
|
|
|
1766
1749
|
continue $sm;
|
|
1767
1750
|
case 2:
|
|
1768
|
-
this.
|
|
1751
|
+
this.e5l_1 = suspendResult;
|
|
1769
1752
|
this.e9_1 = 14;
|
|
1770
1753
|
this.d9_1 = 9;
|
|
1771
1754
|
continue $sm;
|
|
@@ -1775,8 +1758,8 @@
|
|
|
1775
1758
|
if (tmp_0 instanceof Error) {
|
|
1776
1759
|
var cause = this.g9_1;
|
|
1777
1760
|
var tmp_1 = this;
|
|
1778
|
-
invoke$logResponseException(this.
|
|
1779
|
-
this.
|
|
1761
|
+
invoke$logResponseException(this.w5k_1, this.d5l_1, this.z5k_1.j3t().c3t(), cause);
|
|
1762
|
+
this.c5l_1 = true;
|
|
1780
1763
|
throw cause;
|
|
1781
1764
|
} else {
|
|
1782
1765
|
throw this.g9_1;
|
|
@@ -1784,19 +1767,19 @@
|
|
|
1784
1767
|
|
|
1785
1768
|
case 4:
|
|
1786
1769
|
this.e9_1 = 14;
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1789
|
-
if (this.
|
|
1770
|
+
this.f5l_1 = this.g9_1;
|
|
1771
|
+
this.b5l_1.p5a(this.d5l_1.toString());
|
|
1772
|
+
if (this.c5l_1 || !this.w5k_1.b5c_1) {
|
|
1790
1773
|
this.d9_1 = 7;
|
|
1791
|
-
suspendResult = this.
|
|
1774
|
+
suspendResult = this.b5l_1.t5a(this);
|
|
1792
1775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1793
1776
|
return suspendResult;
|
|
1794
1777
|
}
|
|
1795
1778
|
continue $sm;
|
|
1796
1779
|
} else {
|
|
1797
|
-
if (this.
|
|
1780
|
+
if (this.w5k_1.b5c_1 && get_isSaved(this.z5k_1)) {
|
|
1798
1781
|
this.d9_1 = 5;
|
|
1799
|
-
suspendResult = logResponseBody(this.
|
|
1782
|
+
suspendResult = logResponseBody(this.b5l_1, this.z5k_1, this);
|
|
1800
1783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1801
1784
|
return suspendResult;
|
|
1802
1785
|
}
|
|
@@ -1809,7 +1792,7 @@
|
|
|
1809
1792
|
|
|
1810
1793
|
case 5:
|
|
1811
1794
|
this.d9_1 = 6;
|
|
1812
|
-
suspendResult = this.
|
|
1795
|
+
suspendResult = this.b5l_1.t5a(this);
|
|
1813
1796
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1814
1797
|
return suspendResult;
|
|
1815
1798
|
}
|
|
@@ -1822,22 +1805,22 @@
|
|
|
1822
1805
|
this.d9_1 = 8;
|
|
1823
1806
|
continue $sm;
|
|
1824
1807
|
case 8:
|
|
1825
|
-
throw this.
|
|
1808
|
+
throw this.f5l_1;
|
|
1826
1809
|
case 9:
|
|
1827
|
-
this.
|
|
1810
|
+
this.a5l_1 = this.e5l_1;
|
|
1828
1811
|
this.e9_1 = 14;
|
|
1829
|
-
this.
|
|
1830
|
-
if (this.
|
|
1812
|
+
this.b5l_1.p5a(this.d5l_1.toString());
|
|
1813
|
+
if (this.c5l_1 || !this.w5k_1.b5c_1) {
|
|
1831
1814
|
this.d9_1 = 12;
|
|
1832
|
-
suspendResult = this.
|
|
1815
|
+
suspendResult = this.b5l_1.t5a(this);
|
|
1833
1816
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1817
|
return suspendResult;
|
|
1835
1818
|
}
|
|
1836
1819
|
continue $sm;
|
|
1837
1820
|
} else {
|
|
1838
|
-
if (this.
|
|
1821
|
+
if (this.w5k_1.b5c_1 && get_isSaved(this.z5k_1)) {
|
|
1839
1822
|
this.d9_1 = 10;
|
|
1840
|
-
suspendResult = logResponseBody(this.
|
|
1823
|
+
suspendResult = logResponseBody(this.b5l_1, this.z5k_1, this);
|
|
1841
1824
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1842
1825
|
return suspendResult;
|
|
1843
1826
|
}
|
|
@@ -1850,7 +1833,7 @@
|
|
|
1850
1833
|
|
|
1851
1834
|
case 10:
|
|
1852
1835
|
this.d9_1 = 11;
|
|
1853
|
-
suspendResult = this.
|
|
1836
|
+
suspendResult = this.b5l_1.t5a(this);
|
|
1854
1837
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1855
1838
|
return suspendResult;
|
|
1856
1839
|
}
|
|
@@ -1878,35 +1861,33 @@
|
|
|
1878
1861
|
}
|
|
1879
1862
|
while (true);
|
|
1880
1863
|
};
|
|
1881
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1882
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1883
|
-
i.
|
|
1884
|
-
i.
|
|
1864
|
+
protoOf(Logging$lambda$slambda_3).h5l = function ($this$on, response, completion) {
|
|
1865
|
+
var i = new Logging$lambda$slambda_3(this.v5k_1, this.w5k_1, this.x5k_1, completion);
|
|
1866
|
+
i.y5k_1 = $this$on;
|
|
1867
|
+
i.z5k_1 = response;
|
|
1885
1868
|
return i;
|
|
1886
1869
|
};
|
|
1887
1870
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1888
1871
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1889
|
-
|
|
1890
|
-
return i.
|
|
1891
|
-
};
|
|
1892
|
-
l.$arity = 2;
|
|
1893
|
-
return l;
|
|
1872
|
+
return constructCallableReference(function ($this$on, response, $completion) {
|
|
1873
|
+
return i.g5l($this$on, response, $completion);
|
|
1874
|
+
}, 2);
|
|
1894
1875
|
}
|
|
1895
1876
|
function Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation) {
|
|
1896
|
-
this.
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1877
|
+
this.q5l_1 = $okHttpFormat;
|
|
1878
|
+
this.r5l_1 = $level;
|
|
1879
|
+
this.s5l_1 = $logger;
|
|
1899
1880
|
CoroutineImpl.call(this, resultContinuation);
|
|
1900
1881
|
}
|
|
1901
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1902
|
-
var tmp = this.
|
|
1882
|
+
protoOf(Logging$lambda$slambda_5).y5l = function ($this$on, call, $completion) {
|
|
1883
|
+
var tmp = this.z5l($this$on, call, $completion);
|
|
1903
1884
|
tmp.f9_1 = Unit_instance;
|
|
1904
1885
|
tmp.g9_1 = null;
|
|
1905
1886
|
return tmp.l9();
|
|
1906
1887
|
};
|
|
1907
1888
|
protoOf(Logging$lambda$slambda_5).z9 = function (p1, p2, $completion) {
|
|
1908
1889
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1909
|
-
return this.
|
|
1890
|
+
return this.y5l(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1910
1891
|
};
|
|
1911
1892
|
protoOf(Logging$lambda$slambda_5).l9 = function () {
|
|
1912
1893
|
var suspendResult = this.f9_1;
|
|
@@ -1916,22 +1897,22 @@
|
|
|
1916
1897
|
switch (tmp) {
|
|
1917
1898
|
case 0:
|
|
1918
1899
|
this.e9_1 = 6;
|
|
1919
|
-
if (this.
|
|
1900
|
+
if (this.q5l_1)
|
|
1920
1901
|
return Unit_instance;
|
|
1921
|
-
if (this.
|
|
1902
|
+
if (this.r5l_1.equals(LogLevel_NONE_getInstance()) || this.u5l_1.d3t().b2l(get_DisableLogging())) {
|
|
1922
1903
|
return Unit_instance;
|
|
1923
1904
|
}
|
|
1924
1905
|
|
|
1925
1906
|
this.e9_1 = 2;
|
|
1926
1907
|
this.d9_1 = 1;
|
|
1927
|
-
suspendResult = this.
|
|
1908
|
+
suspendResult = this.t5l_1.i5e(this);
|
|
1928
1909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1929
1910
|
return suspendResult;
|
|
1930
1911
|
}
|
|
1931
1912
|
|
|
1932
1913
|
continue $sm;
|
|
1933
1914
|
case 1:
|
|
1934
|
-
this.
|
|
1915
|
+
this.v5l_1 = suspendResult;
|
|
1935
1916
|
this.e9_1 = 6;
|
|
1936
1917
|
this.d9_1 = 5;
|
|
1937
1918
|
continue $sm;
|
|
@@ -1939,22 +1920,22 @@
|
|
|
1939
1920
|
this.e9_1 = 6;
|
|
1940
1921
|
var tmp_0 = this.g9_1;
|
|
1941
1922
|
if (tmp_0 instanceof Error) {
|
|
1942
|
-
this.
|
|
1923
|
+
this.w5l_1 = this.g9_1;
|
|
1943
1924
|
var log = StringBuilder_init_$Create$();
|
|
1944
1925
|
var tmp_1 = this;
|
|
1945
|
-
var tmp0_elvis_lhs = this.
|
|
1926
|
+
var tmp0_elvis_lhs = this.u5l_1.d3t().a2l(get_ClientCallLogger());
|
|
1946
1927
|
var tmp_2;
|
|
1947
1928
|
if (tmp0_elvis_lhs == null) {
|
|
1948
|
-
var this_0 = new HttpClientCallLogger(this.
|
|
1949
|
-
this_0.
|
|
1929
|
+
var this_0 = new HttpClientCallLogger(this.s5l_1);
|
|
1930
|
+
this_0.s5a();
|
|
1950
1931
|
tmp_2 = this_0;
|
|
1951
1932
|
} else {
|
|
1952
1933
|
tmp_2 = tmp0_elvis_lhs;
|
|
1953
1934
|
}
|
|
1954
|
-
tmp_1.
|
|
1955
|
-
invoke$logResponseException(this.
|
|
1935
|
+
tmp_1.x5l_1 = tmp_2;
|
|
1936
|
+
invoke$logResponseException(this.r5l_1, log, this.u5l_1.c3t(), this.w5l_1);
|
|
1956
1937
|
this.d9_1 = 3;
|
|
1957
|
-
suspendResult = this.
|
|
1938
|
+
suspendResult = this.x5l_1.q5a(log.toString(), this);
|
|
1958
1939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1959
1940
|
return suspendResult;
|
|
1960
1941
|
}
|
|
@@ -1965,7 +1946,7 @@
|
|
|
1965
1946
|
|
|
1966
1947
|
case 3:
|
|
1967
1948
|
this.d9_1 = 4;
|
|
1968
|
-
suspendResult = this.
|
|
1949
|
+
suspendResult = this.x5l_1.t5a(this);
|
|
1969
1950
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1970
1951
|
return suspendResult;
|
|
1971
1952
|
}
|
|
@@ -1973,7 +1954,7 @@
|
|
|
1973
1954
|
continue $sm;
|
|
1974
1955
|
case 4:
|
|
1975
1956
|
var tmp_3 = this;
|
|
1976
|
-
throw this.
|
|
1957
|
+
throw this.w5l_1;
|
|
1977
1958
|
case 5:
|
|
1978
1959
|
this.e9_1 = 6;
|
|
1979
1960
|
return Unit_instance;
|
|
@@ -1991,36 +1972,34 @@
|
|
|
1991
1972
|
}
|
|
1992
1973
|
while (true);
|
|
1993
1974
|
};
|
|
1994
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1995
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1996
|
-
i.
|
|
1997
|
-
i.
|
|
1975
|
+
protoOf(Logging$lambda$slambda_5).z5l = function ($this$on, call, completion) {
|
|
1976
|
+
var i = new Logging$lambda$slambda_5(this.q5l_1, this.r5l_1, this.s5l_1, completion);
|
|
1977
|
+
i.t5l_1 = $this$on;
|
|
1978
|
+
i.u5l_1 = call;
|
|
1998
1979
|
return i;
|
|
1999
1980
|
};
|
|
2000
1981
|
function Logging$lambda$slambda_6($okHttpFormat, $level, $logger, resultContinuation) {
|
|
2001
1982
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation);
|
|
2002
|
-
|
|
2003
|
-
return i.
|
|
2004
|
-
};
|
|
2005
|
-
l.$arity = 2;
|
|
2006
|
-
return l;
|
|
1983
|
+
return constructCallableReference(function ($this$on, call, $completion) {
|
|
1984
|
+
return i.y5l($this$on, call, $completion);
|
|
1985
|
+
}, 2);
|
|
2007
1986
|
}
|
|
2008
1987
|
function Logging$lambda$lambda$lambda(it) {
|
|
2009
1988
|
_init_properties_Logging_kt__66pui5();
|
|
2010
|
-
return !get_isSaved(it.
|
|
1989
|
+
return !get_isSaved(it.u3q());
|
|
2011
1990
|
}
|
|
2012
1991
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
2013
|
-
this.
|
|
1992
|
+
this.i5m_1 = $level;
|
|
2014
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
2015
1994
|
}
|
|
2016
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2017
|
-
var tmp = this.
|
|
1995
|
+
protoOf(Logging$lambda$lambda$slambda).h42 = function (response, $completion) {
|
|
1996
|
+
var tmp = this.u40(response, $completion);
|
|
2018
1997
|
tmp.f9_1 = Unit_instance;
|
|
2019
1998
|
tmp.g9_1 = null;
|
|
2020
1999
|
return tmp.l9();
|
|
2021
2000
|
};
|
|
2022
2001
|
protoOf(Logging$lambda$lambda$slambda).y9 = function (p1, $completion) {
|
|
2023
|
-
return this.
|
|
2002
|
+
return this.h42(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2024
2003
|
};
|
|
2025
2004
|
protoOf(Logging$lambda$lambda$slambda).l9 = function () {
|
|
2026
2005
|
var suspendResult = this.f9_1;
|
|
@@ -2030,11 +2009,11 @@
|
|
|
2030
2009
|
switch (tmp) {
|
|
2031
2010
|
case 0:
|
|
2032
2011
|
this.e9_1 = 3;
|
|
2033
|
-
if (this.
|
|
2012
|
+
if (this.i5m_1.equals(LogLevel_NONE_getInstance()) || this.j5m_1.j3t().d3t().b2l(get_DisableLogging()))
|
|
2034
2013
|
return Unit_instance;
|
|
2035
|
-
this.
|
|
2014
|
+
this.k5m_1 = this.j5m_1.j3t().d3t().z2k(get_ClientCallLogger());
|
|
2036
2015
|
this.d9_1 = 1;
|
|
2037
|
-
suspendResult = logResponseBody(this.
|
|
2016
|
+
suspendResult = logResponseBody(this.k5m_1, this.j5m_1, this);
|
|
2038
2017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2039
2018
|
return suspendResult;
|
|
2040
2019
|
}
|
|
@@ -2042,7 +2021,7 @@
|
|
|
2042
2021
|
continue $sm;
|
|
2043
2022
|
case 1:
|
|
2044
2023
|
this.d9_1 = 2;
|
|
2045
|
-
suspendResult = this.
|
|
2024
|
+
suspendResult = this.k5m_1.t5a(this);
|
|
2046
2025
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2047
2026
|
return suspendResult;
|
|
2048
2027
|
}
|
|
@@ -2064,36 +2043,34 @@
|
|
|
2064
2043
|
}
|
|
2065
2044
|
while (true);
|
|
2066
2045
|
};
|
|
2067
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2068
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
2069
|
-
i.
|
|
2046
|
+
protoOf(Logging$lambda$lambda$slambda).u40 = function (response, completion) {
|
|
2047
|
+
var i = new Logging$lambda$lambda$slambda(this.i5m_1, completion);
|
|
2048
|
+
i.j5m_1 = response;
|
|
2070
2049
|
return i;
|
|
2071
2050
|
};
|
|
2072
2051
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2073
2052
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2074
|
-
|
|
2075
|
-
return i.
|
|
2076
|
-
};
|
|
2077
|
-
l.$arity = 1;
|
|
2078
|
-
return l;
|
|
2053
|
+
return constructCallableReference(function (response, $completion) {
|
|
2054
|
+
return i.h42(response, $completion);
|
|
2055
|
+
}, 1);
|
|
2079
2056
|
}
|
|
2080
2057
|
function Logging$lambda$lambda($level) {
|
|
2081
2058
|
return function ($this$prepare) {
|
|
2082
|
-
$this$prepare.
|
|
2083
|
-
$this$prepare.
|
|
2059
|
+
$this$prepare.z4n(Logging$lambda$lambda$lambda);
|
|
2060
|
+
$this$prepare.y4n(Logging$lambda$lambda$slambda_0($level, null));
|
|
2084
2061
|
return Unit_instance;
|
|
2085
2062
|
};
|
|
2086
2063
|
}
|
|
2087
2064
|
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2088
2065
|
CoroutineImpl.call(this, resultContinuation);
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2093
|
-
this.
|
|
2094
|
-
this.
|
|
2095
|
-
this.
|
|
2096
|
-
this.
|
|
2066
|
+
this.e5g_1 = bodyFilter;
|
|
2067
|
+
this.f5g_1 = url;
|
|
2068
|
+
this.g5g_1 = content;
|
|
2069
|
+
this.h5g_1 = contentLength;
|
|
2070
|
+
this.i5g_1 = headers;
|
|
2071
|
+
this.j5g_1 = method;
|
|
2072
|
+
this.k5g_1 = logLines;
|
|
2073
|
+
this.l5g_1 = body;
|
|
2097
2074
|
}
|
|
2098
2075
|
protoOf($invoke$logRequestBodyCOROUTINE$).l9 = function () {
|
|
2099
2076
|
var suspendResult = this.f9_1;
|
|
@@ -2104,7 +2081,7 @@
|
|
|
2104
2081
|
case 0:
|
|
2105
2082
|
this.e9_1 = 2;
|
|
2106
2083
|
this.d9_1 = 1;
|
|
2107
|
-
suspendResult = this.
|
|
2084
|
+
suspendResult = this.e5g_1.u5a(this.f5g_1, this.h5g_1, this.g5g_1.u37(), this.i5g_1, this.l5g_1, this);
|
|
2108
2085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2109
2086
|
return suspendResult;
|
|
2110
2087
|
}
|
|
@@ -2113,29 +2090,29 @@
|
|
|
2113
2090
|
case 1:
|
|
2114
2091
|
var filteredBody = suspendResult;
|
|
2115
2092
|
if (filteredBody instanceof Empty) {
|
|
2116
|
-
this.
|
|
2093
|
+
this.k5g_1.j1('--> END ' + this.j5g_1.h32_1 + ' (0-byte body)');
|
|
2117
2094
|
} else {
|
|
2118
2095
|
if (filteredBody instanceof Skip) {
|
|
2119
2096
|
var this_0 = StringBuilder_init_$Create$();
|
|
2120
|
-
this_0.q('--> END ' + this.
|
|
2121
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2097
|
+
this_0.q('--> END ' + this.j5g_1.h32_1 + ' (');
|
|
2098
|
+
var tmp0_safe_receiver = filteredBody.y5a_1;
|
|
2122
2099
|
if (tmp0_safe_receiver == null)
|
|
2123
2100
|
null;
|
|
2124
2101
|
else {
|
|
2125
2102
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2126
2103
|
}
|
|
2127
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2104
|
+
var tmp1_safe_receiver = filteredBody.z5a_1;
|
|
2128
2105
|
if (tmp1_safe_receiver == null)
|
|
2129
2106
|
null;
|
|
2130
2107
|
else {
|
|
2131
2108
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2132
2109
|
}
|
|
2133
2110
|
this_0.q('body omitted)');
|
|
2134
|
-
this.
|
|
2111
|
+
this.k5g_1.j1(this_0.toString());
|
|
2135
2112
|
} else {
|
|
2136
2113
|
if (isInterface(filteredBody, Content)) {
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2114
|
+
this.k5g_1.j1(filteredBody.a5b());
|
|
2115
|
+
this.k5g_1.j1('--> END ' + this.j5g_1.h32_1 + ' (' + toString_0(filteredBody.x5a()) + '-byte body)');
|
|
2139
2116
|
} else {
|
|
2140
2117
|
noWhenBranchMatchedException();
|
|
2141
2118
|
}
|
|
@@ -2159,14 +2136,14 @@
|
|
|
2159
2136
|
};
|
|
2160
2137
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2161
2138
|
CoroutineImpl.call(this, resultContinuation);
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2139
|
+
this.u5g_1 = $this_createClientPlugin;
|
|
2140
|
+
this.v5g_1 = bodyFilter;
|
|
2141
|
+
this.w5g_1 = url;
|
|
2142
|
+
this.x5g_1 = content;
|
|
2143
|
+
this.y5g_1 = method;
|
|
2144
|
+
this.z5g_1 = headers;
|
|
2145
|
+
this.a5h_1 = logLines;
|
|
2146
|
+
this.b5h_1 = process;
|
|
2170
2147
|
}
|
|
2171
2148
|
protoOf($invoke$logOutgoingContentCOROUTINE$).l9 = function () {
|
|
2172
2149
|
var suspendResult = this.f9_1;
|
|
@@ -2176,10 +2153,10 @@
|
|
|
2176
2153
|
switch (tmp) {
|
|
2177
2154
|
case 0:
|
|
2178
2155
|
this.e9_1 = 7;
|
|
2179
|
-
var tmp0_subject = this.
|
|
2156
|
+
var tmp0_subject = this.x5g_1;
|
|
2180
2157
|
if (tmp0_subject instanceof ObservableContent) {
|
|
2181
2158
|
this.d9_1 = 5;
|
|
2182
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2159
|
+
suspendResult = invoke$logOutgoingContent(this.u5g_1, this.v5g_1, this.w5g_1, this.x5g_1.u3v_1, this.y5g_1, this.z5g_1, this.a5h_1, this.b5h_1, this);
|
|
2183
2160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2184
2161
|
return suspendResult;
|
|
2185
2162
|
}
|
|
@@ -2187,41 +2164,41 @@
|
|
|
2187
2164
|
} else {
|
|
2188
2165
|
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2189
2166
|
var tmp_0 = this;
|
|
2190
|
-
var _iterator__ex2g4s = this.
|
|
2167
|
+
var _iterator__ex2g4s = this.x5g_1.m5m_1.t();
|
|
2191
2168
|
while (_iterator__ex2g4s.u()) {
|
|
2192
2169
|
var part = _iterator__ex2g4s.v();
|
|
2193
|
-
this.
|
|
2194
|
-
var _iterator__ex2g4s_0 = part.
|
|
2170
|
+
this.a5h_1.j1('--' + this.x5g_1.n5m_1);
|
|
2171
|
+
var _iterator__ex2g4s_0 = part.o5m_1.n2p().t();
|
|
2195
2172
|
while (_iterator__ex2g4s_0.u()) {
|
|
2196
2173
|
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2197
2174
|
var key = _destruct__k2r9zo.r1();
|
|
2198
2175
|
var values = _destruct__k2r9zo.s1();
|
|
2199
|
-
this.
|
|
2176
|
+
this.a5h_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2200
2177
|
}
|
|
2201
2178
|
if (part instanceof FormItem) {
|
|
2202
|
-
this.
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2179
|
+
this.a5h_1.j1('Content-Length: ' + part.q5m_1.length);
|
|
2180
|
+
this.a5h_1.j1('');
|
|
2181
|
+
this.a5h_1.j1(part.q5m_1);
|
|
2205
2182
|
} else {
|
|
2206
|
-
this.
|
|
2207
|
-
var contentLength = part.
|
|
2183
|
+
this.a5h_1.j1('');
|
|
2184
|
+
var contentLength = part.o5m_1.w2o('Content-Length');
|
|
2208
2185
|
if (!(contentLength == null)) {
|
|
2209
|
-
this.
|
|
2186
|
+
this.a5h_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2210
2187
|
} else {
|
|
2211
|
-
this.
|
|
2188
|
+
this.a5h_1.j1('binary body omitted');
|
|
2212
2189
|
}
|
|
2213
2190
|
}
|
|
2214
2191
|
}
|
|
2215
|
-
this.
|
|
2216
|
-
this.
|
|
2217
|
-
tmp_0.
|
|
2192
|
+
this.a5h_1.j1('--' + this.x5g_1.n5m_1 + '--');
|
|
2193
|
+
this.a5h_1.j1('--> END ' + this.y5g_1.h32_1);
|
|
2194
|
+
tmp_0.c5h_1 = null;
|
|
2218
2195
|
this.d9_1 = 6;
|
|
2219
2196
|
continue $sm;
|
|
2220
2197
|
} else {
|
|
2221
2198
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2222
|
-
var bytes = this.
|
|
2199
|
+
var bytes = this.x5g_1.x37();
|
|
2223
2200
|
this.d9_1 = 4;
|
|
2224
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2201
|
+
suspendResult = invoke$logRequestBody(this.v5g_1, this.w5g_1, this.x5g_1, fromInt(bytes.length), this.z5g_1, this.y5g_1, this.a5h_1, ByteReadChannel(bytes), this);
|
|
2225
2202
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2226
2203
|
return suspendResult;
|
|
2227
2204
|
}
|
|
@@ -2229,7 +2206,7 @@
|
|
|
2229
2206
|
} else {
|
|
2230
2207
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2231
2208
|
this.d9_1 = 3;
|
|
2232
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2209
|
+
suspendResult = invoke$logOutgoingContent(this.u5g_1, this.v5g_1, this.w5g_1, this.x5g_1.g38(), this.y5g_1, this.z5g_1, this.a5h_1, this.b5h_1, this);
|
|
2233
2210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2234
2211
|
return suspendResult;
|
|
2235
2212
|
}
|
|
@@ -2237,24 +2214,24 @@
|
|
|
2237
2214
|
} else {
|
|
2238
2215
|
if (tmp0_subject instanceof NoContent) {
|
|
2239
2216
|
var tmp_1 = this;
|
|
2240
|
-
this.
|
|
2241
|
-
tmp_1.
|
|
2217
|
+
this.a5h_1.j1('--> END ' + this.y5g_1.h32_1);
|
|
2218
|
+
tmp_1.c5h_1 = null;
|
|
2242
2219
|
this.d9_1 = 6;
|
|
2243
2220
|
continue $sm;
|
|
2244
2221
|
} else {
|
|
2245
2222
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2246
2223
|
var tmp_2 = this;
|
|
2247
|
-
this.
|
|
2248
|
-
tmp_2.
|
|
2224
|
+
this.a5h_1.j1('--> END ' + this.y5g_1.h32_1);
|
|
2225
|
+
tmp_2.c5h_1 = null;
|
|
2249
2226
|
this.d9_1 = 6;
|
|
2250
2227
|
continue $sm;
|
|
2251
2228
|
} else {
|
|
2252
2229
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2253
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2254
|
-
this.
|
|
2255
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2230
|
+
var _destruct__k2r9zo_0 = split(this.x5g_1.a38(), this.u5g_1.t3z_1);
|
|
2231
|
+
this.d5h_1 = _destruct__k2r9zo_0.jg();
|
|
2232
|
+
var newChannel = _destruct__k2r9zo_0.kg();
|
|
2256
2233
|
this.d9_1 = 2;
|
|
2257
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2234
|
+
suspendResult = invoke$logRequestBody(this.v5g_1, this.w5g_1, this.x5g_1, this.x5g_1.w37(), this.z5g_1, this.y5g_1, this.a5h_1, newChannel, this);
|
|
2258
2235
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2259
2236
|
return suspendResult;
|
|
2260
2237
|
}
|
|
@@ -2262,12 +2239,12 @@
|
|
|
2262
2239
|
} else {
|
|
2263
2240
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2264
2241
|
var channel = new ByteChannel();
|
|
2265
|
-
launch(this.
|
|
2266
|
-
var _destruct__k2r9zo_1 = split(channel, this.
|
|
2267
|
-
this.
|
|
2268
|
-
var newChannel_0 = _destruct__k2r9zo_1.
|
|
2242
|
+
launch(this.u5g_1.t3z_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.x5g_1, channel, null));
|
|
2243
|
+
var _destruct__k2r9zo_1 = split(channel, this.u5g_1.t3z_1);
|
|
2244
|
+
this.e5h_1 = _destruct__k2r9zo_1.jg();
|
|
2245
|
+
var newChannel_0 = _destruct__k2r9zo_1.kg();
|
|
2269
2246
|
this.d9_1 = 1;
|
|
2270
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2247
|
+
suspendResult = invoke$logRequestBody(this.v5g_1, this.w5g_1, this.x5g_1, this.x5g_1.w37(), this.z5g_1, this.y5g_1, this.a5h_1, newChannel_0, this);
|
|
2271
2248
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2272
2249
|
return suspendResult;
|
|
2273
2250
|
}
|
|
@@ -2286,27 +2263,27 @@
|
|
|
2286
2263
|
|
|
2287
2264
|
break;
|
|
2288
2265
|
case 1:
|
|
2289
|
-
this.
|
|
2266
|
+
this.c5h_1 = new LoggedContent(this.x5g_1, this.e5h_1);
|
|
2290
2267
|
this.d9_1 = 6;
|
|
2291
2268
|
continue $sm;
|
|
2292
2269
|
case 2:
|
|
2293
|
-
this.
|
|
2270
|
+
this.c5h_1 = new LoggedContent(this.x5g_1, this.d5h_1);
|
|
2294
2271
|
this.d9_1 = 6;
|
|
2295
2272
|
continue $sm;
|
|
2296
2273
|
case 3:
|
|
2297
|
-
this.
|
|
2274
|
+
this.c5h_1 = suspendResult;
|
|
2298
2275
|
this.d9_1 = 6;
|
|
2299
2276
|
continue $sm;
|
|
2300
2277
|
case 4:
|
|
2301
|
-
this.
|
|
2278
|
+
this.c5h_1 = null;
|
|
2302
2279
|
this.d9_1 = 6;
|
|
2303
2280
|
continue $sm;
|
|
2304
2281
|
case 5:
|
|
2305
|
-
this.
|
|
2282
|
+
this.c5h_1 = suspendResult;
|
|
2306
2283
|
this.d9_1 = 6;
|
|
2307
2284
|
continue $sm;
|
|
2308
2285
|
case 6:
|
|
2309
|
-
return this.
|
|
2286
|
+
return this.c5h_1;
|
|
2310
2287
|
case 7:
|
|
2311
2288
|
throw this.g9_1;
|
|
2312
2289
|
}
|
|
@@ -2323,12 +2300,12 @@
|
|
|
2323
2300
|
};
|
|
2324
2301
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2325
2302
|
CoroutineImpl.call(this, resultContinuation);
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2330
|
-
this.
|
|
2331
|
-
this.
|
|
2303
|
+
this.n5h_1 = sanitizedHeaders;
|
|
2304
|
+
this.o5h_1 = level;
|
|
2305
|
+
this.p5h_1 = $this_createClientPlugin;
|
|
2306
|
+
this.q5h_1 = bodyFilter;
|
|
2307
|
+
this.r5h_1 = request;
|
|
2308
|
+
this.s5h_1 = logLines;
|
|
2332
2309
|
}
|
|
2333
2310
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).l9 = function () {
|
|
2334
2311
|
var suspendResult = this.f9_1;
|
|
@@ -2338,22 +2315,22 @@
|
|
|
2338
2315
|
switch (tmp) {
|
|
2339
2316
|
case 0:
|
|
2340
2317
|
this.e9_1 = 4;
|
|
2341
|
-
if (invoke$isNone(this.
|
|
2318
|
+
if (invoke$isNone(this.o5h_1))
|
|
2342
2319
|
return null;
|
|
2343
|
-
var uri = takeFrom(new URLBuilder(), this.
|
|
2344
|
-
var body = this.
|
|
2320
|
+
var uri = takeFrom(new URLBuilder(), this.r5h_1.u3r_1).p2x().toString();
|
|
2321
|
+
var body = this.r5h_1.x3r_1;
|
|
2345
2322
|
var this_0 = new HeadersBuilder();
|
|
2346
2323
|
var tmp_0;
|
|
2347
2324
|
var tmp_1;
|
|
2348
2325
|
var tmp_2;
|
|
2349
2326
|
if (body instanceof OutgoingContent) {
|
|
2350
|
-
tmp_2 = !this.
|
|
2327
|
+
tmp_2 = !this.r5h_1.v3r_1.equals(Companion_getInstance().x31_1);
|
|
2351
2328
|
} else {
|
|
2352
2329
|
tmp_2 = false;
|
|
2353
2330
|
}
|
|
2354
2331
|
|
|
2355
2332
|
if (tmp_2) {
|
|
2356
|
-
tmp_1 = !this.
|
|
2333
|
+
tmp_1 = !this.r5h_1.v3r_1.equals(Companion_getInstance().c32_1);
|
|
2357
2334
|
} else {
|
|
2358
2335
|
tmp_1 = false;
|
|
2359
2336
|
}
|
|
@@ -2365,13 +2342,13 @@
|
|
|
2365
2342
|
}
|
|
2366
2343
|
|
|
2367
2344
|
if (tmp_0) {
|
|
2368
|
-
var tmp0_safe_receiver = body.
|
|
2345
|
+
var tmp0_safe_receiver = body.u37();
|
|
2369
2346
|
if (tmp0_safe_receiver == null)
|
|
2370
2347
|
null;
|
|
2371
2348
|
else {
|
|
2372
2349
|
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2373
2350
|
}
|
|
2374
|
-
var tmp1_safe_receiver = body.
|
|
2351
|
+
var tmp1_safe_receiver = body.w37();
|
|
2375
2352
|
if (tmp1_safe_receiver == null)
|
|
2376
2353
|
null;
|
|
2377
2354
|
else {
|
|
@@ -2379,16 +2356,16 @@
|
|
|
2379
2356
|
}
|
|
2380
2357
|
}
|
|
2381
2358
|
|
|
2382
|
-
appendAll(this_0, this.
|
|
2383
|
-
var headers = this_0.
|
|
2384
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2359
|
+
appendAll(this_0, this.r5h_1.w3r_1);
|
|
2360
|
+
var headers = this_0.p2x();
|
|
2361
|
+
var tmp0_safe_receiver_0 = headers.w2o('Content-Length');
|
|
2385
2362
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2386
2363
|
var tmp_3;
|
|
2387
|
-
if (this.
|
|
2388
|
-
tmp_3 = '--> ' + this.
|
|
2364
|
+
if (this.r5h_1.v3r_1.equals(Companion_getInstance().x31_1) || this.r5h_1.v3r_1.equals(Companion_getInstance().c32_1) || ((invoke$isHeaders(this.o5h_1) || invoke$isBody(this.o5h_1)) && !(contentLength == null)) || (invoke$isHeaders(this.o5h_1) && contentLength == null) || headers.i2o('Content-Encoding')) {
|
|
2365
|
+
tmp_3 = '--> ' + this.r5h_1.v3r_1.h32_1 + ' ' + uri;
|
|
2389
2366
|
} else {
|
|
2390
|
-
if (invoke$isInfo(this.
|
|
2391
|
-
tmp_3 = '--> ' + this.
|
|
2367
|
+
if (invoke$isInfo(this.o5h_1) && !(contentLength == null)) {
|
|
2368
|
+
tmp_3 = '--> ' + this.r5h_1.v3r_1.h32_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2392
2369
|
} else {
|
|
2393
2370
|
var tmp_4;
|
|
2394
2371
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2397,32 +2374,32 @@
|
|
|
2397
2374
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2398
2375
|
}
|
|
2399
2376
|
if (tmp_4) {
|
|
2400
|
-
tmp_3 = '--> ' + this.
|
|
2377
|
+
tmp_3 = '--> ' + this.r5h_1.v3r_1.h32_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2401
2378
|
} else {
|
|
2402
|
-
var size = computeRequestBodySize(this.
|
|
2403
|
-
tmp_3 = '--> ' + this.
|
|
2379
|
+
var size = computeRequestBodySize(this.r5h_1.x3r_1);
|
|
2380
|
+
tmp_3 = '--> ' + this.r5h_1.v3r_1.h32_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2404
2381
|
}
|
|
2405
2382
|
}
|
|
2406
2383
|
}
|
|
2407
2384
|
|
|
2408
2385
|
var startLine = tmp_3;
|
|
2409
|
-
this.
|
|
2410
|
-
if (!invoke$isHeaders(this.
|
|
2386
|
+
this.s5h_1.j1(startLine);
|
|
2387
|
+
if (!invoke$isHeaders(this.o5h_1) && !invoke$isBody(this.o5h_1)) {
|
|
2411
2388
|
return null;
|
|
2412
2389
|
}
|
|
2413
2390
|
|
|
2414
|
-
var _iterator__ex2g4s = headers.
|
|
2391
|
+
var _iterator__ex2g4s = headers.n2p().t();
|
|
2415
2392
|
while (_iterator__ex2g4s.u()) {
|
|
2416
2393
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2417
2394
|
var name = _destruct__k2r9zo.r1();
|
|
2418
2395
|
var values = _destruct__k2r9zo.s1();
|
|
2419
|
-
var tmp0 = this.
|
|
2396
|
+
var tmp0 = this.n5h_1;
|
|
2420
2397
|
var tmp$ret$0 = Unit_instance;
|
|
2421
2398
|
l$ret$1: do {
|
|
2422
2399
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2423
2400
|
while (_iterator__ex2g4s_0.u()) {
|
|
2424
2401
|
var element = _iterator__ex2g4s_0.v();
|
|
2425
|
-
if (element.
|
|
2402
|
+
if (element.v5i_1(name)) {
|
|
2426
2403
|
tmp$ret$0 = element;
|
|
2427
2404
|
break l$ret$1;
|
|
2428
2405
|
}
|
|
@@ -2431,35 +2408,35 @@
|
|
|
2431
2408
|
}
|
|
2432
2409
|
while (false);
|
|
2433
2410
|
if (tmp$ret$0 == null) {
|
|
2434
|
-
this.
|
|
2411
|
+
this.s5h_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2435
2412
|
} else {
|
|
2436
|
-
this.
|
|
2413
|
+
this.s5h_1.j1(name + ': \u2588\u2588');
|
|
2437
2414
|
}
|
|
2438
2415
|
}
|
|
2439
2416
|
|
|
2440
|
-
if (!invoke$isBody(this.
|
|
2441
|
-
this.
|
|
2417
|
+
if (!invoke$isBody(this.o5h_1) || this.r5h_1.v3r_1.equals(Companion_getInstance().x31_1) || this.r5h_1.v3r_1.equals(Companion_getInstance().c32_1)) {
|
|
2418
|
+
this.s5h_1.j1('--> END ' + this.r5h_1.v3r_1.h32_1);
|
|
2442
2419
|
return null;
|
|
2443
2420
|
}
|
|
2444
2421
|
|
|
2445
|
-
this.
|
|
2422
|
+
this.s5h_1.j1('');
|
|
2446
2423
|
if (!(body instanceof OutgoingContent)) {
|
|
2447
|
-
this.
|
|
2424
|
+
this.s5h_1.j1('--> END ' + this.r5h_1.v3r_1.h32_1);
|
|
2448
2425
|
return null;
|
|
2449
2426
|
}
|
|
2450
2427
|
|
|
2451
|
-
if (this.
|
|
2428
|
+
if (this.r5h_1.w3r_1.w2o('Content-Encoding') === 'gzip') {
|
|
2452
2429
|
this.d9_1 = 2;
|
|
2453
|
-
var tmp_5 = this.
|
|
2454
|
-
var tmp_6 = this.
|
|
2455
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2430
|
+
var tmp_5 = this.r5h_1.u3r_1.p2x();
|
|
2431
|
+
var tmp_6 = this.r5h_1.v3r_1;
|
|
2432
|
+
suspendResult = invoke$logOutgoingContent(this.p5h_1, this.q5h_1, tmp_5, body, tmp_6, headers, this.s5h_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2456
2433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2457
2434
|
return suspendResult;
|
|
2458
2435
|
}
|
|
2459
2436
|
continue $sm;
|
|
2460
2437
|
} else {
|
|
2461
2438
|
this.d9_1 = 1;
|
|
2462
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2439
|
+
suspendResult = invoke$logOutgoingContent(this.p5h_1, this.q5h_1, this.r5h_1.u3r_1.p2x(), body, this.r5h_1.v3r_1, headers, this.s5h_1, VOID, this);
|
|
2463
2440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2464
2441
|
return suspendResult;
|
|
2465
2442
|
}
|
|
@@ -2467,15 +2444,15 @@
|
|
|
2467
2444
|
}
|
|
2468
2445
|
|
|
2469
2446
|
case 1:
|
|
2470
|
-
this.
|
|
2447
|
+
this.t5h_1 = suspendResult;
|
|
2471
2448
|
this.d9_1 = 3;
|
|
2472
2449
|
continue $sm;
|
|
2473
2450
|
case 2:
|
|
2474
|
-
this.
|
|
2451
|
+
this.t5h_1 = suspendResult;
|
|
2475
2452
|
this.d9_1 = 3;
|
|
2476
2453
|
continue $sm;
|
|
2477
2454
|
case 3:
|
|
2478
|
-
var newContent = this.
|
|
2455
|
+
var newContent = this.t5h_1;
|
|
2479
2456
|
return newContent;
|
|
2480
2457
|
case 4:
|
|
2481
2458
|
throw this.g9_1;
|
|
@@ -2493,10 +2470,10 @@
|
|
|
2493
2470
|
};
|
|
2494
2471
|
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2495
2472
|
CoroutineImpl.call(this, resultContinuation);
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2473
|
+
this.c5i_1 = bodyFilter;
|
|
2474
|
+
this.d5i_1 = response;
|
|
2475
|
+
this.e5i_1 = body;
|
|
2476
|
+
this.f5i_1 = logLines;
|
|
2500
2477
|
}
|
|
2501
2478
|
protoOf($invoke$logResponseBodyCOROUTINE$).l9 = function () {
|
|
2502
2479
|
var suspendResult = this.f9_1;
|
|
@@ -2506,9 +2483,9 @@
|
|
|
2506
2483
|
switch (tmp) {
|
|
2507
2484
|
case 0:
|
|
2508
2485
|
this.e9_1 = 2;
|
|
2509
|
-
this.
|
|
2486
|
+
this.f5i_1.j1('');
|
|
2510
2487
|
this.d9_1 = 1;
|
|
2511
|
-
suspendResult = this.
|
|
2488
|
+
suspendResult = this.c5i_1.w5a(this.d5i_1.j3t().c3t().l3t(), contentLength(this.d5i_1), contentType(this.d5i_1), this.d5i_1.w31(), this.e5i_1, this);
|
|
2512
2489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2513
2490
|
return suspendResult;
|
|
2514
2491
|
}
|
|
@@ -2516,33 +2493,33 @@
|
|
|
2516
2493
|
continue $sm;
|
|
2517
2494
|
case 1:
|
|
2518
2495
|
var filteredBody = suspendResult;
|
|
2519
|
-
var duration = subtract(this.
|
|
2496
|
+
var duration = subtract(this.d5i_1.v3t().c2r_1, this.d5i_1.u3t().c2r_1);
|
|
2520
2497
|
if (filteredBody instanceof Empty) {
|
|
2521
|
-
this.
|
|
2498
|
+
this.f5i_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2522
2499
|
} else {
|
|
2523
2500
|
if (filteredBody instanceof Skip) {
|
|
2524
2501
|
var this_0 = StringBuilder_init_$Create$();
|
|
2525
2502
|
this_0.q('<-- END HTTP (');
|
|
2526
|
-
this_0.
|
|
2503
|
+
this_0.vc(duration);
|
|
2527
2504
|
this_0.q('ms, ');
|
|
2528
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2505
|
+
var tmp0_safe_receiver = filteredBody.y5a_1;
|
|
2529
2506
|
if (tmp0_safe_receiver == null)
|
|
2530
2507
|
null;
|
|
2531
2508
|
else {
|
|
2532
2509
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2533
2510
|
}
|
|
2534
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2511
|
+
var tmp1_safe_receiver = filteredBody.z5a_1;
|
|
2535
2512
|
if (tmp1_safe_receiver == null)
|
|
2536
2513
|
null;
|
|
2537
2514
|
else {
|
|
2538
2515
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2539
2516
|
}
|
|
2540
2517
|
this_0.q('body omitted)');
|
|
2541
|
-
this.
|
|
2518
|
+
this.f5i_1.j1(this_0.toString());
|
|
2542
2519
|
} else {
|
|
2543
2520
|
if (isInterface(filteredBody, Content)) {
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2521
|
+
this.f5i_1.j1(filteredBody.a5b());
|
|
2522
|
+
this.f5i_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.x5a()) + '-byte body)');
|
|
2546
2523
|
} else {
|
|
2547
2524
|
noWhenBranchMatchedException();
|
|
2548
2525
|
}
|
|
@@ -2566,11 +2543,11 @@
|
|
|
2566
2543
|
};
|
|
2567
2544
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2568
2545
|
CoroutineImpl.call(this, resultContinuation);
|
|
2569
|
-
this.
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2546
|
+
this.o5i_1 = sanitizedHeaders;
|
|
2547
|
+
this.p5i_1 = level;
|
|
2548
|
+
this.q5i_1 = bodyFilter;
|
|
2549
|
+
this.r5i_1 = response;
|
|
2550
|
+
this.s5i_1 = logLines;
|
|
2574
2551
|
}
|
|
2575
2552
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).l9 = function () {
|
|
2576
2553
|
var suspendResult = this.f9_1;
|
|
@@ -2580,30 +2557,30 @@
|
|
|
2580
2557
|
switch (tmp) {
|
|
2581
2558
|
case 0:
|
|
2582
2559
|
this.e9_1 = 4;
|
|
2583
|
-
if (invoke$isNone(this.
|
|
2584
|
-
return this.
|
|
2585
|
-
var tmp0_safe_receiver = this.
|
|
2560
|
+
if (invoke$isNone(this.p5i_1))
|
|
2561
|
+
return this.r5i_1;
|
|
2562
|
+
var tmp0_safe_receiver = this.r5i_1.w31().w2o('Content-Length');
|
|
2586
2563
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2587
|
-
var request = get_request(this.
|
|
2588
|
-
var duration = subtract(this.
|
|
2589
|
-
var startLine = this.
|
|
2590
|
-
this.
|
|
2591
|
-
if (!invoke$isHeaders(this.
|
|
2592
|
-
return this.
|
|
2564
|
+
var request = get_request(this.r5i_1);
|
|
2565
|
+
var duration = subtract(this.r5i_1.v3t().c2r_1, this.r5i_1.u3t().c2r_1);
|
|
2566
|
+
var startLine = this.r5i_1.w31().w2o('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.p5i_1) || invoke$isHeaders(this.p5i_1)) ? '<-- ' + this.r5i_1.v37().toString() + ' ' + request.l3t().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.p5i_1) && !(contentLength == null) ? '<-- ' + this.r5i_1.v37().toString() + ' ' + request.l3t().toString() + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.p5i_1) || (invoke$isInfo(this.p5i_1) && contentLength == null) || (invoke$isHeaders(this.p5i_1) && !(contentLength == null)) || this.r5i_1.w31().w2o('Content-Encoding') === 'gzip' ? '<-- ' + this.r5i_1.v37().toString() + ' ' + request.l3t().toString() + ' (' + duration.toString() + 'ms)' : '<-- ' + this.r5i_1.v37().toString() + ' ' + request.l3t().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2567
|
+
this.s5i_1.j1(startLine);
|
|
2568
|
+
if (!invoke$isHeaders(this.p5i_1) && !invoke$isBody(this.p5i_1)) {
|
|
2569
|
+
return this.r5i_1;
|
|
2593
2570
|
}
|
|
2594
2571
|
|
|
2595
|
-
var _iterator__ex2g4s = this.
|
|
2572
|
+
var _iterator__ex2g4s = this.r5i_1.w31().n2p().t();
|
|
2596
2573
|
while (_iterator__ex2g4s.u()) {
|
|
2597
2574
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2598
2575
|
var name = _destruct__k2r9zo.r1();
|
|
2599
2576
|
var values = _destruct__k2r9zo.s1();
|
|
2600
|
-
var tmp0 = this.
|
|
2577
|
+
var tmp0 = this.o5i_1;
|
|
2601
2578
|
var tmp$ret$0 = Unit_instance;
|
|
2602
2579
|
l$ret$1: do {
|
|
2603
2580
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2604
2581
|
while (_iterator__ex2g4s_0.u()) {
|
|
2605
2582
|
var element = _iterator__ex2g4s_0.v();
|
|
2606
|
-
if (element.
|
|
2583
|
+
if (element.v5i_1(name)) {
|
|
2607
2584
|
tmp$ret$0 = element;
|
|
2608
2585
|
break l$ret$1;
|
|
2609
2586
|
}
|
|
@@ -2612,30 +2589,30 @@
|
|
|
2612
2589
|
}
|
|
2613
2590
|
while (false);
|
|
2614
2591
|
if (tmp$ret$0 == null) {
|
|
2615
|
-
this.
|
|
2592
|
+
this.s5i_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2616
2593
|
} else {
|
|
2617
|
-
this.
|
|
2594
|
+
this.s5i_1.j1(name + ': \u2588\u2588');
|
|
2618
2595
|
}
|
|
2619
2596
|
}
|
|
2620
2597
|
|
|
2621
|
-
if (!invoke$isBody(this.
|
|
2622
|
-
this.
|
|
2623
|
-
return this.
|
|
2598
|
+
if (!invoke$isBody(this.p5i_1)) {
|
|
2599
|
+
this.s5i_1.j1('<-- END HTTP');
|
|
2600
|
+
return this.r5i_1;
|
|
2624
2601
|
}
|
|
2625
2602
|
|
|
2626
2603
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2627
|
-
this.
|
|
2628
|
-
return this.
|
|
2604
|
+
this.s5i_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2605
|
+
return this.r5i_1;
|
|
2629
2606
|
}
|
|
2630
2607
|
|
|
2631
|
-
if (equals(contentType(this.
|
|
2632
|
-
this.
|
|
2633
|
-
return this.
|
|
2608
|
+
if (equals(contentType(this.r5i_1), Text_getInstance().d2x_1)) {
|
|
2609
|
+
this.s5i_1.j1('<-- END HTTP (streaming)');
|
|
2610
|
+
return this.r5i_1;
|
|
2634
2611
|
}
|
|
2635
2612
|
|
|
2636
|
-
if (get_isSaved(this.
|
|
2613
|
+
if (get_isSaved(this.r5i_1)) {
|
|
2637
2614
|
this.d9_1 = 3;
|
|
2638
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2615
|
+
suspendResult = invoke$logResponseBody(this.q5i_1, this.r5i_1, this.r5i_1.s3t(), this.s5i_1, this);
|
|
2639
2616
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2640
2617
|
return suspendResult;
|
|
2641
2618
|
}
|
|
@@ -2646,22 +2623,22 @@
|
|
|
2646
2623
|
}
|
|
2647
2624
|
|
|
2648
2625
|
case 1:
|
|
2649
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2650
|
-
this.
|
|
2651
|
-
var newChannel = _destruct__k2r9zo_0.
|
|
2626
|
+
var _destruct__k2r9zo_0 = split(this.r5i_1.s3t(), this.r5i_1);
|
|
2627
|
+
this.t5i_1 = _destruct__k2r9zo_0.jg();
|
|
2628
|
+
var newChannel = _destruct__k2r9zo_0.kg();
|
|
2652
2629
|
this.d9_1 = 2;
|
|
2653
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2630
|
+
suspendResult = invoke$logResponseBody(this.q5i_1, this.r5i_1, newChannel, this.s5i_1, this);
|
|
2654
2631
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2655
2632
|
return suspendResult;
|
|
2656
2633
|
}
|
|
2657
2634
|
|
|
2658
2635
|
continue $sm;
|
|
2659
2636
|
case 2:
|
|
2660
|
-
var tmp_0 = this.
|
|
2661
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2662
|
-
return call.
|
|
2637
|
+
var tmp_0 = this.r5i_1.j3t();
|
|
2638
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.t5i_1));
|
|
2639
|
+
return call.u3q();
|
|
2663
2640
|
case 3:
|
|
2664
|
-
return this.
|
|
2641
|
+
return this.r5i_1;
|
|
2665
2642
|
case 4:
|
|
2666
2643
|
throw this.g9_1;
|
|
2667
2644
|
}
|
|
@@ -2717,13 +2694,13 @@
|
|
|
2717
2694
|
var tmp_3;
|
|
2718
2695
|
try {
|
|
2719
2696
|
tmp_3 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2720
|
-
} catch ($
|
|
2697
|
+
} catch ($p_0) {
|
|
2721
2698
|
var tmp_4;
|
|
2722
|
-
if ($
|
|
2723
|
-
var _unused_var__etf5q3_0 = $
|
|
2699
|
+
if ($p_0 instanceof Error) {
|
|
2700
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
2724
2701
|
tmp_4 = null;
|
|
2725
2702
|
} else {
|
|
2726
|
-
throw $
|
|
2703
|
+
throw $p_0;
|
|
2727
2704
|
}
|
|
2728
2705
|
tmp_3 = tmp_4;
|
|
2729
2706
|
}
|
|
@@ -2755,7 +2732,7 @@
|
|
|
2755
2732
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2756
2733
|
while (_iterator__ex2g4s_0.u()) {
|
|
2757
2734
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2758
|
-
if (element_0.
|
|
2735
|
+
if (element_0.v5i_1(key)) {
|
|
2759
2736
|
tmp$ret$6 = element_0;
|
|
2760
2737
|
break $l$block;
|
|
2761
2738
|
}
|
|
@@ -2763,7 +2740,7 @@
|
|
|
2763
2740
|
tmp$ret$6 = null;
|
|
2764
2741
|
}
|
|
2765
2742
|
var tmp0_safe_receiver = tmp$ret$6;
|
|
2766
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2743
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u5i_1;
|
|
2767
2744
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2768
2745
|
}
|
|
2769
2746
|
}
|
|
@@ -2775,26 +2752,26 @@
|
|
|
2775
2752
|
}
|
|
2776
2753
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2777
2754
|
// Inline function 'kotlin.with' call
|
|
2778
|
-
if (level.
|
|
2755
|
+
if (level.z5b_1) {
|
|
2779
2756
|
// Inline function 'kotlin.text.appendLine' call
|
|
2780
|
-
var value = 'RESPONSE: ' + response.
|
|
2757
|
+
var value = 'RESPONSE: ' + response.v37().toString();
|
|
2781
2758
|
// Inline function 'kotlin.text.appendLine' call
|
|
2782
2759
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2783
2760
|
// Inline function 'kotlin.text.appendLine' call
|
|
2784
|
-
var value_0 = 'METHOD: ' + response.
|
|
2761
|
+
var value_0 = 'METHOD: ' + response.j3t().c3t().k3t().toString();
|
|
2785
2762
|
// Inline function 'kotlin.text.appendLine' call
|
|
2786
2763
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2787
2764
|
// Inline function 'kotlin.text.appendLine' call
|
|
2788
|
-
var value_1 = 'FROM: ' + response.
|
|
2765
|
+
var value_1 = 'FROM: ' + response.j3t().c3t().l3t().toString();
|
|
2789
2766
|
// Inline function 'kotlin.text.appendLine' call
|
|
2790
2767
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2791
2768
|
}
|
|
2792
|
-
if (level.
|
|
2769
|
+
if (level.a5c_1) {
|
|
2793
2770
|
// Inline function 'kotlin.text.appendLine' call
|
|
2794
2771
|
var value_2 = 'COMMON HEADERS';
|
|
2795
2772
|
// Inline function 'kotlin.text.appendLine' call
|
|
2796
2773
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2797
|
-
logHeaders(log, response.
|
|
2774
|
+
logHeaders(log, response.w31().n2p(), sanitizedHeaders);
|
|
2798
2775
|
}
|
|
2799
2776
|
}
|
|
2800
2777
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2810,16 +2787,16 @@
|
|
|
2810
2787
|
return tmp.l9();
|
|
2811
2788
|
}
|
|
2812
2789
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2813
|
-
this.
|
|
2790
|
+
this.q5n_1 = function_0;
|
|
2814
2791
|
}
|
|
2815
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
2816
|
-
return this.
|
|
2792
|
+
protoOf(sam$kotlin_Comparator$0).ee = function (a, b) {
|
|
2793
|
+
return this.q5n_1(a, b);
|
|
2817
2794
|
};
|
|
2818
2795
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2819
|
-
return this.
|
|
2796
|
+
return this.ee(a, b);
|
|
2820
2797
|
};
|
|
2821
2798
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2822
|
-
return this.
|
|
2799
|
+
return this.q5n_1;
|
|
2823
2800
|
};
|
|
2824
2801
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2825
2802
|
var tmp;
|
|
@@ -2847,8 +2824,8 @@
|
|
|
2847
2824
|
}
|
|
2848
2825
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2849
2826
|
CoroutineImpl.call(this, resultContinuation);
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2827
|
+
this.z5m_1 = _this__u8e3s4;
|
|
2828
|
+
this.a5n_1 = response;
|
|
2852
2829
|
}
|
|
2853
2830
|
protoOf($logResponseBodyCOROUTINE$_0).l9 = function () {
|
|
2854
2831
|
var suspendResult = this.f9_1;
|
|
@@ -2858,14 +2835,14 @@
|
|
|
2858
2835
|
switch (tmp) {
|
|
2859
2836
|
case 0:
|
|
2860
2837
|
this.e9_1 = 8;
|
|
2861
|
-
this.
|
|
2838
|
+
this.b5n_1 = StringBuilder_init_$Create$();
|
|
2862
2839
|
this.d9_1 = 1;
|
|
2863
2840
|
continue $sm;
|
|
2864
2841
|
case 1:
|
|
2865
2842
|
this.e9_1 = 4;
|
|
2866
2843
|
this.e9_1 = 3;
|
|
2867
2844
|
this.d9_1 = 2;
|
|
2868
|
-
suspendResult = appendResponseBody(this.
|
|
2845
|
+
suspendResult = appendResponseBody(this.b5n_1, contentType(this.a5n_1), this.a5n_1.s3t(), this);
|
|
2869
2846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2870
2847
|
return suspendResult;
|
|
2871
2848
|
}
|
|
@@ -2889,22 +2866,22 @@
|
|
|
2889
2866
|
|
|
2890
2867
|
case 4:
|
|
2891
2868
|
this.e9_1 = 8;
|
|
2892
|
-
this.
|
|
2869
|
+
this.c5n_1 = this.g9_1;
|
|
2893
2870
|
this.d9_1 = 5;
|
|
2894
|
-
var this_0 = this.
|
|
2895
|
-
suspendResult = this.
|
|
2871
|
+
var this_0 = this.b5n_1.toString();
|
|
2872
|
+
suspendResult = this.z5m_1.r5a(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2896
2873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2897
2874
|
return suspendResult;
|
|
2898
2875
|
}
|
|
2899
2876
|
|
|
2900
2877
|
continue $sm;
|
|
2901
2878
|
case 5:
|
|
2902
|
-
throw this.
|
|
2879
|
+
throw this.c5n_1;
|
|
2903
2880
|
case 6:
|
|
2904
2881
|
this.e9_1 = 8;
|
|
2905
2882
|
this.d9_1 = 7;
|
|
2906
|
-
var this_1 = this.
|
|
2907
|
-
suspendResult = this.
|
|
2883
|
+
var this_1 = this.b5n_1.toString();
|
|
2884
|
+
suspendResult = this.z5m_1.r5a(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2908
2885
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2909
2886
|
return suspendResult;
|
|
2910
2887
|
}
|
|
@@ -2928,9 +2905,9 @@
|
|
|
2928
2905
|
};
|
|
2929
2906
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2930
2907
|
CoroutineImpl.call(this, resultContinuation);
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2908
|
+
this.l5n_1 = _this__u8e3s4;
|
|
2909
|
+
this.m5n_1 = contentType;
|
|
2910
|
+
this.n5n_1 = content;
|
|
2934
2911
|
}
|
|
2935
2912
|
protoOf($appendResponseBodyCOROUTINE$).l9 = function () {
|
|
2936
2913
|
var suspendResult = this.f9_1;
|
|
@@ -2940,16 +2917,16 @@
|
|
|
2940
2917
|
switch (tmp) {
|
|
2941
2918
|
case 0:
|
|
2942
2919
|
this.e9_1 = 3;
|
|
2943
|
-
var tmp0 = this.
|
|
2944
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2920
|
+
var tmp0 = this.l5n_1;
|
|
2921
|
+
var value = 'BODY Content-Type: ' + toString_0(this.m5n_1);
|
|
2945
2922
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2946
|
-
var tmp0_0 = this.
|
|
2923
|
+
var tmp0_0 = this.l5n_1;
|
|
2947
2924
|
var value_0 = 'BODY START';
|
|
2948
2925
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2949
|
-
var tmp0_1 = this.
|
|
2950
|
-
var tmp0_safe_receiver = this.
|
|
2926
|
+
var tmp0_1 = this.n5n_1;
|
|
2927
|
+
var tmp0_safe_receiver = this.m5n_1;
|
|
2951
2928
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2952
|
-
this.
|
|
2929
|
+
this.p5n_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp1_elvis_lhs;
|
|
2953
2930
|
this.e9_1 = 2;
|
|
2954
2931
|
this.d9_1 = 1;
|
|
2955
2932
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2960,7 +2937,7 @@
|
|
|
2960
2937
|
continue $sm;
|
|
2961
2938
|
case 1:
|
|
2962
2939
|
var ARGUMENT = suspendResult;
|
|
2963
|
-
this.
|
|
2940
|
+
this.o5n_1 = readText(ARGUMENT, this.p5n_1);
|
|
2964
2941
|
this.e9_1 = 3;
|
|
2965
2942
|
this.d9_1 = 4;
|
|
2966
2943
|
continue $sm;
|
|
@@ -2970,7 +2947,7 @@
|
|
|
2970
2947
|
if (tmp_0 instanceof Error) {
|
|
2971
2948
|
var cause = this.g9_1;
|
|
2972
2949
|
var tmp_1 = this;
|
|
2973
|
-
tmp_1.
|
|
2950
|
+
tmp_1.o5n_1 = null;
|
|
2974
2951
|
this.d9_1 = 4;
|
|
2975
2952
|
continue $sm;
|
|
2976
2953
|
} else {
|
|
@@ -2981,10 +2958,10 @@
|
|
|
2981
2958
|
throw this.g9_1;
|
|
2982
2959
|
case 4:
|
|
2983
2960
|
this.e9_1 = 3;
|
|
2984
|
-
var tmp2_elvis_lhs = this.
|
|
2961
|
+
var tmp2_elvis_lhs = this.o5n_1;
|
|
2985
2962
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2963
|
+
this.l5n_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2964
|
+
this.l5n_1.q('BODY END');
|
|
2988
2965
|
return Unit_instance;
|
|
2989
2966
|
}
|
|
2990
2967
|
} catch ($p) {
|
|
@@ -3006,21 +2983,21 @@
|
|
|
3006
2983
|
}
|
|
3007
2984
|
function toReadChannel(_this__u8e3s4) {
|
|
3008
2985
|
var tmp = GlobalScope_instance;
|
|
3009
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
3010
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
2986
|
+
var tmp_0 = Dispatchers_getInstance().k16_1;
|
|
2987
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).x1q_1;
|
|
3011
2988
|
}
|
|
3012
2989
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3013
|
-
this.
|
|
2990
|
+
this.l5o_1 = $this_toReadChannel;
|
|
3014
2991
|
CoroutineImpl.call(this, resultContinuation);
|
|
3015
2992
|
}
|
|
3016
|
-
protoOf(toReadChannel$slambda).
|
|
3017
|
-
var tmp = this.
|
|
2993
|
+
protoOf(toReadChannel$slambda).b3d = function ($this$writer, $completion) {
|
|
2994
|
+
var tmp = this.c3d($this$writer, $completion);
|
|
3018
2995
|
tmp.f9_1 = Unit_instance;
|
|
3019
2996
|
tmp.g9_1 = null;
|
|
3020
2997
|
return tmp.l9();
|
|
3021
2998
|
};
|
|
3022
2999
|
protoOf(toReadChannel$slambda).y9 = function (p1, $completion) {
|
|
3023
|
-
return this.
|
|
3000
|
+
return this.b3d(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3024
3001
|
};
|
|
3025
3002
|
protoOf(toReadChannel$slambda).l9 = function () {
|
|
3026
3003
|
var suspendResult = this.f9_1;
|
|
@@ -3031,7 +3008,7 @@
|
|
|
3031
3008
|
case 0:
|
|
3032
3009
|
this.e9_1 = 2;
|
|
3033
3010
|
this.d9_1 = 1;
|
|
3034
|
-
suspendResult = this.
|
|
3011
|
+
suspendResult = this.l5o_1.c38(this.m5o_1.y1w_1, this);
|
|
3035
3012
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3036
3013
|
return suspendResult;
|
|
3037
3014
|
}
|
|
@@ -3053,23 +3030,21 @@
|
|
|
3053
3030
|
}
|
|
3054
3031
|
while (true);
|
|
3055
3032
|
};
|
|
3056
|
-
protoOf(toReadChannel$slambda).
|
|
3057
|
-
var i = new toReadChannel$slambda(this.
|
|
3058
|
-
i.
|
|
3033
|
+
protoOf(toReadChannel$slambda).c3d = function ($this$writer, completion) {
|
|
3034
|
+
var i = new toReadChannel$slambda(this.l5o_1, completion);
|
|
3035
|
+
i.m5o_1 = $this$writer;
|
|
3059
3036
|
return i;
|
|
3060
3037
|
};
|
|
3061
3038
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3062
3039
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3063
|
-
|
|
3064
|
-
return i.
|
|
3065
|
-
};
|
|
3066
|
-
l.$arity = 1;
|
|
3067
|
-
return l;
|
|
3040
|
+
return constructCallableReference(function ($this$writer, $completion) {
|
|
3041
|
+
return i.b3d($this$writer, $completion);
|
|
3042
|
+
}, 1);
|
|
3068
3043
|
}
|
|
3069
3044
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3070
3045
|
CoroutineImpl.call(this, resultContinuation);
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3046
|
+
this.z5n_1 = _this__u8e3s4;
|
|
3047
|
+
this.a5o_1 = log;
|
|
3073
3048
|
}
|
|
3074
3049
|
protoOf($observeCOROUTINE$).l9 = function () {
|
|
3075
3050
|
var suspendResult = this.f9_1;
|
|
@@ -3079,10 +3054,10 @@
|
|
|
3079
3054
|
switch (tmp) {
|
|
3080
3055
|
case 0:
|
|
3081
3056
|
this.e9_1 = 6;
|
|
3082
|
-
var tmp0_subject = this.
|
|
3057
|
+
var tmp0_subject = this.z5n_1;
|
|
3083
3058
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3084
3059
|
this.d9_1 = 3;
|
|
3085
|
-
suspendResult = writeFully_0(this.
|
|
3060
|
+
suspendResult = writeFully_0(this.a5o_1, this.z5n_1.x37(), VOID, VOID, this);
|
|
3086
3061
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3087
3062
|
return suspendResult;
|
|
3088
3063
|
}
|
|
@@ -3091,25 +3066,25 @@
|
|
|
3091
3066
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3092
3067
|
var tmp_0 = this;
|
|
3093
3068
|
var responseChannel = new ByteChannel();
|
|
3094
|
-
var content = this.
|
|
3095
|
-
copyToBoth(content, this.
|
|
3096
|
-
tmp_0.
|
|
3069
|
+
var content = this.z5n_1.a38();
|
|
3070
|
+
copyToBoth(content, this.a5o_1, responseChannel);
|
|
3071
|
+
tmp_0.b5o_1 = new LoggedContent(this.z5n_1, responseChannel);
|
|
3097
3072
|
this.d9_1 = 5;
|
|
3098
3073
|
continue $sm;
|
|
3099
3074
|
} else {
|
|
3100
3075
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3101
3076
|
var tmp_1 = this;
|
|
3102
3077
|
var responseChannel_0 = new ByteChannel();
|
|
3103
|
-
var content_0 = toReadChannel(this.
|
|
3104
|
-
copyToBoth(content_0, this.
|
|
3105
|
-
tmp_1.
|
|
3078
|
+
var content_0 = toReadChannel(this.z5n_1);
|
|
3079
|
+
copyToBoth(content_0, this.a5o_1, responseChannel_0);
|
|
3080
|
+
tmp_1.b5o_1 = new LoggedContent(this.z5n_1, responseChannel_0);
|
|
3106
3081
|
this.d9_1 = 5;
|
|
3107
3082
|
continue $sm;
|
|
3108
3083
|
} else {
|
|
3109
3084
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3110
|
-
this.
|
|
3085
|
+
this.c5o_1 = this.z5n_1;
|
|
3111
3086
|
this.d9_1 = 2;
|
|
3112
|
-
suspendResult = observe(this.
|
|
3087
|
+
suspendResult = observe(this.z5n_1.g38(), this.a5o_1, this);
|
|
3113
3088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3114
3089
|
return suspendResult;
|
|
3115
3090
|
}
|
|
@@ -3123,7 +3098,7 @@
|
|
|
3123
3098
|
}
|
|
3124
3099
|
if (tmp_2) {
|
|
3125
3100
|
this.d9_1 = 1;
|
|
3126
|
-
suspendResult = this.
|
|
3101
|
+
suspendResult = this.a5o_1.e1p(this);
|
|
3127
3102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3128
3103
|
return suspendResult;
|
|
3129
3104
|
}
|
|
@@ -3139,28 +3114,28 @@
|
|
|
3139
3114
|
|
|
3140
3115
|
break;
|
|
3141
3116
|
case 1:
|
|
3142
|
-
this.
|
|
3117
|
+
this.b5o_1 = this.z5n_1;
|
|
3143
3118
|
this.d9_1 = 5;
|
|
3144
3119
|
continue $sm;
|
|
3145
3120
|
case 2:
|
|
3146
3121
|
var ARGUMENT = suspendResult;
|
|
3147
|
-
this.
|
|
3122
|
+
this.b5o_1 = this.c5o_1.h38(ARGUMENT);
|
|
3148
3123
|
this.d9_1 = 5;
|
|
3149
3124
|
continue $sm;
|
|
3150
3125
|
case 3:
|
|
3151
3126
|
this.d9_1 = 4;
|
|
3152
|
-
suspendResult = this.
|
|
3127
|
+
suspendResult = this.a5o_1.e1p(this);
|
|
3153
3128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3154
3129
|
return suspendResult;
|
|
3155
3130
|
}
|
|
3156
3131
|
|
|
3157
3132
|
continue $sm;
|
|
3158
3133
|
case 4:
|
|
3159
|
-
this.
|
|
3134
|
+
this.b5o_1 = this.z5n_1;
|
|
3160
3135
|
this.d9_1 = 5;
|
|
3161
3136
|
continue $sm;
|
|
3162
3137
|
case 5:
|
|
3163
|
-
return this.
|
|
3138
|
+
return this.b5o_1;
|
|
3164
3139
|
case 6:
|
|
3165
3140
|
throw this.g9_1;
|
|
3166
3141
|
}
|
|
@@ -3200,13 +3175,13 @@
|
|
|
3200
3175
|
return get_SIMPLE(_this__u8e3s4);
|
|
3201
3176
|
}
|
|
3202
3177
|
//region block: post-declaration
|
|
3203
|
-
protoOf(Empty).
|
|
3204
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3205
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3178
|
+
protoOf(Empty).x5a = get_byteSize;
|
|
3179
|
+
protoOf(BinaryLogBodyFilter$1).u5a = filterRequest;
|
|
3180
|
+
protoOf(BinaryLogBodyFilter$1).w5a = filterResponse;
|
|
3206
3181
|
protoOf(MDCContextElement).q9 = get;
|
|
3207
|
-
protoOf(MDCContextElement).
|
|
3208
|
-
protoOf(MDCContextElement).
|
|
3209
|
-
protoOf(MDCContextElement).
|
|
3182
|
+
protoOf(MDCContextElement).fh = fold;
|
|
3183
|
+
protoOf(MDCContextElement).eh = minusKey;
|
|
3184
|
+
protoOf(MDCContextElement).gh = plus;
|
|
3210
3185
|
//endregion
|
|
3211
3186
|
//region block: init
|
|
3212
3187
|
Empty_instance = new Empty();
|