@doordeck/doordeck-headless-sdk 0.199.0 → 0.201.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/README.md +9 -9
- package/kotlin/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +25 -0
- package/kotlin/doordeck-sdk.js +7699 -7118
- package/kotlin/kotlin-kotlin-stdlib.js +488 -467
- package/kotlin/kotlinx-atomicfu.js +9 -9
- package/kotlin/kotlinx-coroutines-core.js +132 -131
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +21 -21
- package/kotlin/kotlinx-io-kotlinx-io-core.js +36 -36
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +199 -198
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1245 -1244
- package/kotlin/ktor-ktor-client-auth.js +264 -264
- package/kotlin/ktor-ktor-client-content-negotiation.js +155 -155
- package/kotlin/ktor-ktor-client-core.js +2361 -2247
- package/kotlin/ktor-ktor-client-logging.js +621 -621
- package/kotlin/ktor-ktor-events.js +8 -8
- package/kotlin/ktor-ktor-http-cio.js +70 -70
- package/kotlin/ktor-ktor-http.js +118 -117
- package/kotlin/ktor-ktor-io.js +67 -67
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +128 -128
- package/kotlin/ktor-ktor-serialization.js +16 -16
- package/kotlin/ktor-ktor-utils.js +160 -139
- package/kotlin/ktor-ktor-websockets.js +55 -55
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
5
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
14
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
15
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.q9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a9;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.eg;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.sb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.if;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.hc;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.ec;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.jb;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.va;
|
|
14
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
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.$_$.
|
|
19
|
-
var VOID = kotlin_kotlin.$_$.
|
|
20
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g3;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.hb;
|
|
19
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
20
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.lb;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.nb;
|
|
22
22
|
var readText = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
23
23
|
var readBuffer = kotlin_io_ktor_ktor_io.$_$.g;
|
|
24
24
|
var isTextType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
@@ -29,47 +29,47 @@
|
|
|
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
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
33
|
-
var Enum = kotlin_kotlin.$_$.
|
|
32
|
+
var charCodeAt = kotlin_kotlin.$_$.ta;
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.vf;
|
|
34
34
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
36
|
-
var println = kotlin_kotlin.$_$.
|
|
37
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ib;
|
|
36
|
+
var println = kotlin_kotlin.$_$.u9;
|
|
37
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
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.$_$.s2;
|
|
40
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.vc;
|
|
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
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
44
|
+
var fromInt = kotlin_kotlin.$_$.ba;
|
|
45
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
46
46
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
47
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.mb;
|
|
48
48
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
49
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
49
|
+
var isSuspendFunction = kotlin_kotlin.$_$.yb;
|
|
50
50
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
51
51
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.n;
|
|
52
52
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
53
53
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
54
54
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
55
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
56
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
57
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
56
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
57
|
+
var isInterface = kotlin_kotlin.$_$.wb;
|
|
58
58
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
59
59
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.j;
|
|
60
|
-
var Collection = kotlin_kotlin.$_$.
|
|
61
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
60
|
+
var Collection = kotlin_kotlin.$_$.h5;
|
|
61
|
+
var toString_0 = kotlin_kotlin.$_$.hh;
|
|
62
62
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
63
63
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
|
|
64
64
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
65
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
65
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
66
66
|
var Url = kotlin_io_ktor_ktor_http.$_$.g1;
|
|
67
67
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
68
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
69
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
+
var joinToString = kotlin_kotlin.$_$.l7;
|
|
69
|
+
var equals = kotlin_kotlin.$_$.za;
|
|
70
70
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
71
71
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
72
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
72
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dh;
|
|
73
73
|
var split = kotlin_io_ktor_ktor_utils.$_$.j1;
|
|
74
74
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
75
75
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
@@ -83,35 +83,35 @@
|
|
|
83
83
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
84
84
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.d1;
|
|
85
85
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
86
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.ye;
|
|
87
87
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
88
88
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
89
|
-
var subtract = kotlin_kotlin.$_$.
|
|
89
|
+
var subtract = kotlin_kotlin.$_$.ka;
|
|
90
90
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
91
91
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
92
92
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
93
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
94
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
95
|
-
var createKType = kotlin_kotlin.$_$.
|
|
93
|
+
var getKClass = kotlin_kotlin.$_$.wc;
|
|
94
|
+
var arrayOf = kotlin_kotlin.$_$.sg;
|
|
95
|
+
var createKType = kotlin_kotlin.$_$.uc;
|
|
96
96
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
|
|
97
97
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
|
|
98
|
-
var Unit = kotlin_kotlin.$_$.
|
|
98
|
+
var Unit = kotlin_kotlin.$_$.pg;
|
|
99
99
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
100
|
-
var toList = kotlin_kotlin.$_$.
|
|
101
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
102
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
103
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
104
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
105
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
100
|
+
var toList = kotlin_kotlin.$_$.m8;
|
|
101
|
+
var sortedWith = kotlin_kotlin.$_$.h8;
|
|
102
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ma;
|
|
103
|
+
var Comparator = kotlin_kotlin.$_$.sf;
|
|
104
|
+
var hashCode = kotlin_kotlin.$_$.gb;
|
|
105
|
+
var compareValues = kotlin_kotlin.$_$.y8;
|
|
106
106
|
var writer = kotlin_io_ktor_ktor_io.$_$.w1;
|
|
107
107
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
108
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.e1;
|
|
109
109
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.o;
|
|
110
|
-
var get = kotlin_kotlin.$_$.
|
|
111
|
-
var fold = kotlin_kotlin.$_$.
|
|
112
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
113
|
-
var plus = kotlin_kotlin.$_$.
|
|
114
|
-
var Element = kotlin_kotlin.$_$.
|
|
110
|
+
var get = kotlin_kotlin.$_$.m9;
|
|
111
|
+
var fold = kotlin_kotlin.$_$.l9;
|
|
112
|
+
var minusKey = kotlin_kotlin.$_$.n9;
|
|
113
|
+
var plus = kotlin_kotlin.$_$.p9;
|
|
114
|
+
var Element = kotlin_kotlin.$_$.o9;
|
|
115
115
|
//endregion
|
|
116
116
|
//region block: pre-declaration
|
|
117
117
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -119,10 +119,10 @@
|
|
|
119
119
|
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
120
120
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
121
121
|
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
122
|
-
return this.
|
|
122
|
+
return this.w58(contentLength, contentType, headers, body, $completion);
|
|
123
123
|
}
|
|
124
124
|
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.w58(contentLength, contentType, headers, body, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
128
128
|
function get_byteSize() {
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
//endregion
|
|
176
176
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
177
177
|
CoroutineImpl.call(this, resultContinuation);
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
178
|
+
this.m57_1 = _this__u8e3s4;
|
|
179
|
+
this.n57_1 = message;
|
|
180
180
|
}
|
|
181
181
|
protoOf($logResponseExceptionCOROUTINE$).i9 = function () {
|
|
182
182
|
var suspendResult = this.c9_1;
|
|
@@ -187,15 +187,15 @@
|
|
|
187
187
|
case 0:
|
|
188
188
|
this.b9_1 = 2;
|
|
189
189
|
this.a9_1 = 1;
|
|
190
|
-
suspendResult = this.
|
|
190
|
+
suspendResult = this.m57_1.r57_1.ut(this);
|
|
191
191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
192
192
|
return suspendResult;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
continue $sm;
|
|
196
196
|
case 1:
|
|
197
|
-
var this_0 = this.
|
|
198
|
-
this.
|
|
197
|
+
var this_0 = this.n57_1;
|
|
198
|
+
this.m57_1.o57_1.v57(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
199
199
|
return Unit_instance;
|
|
200
200
|
case 2:
|
|
201
201
|
throw this.d9_1;
|
|
@@ -213,8 +213,8 @@
|
|
|
213
213
|
};
|
|
214
214
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
215
215
|
CoroutineImpl.call(this, resultContinuation);
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
216
|
+
this.e58_1 = _this__u8e3s4;
|
|
217
|
+
this.f58_1 = message;
|
|
218
218
|
}
|
|
219
219
|
protoOf($logResponseBodyCOROUTINE$).i9 = function () {
|
|
220
220
|
var suspendResult = this.c9_1;
|
|
@@ -225,14 +225,14 @@
|
|
|
225
225
|
case 0:
|
|
226
226
|
this.b9_1 = 2;
|
|
227
227
|
this.a9_1 = 1;
|
|
228
|
-
suspendResult = this.
|
|
228
|
+
suspendResult = this.e58_1.s57_1.ut(this);
|
|
229
229
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
230
230
|
return suspendResult;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
continue $sm;
|
|
234
234
|
case 1:
|
|
235
|
-
this.
|
|
235
|
+
this.e58_1.q57_1.q(this.f58_1);
|
|
236
236
|
return Unit_instance;
|
|
237
237
|
case 2:
|
|
238
238
|
throw this.d9_1;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
};
|
|
251
251
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
252
252
|
CoroutineImpl.call(this, resultContinuation);
|
|
253
|
-
this.
|
|
253
|
+
this.o58_1 = _this__u8e3s4;
|
|
254
254
|
}
|
|
255
255
|
protoOf($closeResponseLogCOROUTINE$).i9 = function () {
|
|
256
256
|
var suspendResult = this.c9_1;
|
|
@@ -260,19 +260,19 @@
|
|
|
260
260
|
switch (tmp) {
|
|
261
261
|
case 0:
|
|
262
262
|
this.b9_1 = 2;
|
|
263
|
-
if (!this.
|
|
263
|
+
if (!this.o58_1.u57_1.atomicfu$compareAndSet(false, true))
|
|
264
264
|
return Unit_instance;
|
|
265
265
|
this.a9_1 = 1;
|
|
266
|
-
suspendResult = this.
|
|
266
|
+
suspendResult = this.o58_1.r57_1.ut(this);
|
|
267
267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
268
268
|
return suspendResult;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
continue $sm;
|
|
272
272
|
case 1:
|
|
273
|
-
var message = toString(trim(this.
|
|
273
|
+
var message = toString(trim(this.o58_1.q57_1));
|
|
274
274
|
if (charSequenceLength(message) > 0) {
|
|
275
|
-
this.
|
|
275
|
+
this.o58_1.o57_1.v57(message);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
return Unit_instance;
|
|
@@ -291,57 +291,57 @@
|
|
|
291
291
|
while (true);
|
|
292
292
|
};
|
|
293
293
|
function HttpClientCallLogger(logger) {
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
}
|
|
302
|
-
protoOf(HttpClientCallLogger).
|
|
303
|
-
var tmp0 = this.
|
|
294
|
+
this.o57_1 = logger;
|
|
295
|
+
this.p57_1 = StringBuilder_init_$Create$();
|
|
296
|
+
this.q57_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.r57_1 = Job();
|
|
298
|
+
this.s57_1 = Job();
|
|
299
|
+
this.t57_1 = atomic$boolean$1(false);
|
|
300
|
+
this.u57_1 = atomic$boolean$1(false);
|
|
301
|
+
}
|
|
302
|
+
protoOf(HttpClientCallLogger).p58 = function (message) {
|
|
303
|
+
var tmp0 = this.p57_1;
|
|
304
304
|
// Inline function 'kotlin.text.trim' call
|
|
305
305
|
// Inline function 'kotlin.text.appendLine' call
|
|
306
306
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
307
307
|
// Inline function 'kotlin.text.appendLine' call
|
|
308
308
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
309
309
|
};
|
|
310
|
-
protoOf(HttpClientCallLogger).
|
|
311
|
-
var tmp0 = this.
|
|
310
|
+
protoOf(HttpClientCallLogger).q58 = function (message) {
|
|
311
|
+
var tmp0 = this.q57_1;
|
|
312
312
|
// Inline function 'kotlin.text.trim' call
|
|
313
313
|
// Inline function 'kotlin.text.appendLine' call
|
|
314
314
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
315
315
|
// Inline function 'kotlin.text.appendLine' call
|
|
316
316
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
317
|
-
this.
|
|
317
|
+
this.s57_1.y10();
|
|
318
318
|
};
|
|
319
|
-
protoOf(HttpClientCallLogger).
|
|
319
|
+
protoOf(HttpClientCallLogger).r58 = function (message, $completion) {
|
|
320
320
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
321
321
|
tmp.c9_1 = Unit_instance;
|
|
322
322
|
tmp.d9_1 = null;
|
|
323
323
|
return tmp.i9();
|
|
324
324
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
325
|
+
protoOf(HttpClientCallLogger).s58 = function (message, $completion) {
|
|
326
326
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
327
327
|
tmp.c9_1 = Unit_instance;
|
|
328
328
|
tmp.d9_1 = null;
|
|
329
329
|
return tmp.i9();
|
|
330
330
|
};
|
|
331
|
-
protoOf(HttpClientCallLogger).
|
|
332
|
-
if (!this.
|
|
331
|
+
protoOf(HttpClientCallLogger).t58 = function () {
|
|
332
|
+
if (!this.t57_1.atomicfu$compareAndSet(false, true))
|
|
333
333
|
return Unit_instance;
|
|
334
334
|
try {
|
|
335
|
-
var message = toString(trim(this.
|
|
335
|
+
var message = toString(trim(this.p57_1));
|
|
336
336
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
337
337
|
if (charSequenceLength(message) > 0) {
|
|
338
|
-
this.
|
|
338
|
+
this.o57_1.v57(message);
|
|
339
339
|
}
|
|
340
340
|
}finally {
|
|
341
|
-
this.
|
|
341
|
+
this.r57_1.y10();
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
protoOf(HttpClientCallLogger).
|
|
344
|
+
protoOf(HttpClientCallLogger).u58 = function ($completion) {
|
|
345
345
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
346
346
|
tmp.c9_1 = Unit_instance;
|
|
347
347
|
tmp.d9_1 = null;
|
|
@@ -363,35 +363,35 @@
|
|
|
363
363
|
function Skip(reason, byteSize) {
|
|
364
364
|
reason = reason === VOID ? null : reason;
|
|
365
365
|
byteSize = byteSize === VOID ? null : byteSize;
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
366
|
+
this.z58_1 = reason;
|
|
367
|
+
this.a59_1 = byteSize;
|
|
368
368
|
}
|
|
369
|
-
protoOf(Skip).
|
|
370
|
-
return this.
|
|
369
|
+
protoOf(Skip).y58 = function () {
|
|
370
|
+
return this.a59_1;
|
|
371
371
|
};
|
|
372
372
|
function Content() {
|
|
373
373
|
}
|
|
374
374
|
function BufferContent(buffer, charset, byteSize) {
|
|
375
375
|
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
376
|
+
this.c59_1 = buffer;
|
|
377
|
+
this.d59_1 = charset;
|
|
378
|
+
this.e59_1 = byteSize;
|
|
379
379
|
}
|
|
380
|
-
protoOf(BufferContent).
|
|
381
|
-
return this.
|
|
380
|
+
protoOf(BufferContent).y58 = function () {
|
|
381
|
+
return this.e59_1;
|
|
382
382
|
};
|
|
383
|
-
protoOf(BufferContent).
|
|
384
|
-
return readText(this.
|
|
383
|
+
protoOf(BufferContent).b59 = function () {
|
|
384
|
+
return readText(this.c59_1, this.d59_1);
|
|
385
385
|
};
|
|
386
386
|
function BodyFilterResult() {
|
|
387
387
|
}
|
|
388
388
|
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
389
389
|
CoroutineImpl.call(this, resultContinuation);
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
390
|
+
this.n59_1 = _this__u8e3s4;
|
|
391
|
+
this.o59_1 = contentLength;
|
|
392
|
+
this.p59_1 = contentType;
|
|
393
|
+
this.q59_1 = headers;
|
|
394
|
+
this.r59_1 = body;
|
|
395
395
|
}
|
|
396
396
|
protoOf($filterAllCOROUTINE$).i9 = function () {
|
|
397
397
|
var suspendResult = this.c9_1;
|
|
@@ -401,13 +401,13 @@
|
|
|
401
401
|
switch (tmp) {
|
|
402
402
|
case 0:
|
|
403
403
|
this.b9_1 = 6;
|
|
404
|
-
if (this.
|
|
405
|
-
return new Skip('encoded', this.
|
|
404
|
+
if (this.q59_1.z2m('Content-Encoding')) {
|
|
405
|
+
return new Skip('encoded', this.o59_1);
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
if (!(this.
|
|
408
|
+
if (!(this.p59_1 == null) && isTextType(this.p59_1)) {
|
|
409
409
|
this.a9_1 = 5;
|
|
410
|
-
suspendResult = readBuffer(this.
|
|
410
|
+
suspendResult = readBuffer(this.r59_1, this);
|
|
411
411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
412
412
|
return suspendResult;
|
|
413
413
|
}
|
|
@@ -420,18 +420,18 @@
|
|
|
420
420
|
case 1:
|
|
421
421
|
var tmp_0 = this;
|
|
422
422
|
var tmp_1;
|
|
423
|
-
if (!(this.
|
|
424
|
-
var tmp1_elvis_lhs = charset(this.
|
|
423
|
+
if (!(this.p59_1 == null)) {
|
|
424
|
+
var tmp1_elvis_lhs = charset(this.p59_1);
|
|
425
425
|
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp1_elvis_lhs;
|
|
426
426
|
} else {
|
|
427
427
|
tmp_1 = Charsets_getInstance().t1x_1;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
tmp_0.
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
430
|
+
tmp_0.x59_1 = tmp_1;
|
|
431
|
+
this.w59_1 = false;
|
|
432
|
+
this.v59_1 = new Int8Array(1024);
|
|
433
433
|
this.a9_1 = 2;
|
|
434
|
-
suspendResult = readAvailable(this.
|
|
434
|
+
suspendResult = readAvailable(this.r59_1, this.v59_1, VOID, VOID, this);
|
|
435
435
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
436
436
|
return suspendResult;
|
|
437
437
|
}
|
|
@@ -444,16 +444,16 @@
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
var this_0 = new Buffer();
|
|
447
|
-
writeFully(this_0, this.
|
|
447
|
+
writeFully(this_0, this.v59_1, 0, firstReadSize);
|
|
448
448
|
var buffer = this_0;
|
|
449
449
|
var tmp_2;
|
|
450
450
|
try {
|
|
451
|
-
tmp_2 = decode(this.
|
|
451
|
+
tmp_2 = decode(this.x59_1.w1x(), buffer);
|
|
452
452
|
} catch ($p) {
|
|
453
453
|
var tmp_3;
|
|
454
454
|
if ($p instanceof MalformedInputException) {
|
|
455
455
|
var _unused_var__etf5q3 = $p;
|
|
456
|
-
this.
|
|
456
|
+
this.w59_1 = true;
|
|
457
457
|
tmp_3 = '';
|
|
458
458
|
} else {
|
|
459
459
|
throw $p;
|
|
@@ -462,7 +462,7 @@
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
var firstChunkText = tmp_2;
|
|
465
|
-
if (!this.
|
|
465
|
+
if (!this.w59_1) {
|
|
466
466
|
var lastCharIndex = -1;
|
|
467
467
|
var inductionVariable = 0;
|
|
468
468
|
var last = firstChunkText.length;
|
|
@@ -478,23 +478,23 @@
|
|
|
478
478
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
479
479
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
480
480
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
481
|
-
this.
|
|
481
|
+
this.w59_1 = true;
|
|
482
482
|
break $l$loop;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
if (this.
|
|
487
|
+
if (this.w59_1) {
|
|
488
488
|
var tmp_4 = this;
|
|
489
|
-
tmp_4.
|
|
489
|
+
tmp_4.s59_1 = new Skip('binary', this.o59_1);
|
|
490
490
|
this.a9_1 = 4;
|
|
491
491
|
continue $sm;
|
|
492
492
|
} else {
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
495
|
-
writeFully(this.
|
|
493
|
+
this.t59_1 = new Buffer();
|
|
494
|
+
this.u59_1 = this.t59_1;
|
|
495
|
+
writeFully(this.u59_1, this.v59_1, 0, firstReadSize);
|
|
496
496
|
this.a9_1 = 3;
|
|
497
|
-
suspendResult = readBuffer(this.
|
|
497
|
+
suspendResult = readBuffer(this.r59_1, this);
|
|
498
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
499
|
return suspendResult;
|
|
500
500
|
}
|
|
@@ -503,19 +503,19 @@
|
|
|
503
503
|
|
|
504
504
|
case 3:
|
|
505
505
|
var ARGUMENT = suspendResult;
|
|
506
|
-
this.
|
|
507
|
-
var ARGUMENT_0 = this.
|
|
506
|
+
this.u59_1.vq(ARGUMENT);
|
|
507
|
+
var ARGUMENT_0 = this.t59_1;
|
|
508
508
|
var tmp_5 = this;
|
|
509
|
-
var tmp2_safe_receiver = this.
|
|
509
|
+
var tmp2_safe_receiver = this.p59_1;
|
|
510
510
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
511
|
-
tmp_5.
|
|
511
|
+
tmp_5.s59_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp3_elvis_lhs);
|
|
512
512
|
this.a9_1 = 4;
|
|
513
513
|
continue $sm;
|
|
514
514
|
case 4:
|
|
515
|
-
return this.
|
|
515
|
+
return this.s59_1;
|
|
516
516
|
case 5:
|
|
517
517
|
var ARGUMENT_1 = suspendResult;
|
|
518
|
-
var tmp0_elvis_lhs = charset(this.
|
|
518
|
+
var tmp0_elvis_lhs = charset(this.p59_1);
|
|
519
519
|
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp0_elvis_lhs);
|
|
520
520
|
case 6:
|
|
521
521
|
throw this.d9_1;
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
};
|
|
534
534
|
function BinaryLogBodyFilter$1() {
|
|
535
535
|
}
|
|
536
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
536
|
+
protoOf(BinaryLogBodyFilter$1).w58 = function (contentLength, contentType, headers, body, $completion) {
|
|
537
537
|
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
538
538
|
tmp.c9_1 = Unit_instance;
|
|
539
539
|
tmp.d9_1 = null;
|
|
@@ -564,9 +564,9 @@
|
|
|
564
564
|
}
|
|
565
565
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
566
566
|
Enum.call(this, name, ordinal);
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
567
|
+
this.a5a_1 = info;
|
|
568
|
+
this.b5a_1 = headers;
|
|
569
|
+
this.c5a_1 = body;
|
|
570
570
|
}
|
|
571
571
|
function LogLevel_ALL_getInstance() {
|
|
572
572
|
LogLevel_initEntries();
|
|
@@ -590,27 +590,27 @@
|
|
|
590
590
|
}
|
|
591
591
|
function LoggedContent(originalContent, channel) {
|
|
592
592
|
ReadChannelContent.call(this);
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
593
|
+
this.e5a_1 = originalContent;
|
|
594
|
+
this.f5a_1 = channel;
|
|
595
|
+
this.g5a_1 = this.e5a_1.x35();
|
|
596
|
+
this.h5a_1 = this.e5a_1.z35();
|
|
597
|
+
this.i5a_1 = this.e5a_1.y35();
|
|
598
|
+
this.j5a_1 = this.e5a_1.z2z();
|
|
599
599
|
}
|
|
600
600
|
protoOf(LoggedContent).x35 = function () {
|
|
601
|
-
return this.
|
|
601
|
+
return this.g5a_1;
|
|
602
602
|
};
|
|
603
603
|
protoOf(LoggedContent).z35 = function () {
|
|
604
|
-
return this.
|
|
604
|
+
return this.h5a_1;
|
|
605
605
|
};
|
|
606
606
|
protoOf(LoggedContent).y35 = function () {
|
|
607
|
-
return this.
|
|
607
|
+
return this.i5a_1;
|
|
608
608
|
};
|
|
609
609
|
protoOf(LoggedContent).z2z = function () {
|
|
610
|
-
return this.
|
|
610
|
+
return this.j5a_1;
|
|
611
611
|
};
|
|
612
612
|
protoOf(LoggedContent).d36 = function () {
|
|
613
|
-
return this.
|
|
613
|
+
return this.f5a_1;
|
|
614
614
|
};
|
|
615
615
|
function Companion() {
|
|
616
616
|
}
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
}
|
|
624
624
|
function SimpleLogger() {
|
|
625
625
|
}
|
|
626
|
-
protoOf(SimpleLogger).
|
|
626
|
+
protoOf(SimpleLogger).v57 = function (message) {
|
|
627
627
|
println('HttpClient: ' + message);
|
|
628
628
|
};
|
|
629
629
|
var SimpleLogger_instance;
|
|
@@ -648,20 +648,20 @@
|
|
|
648
648
|
function LoggingConfig() {
|
|
649
649
|
var tmp = this;
|
|
650
650
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
651
|
-
tmp.
|
|
651
|
+
tmp.k5a_1 = ArrayList_init_$Create$();
|
|
652
652
|
var tmp_0 = this;
|
|
653
653
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
654
|
-
tmp_0.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
654
|
+
tmp_0.l5a_1 = ArrayList_init_$Create$();
|
|
655
|
+
this.m5a_1 = null;
|
|
656
|
+
this.n5a_1 = LoggingFormat_Default_getInstance();
|
|
657
|
+
this.o5a_1 = LogLevel_HEADERS_getInstance();
|
|
658
|
+
this.p5a_1 = get_BinaryLogBodyFilter();
|
|
659
659
|
}
|
|
660
|
-
protoOf(LoggingConfig).
|
|
661
|
-
this.
|
|
660
|
+
protoOf(LoggingConfig).q5a = function (value) {
|
|
661
|
+
this.m5a_1 = value;
|
|
662
662
|
};
|
|
663
|
-
protoOf(LoggingConfig).
|
|
664
|
-
var tmp0_elvis_lhs = this.
|
|
663
|
+
protoOf(LoggingConfig).r5a = function () {
|
|
664
|
+
var tmp0_elvis_lhs = this.m5a_1;
|
|
665
665
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
666
666
|
};
|
|
667
667
|
var LoggingFormat_Default_instance;
|
|
@@ -706,27 +706,27 @@
|
|
|
706
706
|
return tmp;
|
|
707
707
|
}
|
|
708
708
|
function Context(context) {
|
|
709
|
-
this.
|
|
709
|
+
this.s5a_1 = context;
|
|
710
710
|
}
|
|
711
|
-
protoOf(Context).
|
|
712
|
-
return this.
|
|
711
|
+
protoOf(Context).t5a = function (content, $completion) {
|
|
712
|
+
return this.s5a_1.z2q(content, $completion);
|
|
713
713
|
};
|
|
714
|
-
protoOf(Context).
|
|
715
|
-
return this.
|
|
714
|
+
protoOf(Context).u5a = function ($completion) {
|
|
715
|
+
return this.s5a_1.a2r($completion);
|
|
716
716
|
};
|
|
717
717
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
718
|
-
this.
|
|
718
|
+
this.d5b_1 = $handler;
|
|
719
719
|
CoroutineImpl.call(this, resultContinuation);
|
|
720
720
|
}
|
|
721
|
-
protoOf(SendHook$install$slambda).
|
|
722
|
-
var tmp = this.
|
|
721
|
+
protoOf(SendHook$install$slambda).q3o = function ($this$intercept, it, $completion) {
|
|
722
|
+
var tmp = this.r3o($this$intercept, it, $completion);
|
|
723
723
|
tmp.c9_1 = Unit_instance;
|
|
724
724
|
tmp.d9_1 = null;
|
|
725
725
|
return tmp.i9();
|
|
726
726
|
};
|
|
727
727
|
protoOf(SendHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
728
728
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
729
|
-
return this.
|
|
729
|
+
return this.q3o(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
730
730
|
};
|
|
731
731
|
protoOf(SendHook$install$slambda).i9 = function () {
|
|
732
732
|
var suspendResult = this.c9_1;
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
case 0:
|
|
738
738
|
this.b9_1 = 2;
|
|
739
739
|
this.a9_1 = 1;
|
|
740
|
-
suspendResult = this.
|
|
740
|
+
suspendResult = this.d5b_1(new Context(this.e5b_1), this.e5b_1.v2r_1, this);
|
|
741
741
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
742
742
|
return suspendResult;
|
|
743
743
|
}
|
|
@@ -759,52 +759,52 @@
|
|
|
759
759
|
}
|
|
760
760
|
while (true);
|
|
761
761
|
};
|
|
762
|
-
protoOf(SendHook$install$slambda).
|
|
763
|
-
var i = new SendHook$install$slambda(this.
|
|
764
|
-
i.
|
|
765
|
-
i.
|
|
762
|
+
protoOf(SendHook$install$slambda).r3o = function ($this$intercept, it, completion) {
|
|
763
|
+
var i = new SendHook$install$slambda(this.d5b_1, completion);
|
|
764
|
+
i.e5b_1 = $this$intercept;
|
|
765
|
+
i.f5b_1 = it;
|
|
766
766
|
return i;
|
|
767
767
|
};
|
|
768
768
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
769
769
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
770
770
|
var l = function ($this$intercept, it, $completion) {
|
|
771
|
-
return i.
|
|
771
|
+
return i.q3o($this$intercept, it, $completion);
|
|
772
772
|
};
|
|
773
773
|
l.$arity = 2;
|
|
774
774
|
return l;
|
|
775
775
|
}
|
|
776
776
|
function SendHook() {
|
|
777
777
|
}
|
|
778
|
-
protoOf(SendHook).
|
|
779
|
-
var tmp = Phases_getInstance().
|
|
778
|
+
protoOf(SendHook).g5b = function (client, handler) {
|
|
779
|
+
var tmp = Phases_getInstance().h3q_1;
|
|
780
780
|
client.u3n_1.z2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
781
781
|
};
|
|
782
|
-
protoOf(SendHook).
|
|
783
|
-
return this.
|
|
782
|
+
protoOf(SendHook).d3x = function (client, handler) {
|
|
783
|
+
return this.g5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
784
784
|
};
|
|
785
785
|
var SendHook_instance;
|
|
786
786
|
function SendHook_getInstance() {
|
|
787
787
|
return SendHook_instance;
|
|
788
788
|
}
|
|
789
789
|
function Context_0(context) {
|
|
790
|
-
this.
|
|
790
|
+
this.h5b_1 = context;
|
|
791
791
|
}
|
|
792
|
-
protoOf(Context_0).
|
|
793
|
-
return this.
|
|
792
|
+
protoOf(Context_0).c4m = function (response, $completion) {
|
|
793
|
+
return this.h5b_1.z2q(response, $completion);
|
|
794
794
|
};
|
|
795
795
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
796
|
-
this.
|
|
796
|
+
this.q5b_1 = $handler;
|
|
797
797
|
CoroutineImpl.call(this, resultContinuation);
|
|
798
798
|
}
|
|
799
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
800
|
-
var tmp = this.
|
|
799
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).p3x = function ($this$intercept, it, $completion) {
|
|
800
|
+
var tmp = this.q3x($this$intercept, it, $completion);
|
|
801
801
|
tmp.c9_1 = Unit_instance;
|
|
802
802
|
tmp.d9_1 = null;
|
|
803
803
|
return tmp.i9();
|
|
804
804
|
};
|
|
805
805
|
protoOf(ResponseAfterEncodingHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
806
806
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
807
|
-
return this.
|
|
807
|
+
return this.p3x(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
808
808
|
};
|
|
809
809
|
protoOf(ResponseAfterEncodingHook$install$slambda).i9 = function () {
|
|
810
810
|
var suspendResult = this.c9_1;
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
case 0:
|
|
816
816
|
this.b9_1 = 2;
|
|
817
817
|
this.a9_1 = 1;
|
|
818
|
-
suspendResult = this.
|
|
818
|
+
suspendResult = this.q5b_1(new Context_0(this.r5b_1), this.r5b_1.y2q(), this);
|
|
819
819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
820
820
|
return suspendResult;
|
|
821
821
|
}
|
|
@@ -837,53 +837,53 @@
|
|
|
837
837
|
}
|
|
838
838
|
while (true);
|
|
839
839
|
};
|
|
840
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
841
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
842
|
-
i.
|
|
843
|
-
i.
|
|
840
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).q3x = function ($this$intercept, it, completion) {
|
|
841
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.q5b_1, completion);
|
|
842
|
+
i.r5b_1 = $this$intercept;
|
|
843
|
+
i.s5b_1 = it;
|
|
844
844
|
return i;
|
|
845
845
|
};
|
|
846
846
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
847
847
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
848
848
|
var l = function ($this$intercept, it, $completion) {
|
|
849
|
-
return i.
|
|
849
|
+
return i.p3x($this$intercept, it, $completion);
|
|
850
850
|
};
|
|
851
851
|
l.$arity = 2;
|
|
852
852
|
return l;
|
|
853
853
|
}
|
|
854
854
|
function ResponseAfterEncodingHook() {
|
|
855
855
|
}
|
|
856
|
-
protoOf(ResponseAfterEncodingHook).
|
|
856
|
+
protoOf(ResponseAfterEncodingHook).t5b = function (client, handler) {
|
|
857
857
|
var afterState = new PipelinePhase('AfterState');
|
|
858
|
-
client.v3n_1.w2r(Phases_getInstance_0().
|
|
858
|
+
client.v3n_1.w2r(Phases_getInstance_0().t3x_1, afterState);
|
|
859
859
|
client.v3n_1.z2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
860
860
|
};
|
|
861
|
-
protoOf(ResponseAfterEncodingHook).
|
|
862
|
-
return this.
|
|
861
|
+
protoOf(ResponseAfterEncodingHook).d3x = function (client, handler) {
|
|
862
|
+
return this.t5b(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
863
863
|
};
|
|
864
864
|
var ResponseAfterEncodingHook_instance;
|
|
865
865
|
function ResponseAfterEncodingHook_getInstance() {
|
|
866
866
|
return ResponseAfterEncodingHook_instance;
|
|
867
867
|
}
|
|
868
868
|
function Context_1(context) {
|
|
869
|
-
this.
|
|
869
|
+
this.u5b_1 = context;
|
|
870
870
|
}
|
|
871
|
-
protoOf(Context_1).
|
|
872
|
-
return this.
|
|
871
|
+
protoOf(Context_1).v5b = function ($completion) {
|
|
872
|
+
return this.u5b_1.a2r($completion);
|
|
873
873
|
};
|
|
874
874
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
875
|
-
this.
|
|
875
|
+
this.e5c_1 = $handler;
|
|
876
876
|
CoroutineImpl.call(this, resultContinuation);
|
|
877
877
|
}
|
|
878
|
-
protoOf(ResponseHook$install$slambda).
|
|
879
|
-
var tmp = this.
|
|
878
|
+
protoOf(ResponseHook$install$slambda).p3x = function ($this$intercept, it, $completion) {
|
|
879
|
+
var tmp = this.q3x($this$intercept, it, $completion);
|
|
880
880
|
tmp.c9_1 = Unit_instance;
|
|
881
881
|
tmp.d9_1 = null;
|
|
882
882
|
return tmp.i9();
|
|
883
883
|
};
|
|
884
884
|
protoOf(ResponseHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
885
885
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
886
|
-
return this.
|
|
886
|
+
return this.p3x(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
887
887
|
};
|
|
888
888
|
protoOf(ResponseHook$install$slambda).i9 = function () {
|
|
889
889
|
var suspendResult = this.c9_1;
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
case 0:
|
|
895
895
|
this.b9_1 = 2;
|
|
896
896
|
this.a9_1 = 1;
|
|
897
|
-
suspendResult = this.
|
|
897
|
+
suspendResult = this.e5c_1(new Context_1(this.f5c_1), this.f5c_1.y2q(), this);
|
|
898
898
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
899
899
|
return suspendResult;
|
|
900
900
|
}
|
|
@@ -916,52 +916,52 @@
|
|
|
916
916
|
}
|
|
917
917
|
while (true);
|
|
918
918
|
};
|
|
919
|
-
protoOf(ResponseHook$install$slambda).
|
|
920
|
-
var i = new ResponseHook$install$slambda(this.
|
|
921
|
-
i.
|
|
922
|
-
i.
|
|
919
|
+
protoOf(ResponseHook$install$slambda).q3x = function ($this$intercept, it, completion) {
|
|
920
|
+
var i = new ResponseHook$install$slambda(this.e5c_1, completion);
|
|
921
|
+
i.f5c_1 = $this$intercept;
|
|
922
|
+
i.g5c_1 = it;
|
|
923
923
|
return i;
|
|
924
924
|
};
|
|
925
925
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
926
926
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
927
927
|
var l = function ($this$intercept, it, $completion) {
|
|
928
|
-
return i.
|
|
928
|
+
return i.p3x($this$intercept, it, $completion);
|
|
929
929
|
};
|
|
930
930
|
l.$arity = 2;
|
|
931
931
|
return l;
|
|
932
932
|
}
|
|
933
933
|
function ResponseHook() {
|
|
934
934
|
}
|
|
935
|
-
protoOf(ResponseHook).
|
|
936
|
-
var tmp = Phases_getInstance_0().
|
|
935
|
+
protoOf(ResponseHook).h5c = function (client, handler) {
|
|
936
|
+
var tmp = Phases_getInstance_0().t3x_1;
|
|
937
937
|
client.v3n_1.z2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
938
938
|
};
|
|
939
|
-
protoOf(ResponseHook).
|
|
940
|
-
return this.
|
|
939
|
+
protoOf(ResponseHook).d3x = function (client, handler) {
|
|
940
|
+
return this.h5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
941
941
|
};
|
|
942
942
|
var ResponseHook_instance;
|
|
943
943
|
function ResponseHook_getInstance() {
|
|
944
944
|
return ResponseHook_instance;
|
|
945
945
|
}
|
|
946
946
|
function Context_2(context) {
|
|
947
|
-
this.
|
|
947
|
+
this.i5c_1 = context;
|
|
948
948
|
}
|
|
949
|
-
protoOf(Context_2).
|
|
950
|
-
return this.
|
|
949
|
+
protoOf(Context_2).j5c = function ($completion) {
|
|
950
|
+
return this.i5c_1.a2r($completion);
|
|
951
951
|
};
|
|
952
952
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
953
|
-
this.
|
|
953
|
+
this.s5c_1 = $handler;
|
|
954
954
|
CoroutineImpl.call(this, resultContinuation);
|
|
955
955
|
}
|
|
956
|
-
protoOf(ReceiveHook$install$slambda).
|
|
957
|
-
var tmp = this.
|
|
956
|
+
protoOf(ReceiveHook$install$slambda).l3p = function ($this$intercept, it, $completion) {
|
|
957
|
+
var tmp = this.m3p($this$intercept, it, $completion);
|
|
958
958
|
tmp.c9_1 = Unit_instance;
|
|
959
959
|
tmp.d9_1 = null;
|
|
960
960
|
return tmp.i9();
|
|
961
961
|
};
|
|
962
962
|
protoOf(ReceiveHook$install$slambda).v9 = function (p1, p2, $completion) {
|
|
963
963
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
964
|
-
return this.
|
|
964
|
+
return this.l3p(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
965
965
|
};
|
|
966
966
|
protoOf(ReceiveHook$install$slambda).i9 = function () {
|
|
967
967
|
var suspendResult = this.c9_1;
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
case 0:
|
|
973
973
|
this.b9_1 = 2;
|
|
974
974
|
this.a9_1 = 1;
|
|
975
|
-
suspendResult = this.
|
|
975
|
+
suspendResult = this.s5c_1(new Context_2(this.t5c_1), this.t5c_1.v2r_1, this);
|
|
976
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
977
|
return suspendResult;
|
|
978
978
|
}
|
|
@@ -994,28 +994,28 @@
|
|
|
994
994
|
}
|
|
995
995
|
while (true);
|
|
996
996
|
};
|
|
997
|
-
protoOf(ReceiveHook$install$slambda).
|
|
998
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
999
|
-
i.
|
|
1000
|
-
i.
|
|
997
|
+
protoOf(ReceiveHook$install$slambda).m3p = function ($this$intercept, it, completion) {
|
|
998
|
+
var i = new ReceiveHook$install$slambda(this.s5c_1, completion);
|
|
999
|
+
i.t5c_1 = $this$intercept;
|
|
1000
|
+
i.u5c_1 = it;
|
|
1001
1001
|
return i;
|
|
1002
1002
|
};
|
|
1003
1003
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
1004
1004
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1005
1005
|
var l = function ($this$intercept, it, $completion) {
|
|
1006
|
-
return i.
|
|
1006
|
+
return i.l3p($this$intercept, it, $completion);
|
|
1007
1007
|
};
|
|
1008
1008
|
l.$arity = 2;
|
|
1009
1009
|
return l;
|
|
1010
1010
|
}
|
|
1011
1011
|
function ReceiveHook() {
|
|
1012
1012
|
}
|
|
1013
|
-
protoOf(ReceiveHook).
|
|
1014
|
-
var tmp = Phases_getInstance_1().
|
|
1013
|
+
protoOf(ReceiveHook).v5c = function (client, handler) {
|
|
1014
|
+
var tmp = Phases_getInstance_1().v3q_1;
|
|
1015
1015
|
client.t3n_1.z2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1016
1016
|
};
|
|
1017
|
-
protoOf(ReceiveHook).
|
|
1018
|
-
return this.
|
|
1017
|
+
protoOf(ReceiveHook).d3x = function (client, handler) {
|
|
1018
|
+
return this.v5c(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1019
1019
|
};
|
|
1020
1020
|
var ReceiveHook_instance;
|
|
1021
1021
|
function ReceiveHook_getInstance() {
|
|
@@ -1030,27 +1030,27 @@
|
|
|
1030
1030
|
}
|
|
1031
1031
|
function Logging$lambda($this$createClientPlugin) {
|
|
1032
1032
|
_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.
|
|
1033
|
+
var logger = $this$createClientPlugin.x3x_1.r5a();
|
|
1034
|
+
var level = $this$createClientPlugin.x3x_1.o5a_1;
|
|
1035
|
+
var filters = $this$createClientPlugin.x3x_1.k5a_1;
|
|
1036
|
+
var sanitizedHeaders = $this$createClientPlugin.x3x_1.l5a_1;
|
|
1037
|
+
var okHttpFormat = $this$createClientPlugin.x3x_1.n5a_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1038
|
+
var bodyFilter = $this$createClientPlugin.x3x_1.p5a_1;
|
|
1039
1039
|
var tmp = SendHook_instance;
|
|
1040
|
-
$this$createClientPlugin.
|
|
1040
|
+
$this$createClientPlugin.a3y(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1041
1041
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1042
|
-
$this$createClientPlugin.
|
|
1042
|
+
$this$createClientPlugin.a3y(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1043
1043
|
var tmp_1 = ResponseHook_instance;
|
|
1044
|
-
$this$createClientPlugin.
|
|
1044
|
+
$this$createClientPlugin.a3y(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1045
1045
|
var tmp_2 = ReceiveHook_instance;
|
|
1046
|
-
$this$createClientPlugin.
|
|
1046
|
+
$this$createClientPlugin.a3y(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, logger, null));
|
|
1047
1047
|
if (okHttpFormat)
|
|
1048
1048
|
return Unit_instance;
|
|
1049
|
-
if (!level.
|
|
1049
|
+
if (!level.c5a_1)
|
|
1050
1050
|
return Unit_instance;
|
|
1051
1051
|
var tmp_3 = get_ResponseObserver();
|
|
1052
|
-
var responseObserver = tmp_3.
|
|
1053
|
-
get_ResponseObserver().
|
|
1052
|
+
var responseObserver = tmp_3.c3r(Logging$lambda$lambda(level));
|
|
1053
|
+
get_ResponseObserver().d3r(responseObserver, $this$createClientPlugin.w3x_1);
|
|
1054
1054
|
return Unit_instance;
|
|
1055
1055
|
}
|
|
1056
1056
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
@@ -1058,8 +1058,8 @@
|
|
|
1058
1058
|
return it;
|
|
1059
1059
|
}
|
|
1060
1060
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1061
|
+
this.e5d_1 = $content;
|
|
1062
|
+
this.f5d_1 = $channel;
|
|
1063
1063
|
CoroutineImpl.call(this, resultContinuation);
|
|
1064
1064
|
}
|
|
1065
1065
|
protoOf(Logging$lambda$logOutgoingContent$slambda).t1w = function ($this$launch, $completion) {
|
|
@@ -1080,14 +1080,14 @@
|
|
|
1080
1080
|
case 0:
|
|
1081
1081
|
this.b9_1 = 2;
|
|
1082
1082
|
this.a9_1 = 1;
|
|
1083
|
-
suspendResult = this.
|
|
1083
|
+
suspendResult = this.e5d_1.f36(this.f5d_1, this);
|
|
1084
1084
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1085
1085
|
return suspendResult;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
continue $sm;
|
|
1089
1089
|
case 1:
|
|
1090
|
-
this.
|
|
1090
|
+
this.f5d_1.l4();
|
|
1091
1091
|
return Unit_instance;
|
|
1092
1092
|
case 2:
|
|
1093
1093
|
throw this.d9_1;
|
|
@@ -1104,8 +1104,8 @@
|
|
|
1104
1104
|
while (true);
|
|
1105
1105
|
};
|
|
1106
1106
|
protoOf(Logging$lambda$logOutgoingContent$slambda).u1w = function ($this$launch, completion) {
|
|
1107
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1108
|
-
i.
|
|
1107
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.e5d_1, this.f5d_1, completion);
|
|
1108
|
+
i.g5d_1 = $this$launch;
|
|
1109
1109
|
return i;
|
|
1110
1110
|
};
|
|
1111
1111
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
@@ -1126,10 +1126,10 @@
|
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
1128
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1129
|
+
this.p5d_1 = $channel;
|
|
1130
|
+
this.q5d_1 = $charset;
|
|
1131
|
+
this.r5d_1 = $requestLog;
|
|
1132
|
+
this.s5d_1 = $logger;
|
|
1133
1133
|
CoroutineImpl.call(this, resultContinuation);
|
|
1134
1134
|
}
|
|
1135
1135
|
protoOf(Logging$lambda$logRequestBody$slambda).t1w = function ($this$launch, $completion) {
|
|
@@ -1153,8 +1153,8 @@
|
|
|
1153
1153
|
continue $sm;
|
|
1154
1154
|
case 1:
|
|
1155
1155
|
this.b9_1 = 6;
|
|
1156
|
-
var tmp0 = this.
|
|
1157
|
-
this.
|
|
1156
|
+
var tmp0 = this.p5d_1;
|
|
1157
|
+
this.w5d_1 = this.q5d_1;
|
|
1158
1158
|
this.b9_1 = 3;
|
|
1159
1159
|
this.a9_1 = 2;
|
|
1160
1160
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1165,7 +1165,7 @@
|
|
|
1165
1165
|
continue $sm;
|
|
1166
1166
|
case 2:
|
|
1167
1167
|
var ARGUMENT = suspendResult;
|
|
1168
|
-
this.
|
|
1168
|
+
this.v5d_1 = readText(ARGUMENT, this.w5d_1);
|
|
1169
1169
|
this.b9_1 = 6;
|
|
1170
1170
|
this.a9_1 = 4;
|
|
1171
1171
|
continue $sm;
|
|
@@ -1175,7 +1175,7 @@
|
|
|
1175
1175
|
if (tmp_0 instanceof Error) {
|
|
1176
1176
|
var cause = this.d9_1;
|
|
1177
1177
|
var tmp_1 = this;
|
|
1178
|
-
tmp_1.
|
|
1178
|
+
tmp_1.v5d_1 = null;
|
|
1179
1179
|
this.a9_1 = 4;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
} else {
|
|
@@ -1184,27 +1184,27 @@
|
|
|
1184
1184
|
|
|
1185
1185
|
case 4:
|
|
1186
1186
|
this.b9_1 = 6;
|
|
1187
|
-
var tmp0_elvis_lhs = this.
|
|
1187
|
+
var tmp0_elvis_lhs = this.v5d_1;
|
|
1188
1188
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1189
|
-
var tmp0_0 = this.
|
|
1189
|
+
var tmp0_0 = this.r5d_1;
|
|
1190
1190
|
var value = 'BODY START';
|
|
1191
1191
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1192
|
+
this.r5d_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1193
|
+
this.u5d_1 = this.r5d_1.q('BODY END');
|
|
1194
1194
|
this.b9_1 = 7;
|
|
1195
1195
|
this.a9_1 = 5;
|
|
1196
1196
|
continue $sm;
|
|
1197
1197
|
case 5:
|
|
1198
|
-
this.
|
|
1198
|
+
this.u5d_1;
|
|
1199
1199
|
this.b9_1 = 7;
|
|
1200
|
-
this.
|
|
1201
|
-
this.
|
|
1200
|
+
this.s5d_1.p58(this.r5d_1.toString());
|
|
1201
|
+
this.s5d_1.t58();
|
|
1202
1202
|
return Unit_instance;
|
|
1203
1203
|
case 6:
|
|
1204
1204
|
this.b9_1 = 7;
|
|
1205
1205
|
var t = this.d9_1;
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1206
|
+
this.s5d_1.p58(this.r5d_1.toString());
|
|
1207
|
+
this.s5d_1.t58();
|
|
1208
1208
|
throw t;
|
|
1209
1209
|
case 7:
|
|
1210
1210
|
throw this.d9_1;
|
|
@@ -1221,8 +1221,8 @@
|
|
|
1221
1221
|
while (true);
|
|
1222
1222
|
};
|
|
1223
1223
|
protoOf(Logging$lambda$logRequestBody$slambda).u1w = function ($this$launch, completion) {
|
|
1224
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1225
|
-
i.
|
|
1224
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.p5d_1, this.q5d_1, this.r5d_1, this.s5d_1, completion);
|
|
1225
|
+
i.t5d_1 = $this$launch;
|
|
1226
1226
|
return i;
|
|
1227
1227
|
};
|
|
1228
1228
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
@@ -1330,34 +1330,34 @@
|
|
|
1330
1330
|
return observe(content, channel, $completion);
|
|
1331
1331
|
}
|
|
1332
1332
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1333
|
-
if (level.
|
|
1334
|
-
logger.
|
|
1333
|
+
if (level.a5a_1) {
|
|
1334
|
+
logger.v57('REQUEST ' + Url(context.x3p_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
1337
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1338
|
-
var tmp = request.
|
|
1338
|
+
var tmp = request.a3q_1;
|
|
1339
1339
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1340
1340
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1341
|
-
request.
|
|
1341
|
+
request.c3q_1.t2j(get_ClientCallLogger(), callLogger);
|
|
1342
1342
|
// Inline function 'kotlin.text.buildString' call
|
|
1343
1343
|
// Inline function 'kotlin.apply' call
|
|
1344
1344
|
var this_0 = StringBuilder_init_$Create$();
|
|
1345
|
-
if (level.
|
|
1345
|
+
if (level.a5a_1) {
|
|
1346
1346
|
// Inline function 'kotlin.text.appendLine' call
|
|
1347
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1347
|
+
var value = 'REQUEST: ' + Url(request.x3p_1).toString();
|
|
1348
1348
|
// Inline function 'kotlin.text.appendLine' call
|
|
1349
1349
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1350
1350
|
// Inline function 'kotlin.text.appendLine' call
|
|
1351
|
-
var value_0 = 'METHOD: ' + request.
|
|
1351
|
+
var value_0 = 'METHOD: ' + request.y3p_1.toString();
|
|
1352
1352
|
// Inline function 'kotlin.text.appendLine' call
|
|
1353
1353
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1354
1354
|
}
|
|
1355
|
-
if (level.
|
|
1355
|
+
if (level.b5a_1) {
|
|
1356
1356
|
// Inline function 'kotlin.text.appendLine' call
|
|
1357
1357
|
var value_1 = 'COMMON HEADERS';
|
|
1358
1358
|
// Inline function 'kotlin.text.appendLine' call
|
|
1359
1359
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1360
|
-
logHeaders(this_0, request.
|
|
1360
|
+
logHeaders(this_0, request.z3p_1.e2o(), sanitizedHeaders);
|
|
1361
1361
|
// Inline function 'kotlin.text.appendLine' call
|
|
1362
1362
|
var value_2 = 'CONTENT HEADERS';
|
|
1363
1363
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1368,7 +1368,7 @@
|
|
|
1368
1368
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1369
1369
|
while (_iterator__ex2g4s.u()) {
|
|
1370
1370
|
var element = _iterator__ex2g4s.v();
|
|
1371
|
-
if (element.
|
|
1371
|
+
if (element.w5g_1('Content-Length')) {
|
|
1372
1372
|
tmp$ret$11 = element;
|
|
1373
1373
|
break $l$block;
|
|
1374
1374
|
}
|
|
@@ -1376,14 +1376,14 @@
|
|
|
1376
1376
|
tmp$ret$11 = null;
|
|
1377
1377
|
}
|
|
1378
1378
|
var tmp0_safe_receiver = tmp$ret$11;
|
|
1379
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1379
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v5g_1;
|
|
1380
1380
|
var tmp$ret$13;
|
|
1381
1381
|
$l$block_0: {
|
|
1382
1382
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1383
1383
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1384
1384
|
while (_iterator__ex2g4s_0.u()) {
|
|
1385
1385
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1386
|
-
if (element_0.
|
|
1386
|
+
if (element_0.w5g_1('Content-Type')) {
|
|
1387
1387
|
tmp$ret$13 = element_0;
|
|
1388
1388
|
break $l$block_0;
|
|
1389
1389
|
}
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
tmp$ret$13 = null;
|
|
1392
1392
|
}
|
|
1393
1393
|
var tmp1_safe_receiver = tmp$ret$13;
|
|
1394
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1394
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.v5g_1;
|
|
1395
1395
|
var tmp2_safe_receiver = content.z35();
|
|
1396
1396
|
if (tmp2_safe_receiver == null)
|
|
1397
1397
|
null;
|
|
@@ -1411,45 +1411,45 @@
|
|
|
1411
1411
|
var message = this_0.toString();
|
|
1412
1412
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1413
1413
|
if (charSequenceLength(message) > 0) {
|
|
1414
|
-
callLogger.
|
|
1414
|
+
callLogger.p58(message);
|
|
1415
1415
|
}
|
|
1416
1416
|
var tmp_0;
|
|
1417
1417
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1418
1418
|
if (charSequenceLength(message) === 0) {
|
|
1419
1419
|
tmp_0 = true;
|
|
1420
1420
|
} else {
|
|
1421
|
-
tmp_0 = !level.
|
|
1421
|
+
tmp_0 = !level.c5a_1;
|
|
1422
1422
|
}
|
|
1423
1423
|
if (tmp_0) {
|
|
1424
|
-
callLogger.
|
|
1424
|
+
callLogger.t58();
|
|
1425
1425
|
return null;
|
|
1426
1426
|
}
|
|
1427
1427
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1428
1428
|
}
|
|
1429
1429
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1430
|
-
if (!level.
|
|
1430
|
+
if (!level.a5a_1)
|
|
1431
1431
|
return Unit_instance;
|
|
1432
|
-
log.q('RESPONSE ' + request.
|
|
1432
|
+
log.q('RESPONSE ' + request.o3r().toString() + ' failed with exception: ' + cause.toString());
|
|
1433
1433
|
}
|
|
1434
1434
|
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.
|
|
1435
|
+
this.f5h_1 = $okHttpFormat;
|
|
1436
|
+
this.g5h_1 = $logger;
|
|
1437
|
+
this.h5h_1 = $filters;
|
|
1438
|
+
this.i5h_1 = $sanitizedHeaders;
|
|
1439
|
+
this.j5h_1 = $level;
|
|
1440
|
+
this.k5h_1 = $this_createClientPlugin;
|
|
1441
|
+
this.l5h_1 = $bodyFilter;
|
|
1442
1442
|
CoroutineImpl.call(this, resultContinuation);
|
|
1443
1443
|
}
|
|
1444
|
-
protoOf(Logging$lambda$slambda).
|
|
1445
|
-
var tmp = this.
|
|
1444
|
+
protoOf(Logging$lambda$slambda).u5h = function ($this$on, request, $completion) {
|
|
1445
|
+
var tmp = this.v5h($this$on, request, $completion);
|
|
1446
1446
|
tmp.c9_1 = Unit_instance;
|
|
1447
1447
|
tmp.d9_1 = null;
|
|
1448
1448
|
return tmp.i9();
|
|
1449
1449
|
};
|
|
1450
1450
|
protoOf(Logging$lambda$slambda).v9 = function (p1, p2, $completion) {
|
|
1451
1451
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1452
|
-
return this.
|
|
1452
|
+
return this.u5h(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1453
1453
|
};
|
|
1454
1454
|
protoOf(Logging$lambda$slambda).i9 = function () {
|
|
1455
1455
|
var suspendResult = this.c9_1;
|
|
@@ -1459,16 +1459,16 @@
|
|
|
1459
1459
|
switch (tmp) {
|
|
1460
1460
|
case 0:
|
|
1461
1461
|
this.b9_1 = 16;
|
|
1462
|
-
if (!invoke$shouldBeLogged(this.
|
|
1463
|
-
this.
|
|
1462
|
+
if (!invoke$shouldBeLogged(this.h5h_1, this.n5h_1)) {
|
|
1463
|
+
this.n5h_1.c3q_1.t2j(get_DisableLogging(), Unit_instance);
|
|
1464
1464
|
return Unit_instance;
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
|
-
if (this.
|
|
1467
|
+
if (this.f5h_1) {
|
|
1468
1468
|
var tmp_0 = this;
|
|
1469
|
-
tmp_0.
|
|
1469
|
+
tmp_0.q5h_1 = ArrayList_init_$Create$();
|
|
1470
1470
|
this.a9_1 = 10;
|
|
1471
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1471
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.i5h_1, this.j5h_1, this.k5h_1, this.l5h_1, this.n5h_1, this.q5h_1, this);
|
|
1472
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1473
1473
|
return suspendResult;
|
|
1474
1474
|
}
|
|
@@ -1481,14 +1481,14 @@
|
|
|
1481
1481
|
case 1:
|
|
1482
1482
|
this.b9_1 = 3;
|
|
1483
1483
|
this.a9_1 = 2;
|
|
1484
|
-
suspendResult = invoke$logRequest(this.
|
|
1484
|
+
suspendResult = invoke$logRequest(this.g5h_1, this.j5h_1, this.i5h_1, this.n5h_1, this);
|
|
1485
1485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1486
1486
|
return suspendResult;
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
1489
|
continue $sm;
|
|
1490
1490
|
case 2:
|
|
1491
|
-
this.
|
|
1491
|
+
this.t5h_1 = suspendResult;
|
|
1492
1492
|
this.b9_1 = 16;
|
|
1493
1493
|
this.a9_1 = 4;
|
|
1494
1494
|
continue $sm;
|
|
@@ -1498,7 +1498,7 @@
|
|
|
1498
1498
|
if (tmp_1 instanceof Error) {
|
|
1499
1499
|
var _unused_var__etf5q3 = this.d9_1;
|
|
1500
1500
|
var tmp_2 = this;
|
|
1501
|
-
tmp_2.
|
|
1501
|
+
tmp_2.t5h_1 = null;
|
|
1502
1502
|
this.a9_1 = 4;
|
|
1503
1503
|
continue $sm;
|
|
1504
1504
|
} else {
|
|
@@ -1507,23 +1507,23 @@
|
|
|
1507
1507
|
|
|
1508
1508
|
case 4:
|
|
1509
1509
|
this.b9_1 = 16;
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1510
|
+
this.s5h_1 = this.t5h_1;
|
|
1511
|
+
this.r5h_1 = Unit_instance;
|
|
1512
1512
|
this.a9_1 = 5;
|
|
1513
1513
|
continue $sm;
|
|
1514
1514
|
case 5:
|
|
1515
1515
|
this.b9_1 = 8;
|
|
1516
1516
|
this.b9_1 = 7;
|
|
1517
1517
|
this.a9_1 = 6;
|
|
1518
|
-
var tmp0_elvis_lhs = this.
|
|
1519
|
-
suspendResult = this.
|
|
1518
|
+
var tmp0_elvis_lhs = this.s5h_1;
|
|
1519
|
+
suspendResult = this.m5h_1.t5a(tmp0_elvis_lhs == null ? this.n5h_1.a3q_1 : tmp0_elvis_lhs, this);
|
|
1520
1520
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1521
1521
|
return suspendResult;
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
1524
|
continue $sm;
|
|
1525
1525
|
case 6:
|
|
1526
|
-
this.
|
|
1526
|
+
this.r5h_1 = suspendResult;
|
|
1527
1527
|
this.b9_1 = 16;
|
|
1528
1528
|
this.a9_1 = 9;
|
|
1529
1529
|
continue $sm;
|
|
@@ -1533,7 +1533,7 @@
|
|
|
1533
1533
|
if (tmp_3 instanceof Error) {
|
|
1534
1534
|
var cause = this.d9_1;
|
|
1535
1535
|
var tmp_4 = this;
|
|
1536
|
-
invoke$logRequestException(this.
|
|
1536
|
+
invoke$logRequestException(this.j5h_1, this.g5h_1, this.n5h_1, cause);
|
|
1537
1537
|
throw cause;
|
|
1538
1538
|
} else {
|
|
1539
1539
|
throw this.d9_1;
|
|
@@ -1544,26 +1544,26 @@
|
|
|
1544
1544
|
var t = this.d9_1;
|
|
1545
1545
|
throw t;
|
|
1546
1546
|
case 9:
|
|
1547
|
-
this.
|
|
1547
|
+
this.r5h_1;
|
|
1548
1548
|
this.b9_1 = 16;
|
|
1549
1549
|
return Unit_instance;
|
|
1550
1550
|
case 10:
|
|
1551
1551
|
var content = suspendResult;
|
|
1552
|
-
if (this.
|
|
1553
|
-
this.
|
|
1552
|
+
if (this.q5h_1.l1() > 0) {
|
|
1553
|
+
this.g5h_1.v57(joinToString(this.q5h_1, '\n'));
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
this.b9_1 = 14;
|
|
1557
1557
|
if (!(content == null)) {
|
|
1558
1558
|
this.a9_1 = 12;
|
|
1559
|
-
suspendResult = this.
|
|
1559
|
+
suspendResult = this.m5h_1.t5a(content, this);
|
|
1560
1560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1561
1561
|
return suspendResult;
|
|
1562
1562
|
}
|
|
1563
1563
|
continue $sm;
|
|
1564
1564
|
} else {
|
|
1565
1565
|
this.a9_1 = 11;
|
|
1566
|
-
suspendResult = this.
|
|
1566
|
+
suspendResult = this.m5h_1.u5a(this);
|
|
1567
1567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
1568
|
return suspendResult;
|
|
1569
1569
|
}
|
|
@@ -1571,15 +1571,15 @@
|
|
|
1571
1571
|
}
|
|
1572
1572
|
|
|
1573
1573
|
case 11:
|
|
1574
|
-
this.
|
|
1574
|
+
this.p5h_1 = suspendResult;
|
|
1575
1575
|
this.a9_1 = 13;
|
|
1576
1576
|
continue $sm;
|
|
1577
1577
|
case 12:
|
|
1578
|
-
this.
|
|
1578
|
+
this.p5h_1 = suspendResult;
|
|
1579
1579
|
this.a9_1 = 13;
|
|
1580
1580
|
continue $sm;
|
|
1581
1581
|
case 13:
|
|
1582
|
-
this.
|
|
1582
|
+
this.o5h_1 = this.p5h_1;
|
|
1583
1583
|
this.b9_1 = 16;
|
|
1584
1584
|
this.a9_1 = 15;
|
|
1585
1585
|
continue $sm;
|
|
@@ -1589,7 +1589,7 @@
|
|
|
1589
1589
|
if (tmp_5 instanceof Error) {
|
|
1590
1590
|
var cause_0 = this.d9_1;
|
|
1591
1591
|
var tmp_6 = this;
|
|
1592
|
-
this.
|
|
1592
|
+
this.g5h_1.v57('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1593
1593
|
throw cause_0;
|
|
1594
1594
|
} else {
|
|
1595
1595
|
throw this.d9_1;
|
|
@@ -1612,37 +1612,37 @@
|
|
|
1612
1612
|
}
|
|
1613
1613
|
while (true);
|
|
1614
1614
|
};
|
|
1615
|
-
protoOf(Logging$lambda$slambda).
|
|
1616
|
-
var i = new Logging$lambda$slambda(this.
|
|
1617
|
-
i.
|
|
1618
|
-
i.
|
|
1615
|
+
protoOf(Logging$lambda$slambda).v5h = function ($this$on, request, completion) {
|
|
1616
|
+
var i = new Logging$lambda$slambda(this.f5h_1, this.g5h_1, this.h5h_1, this.i5h_1, this.j5h_1, this.k5h_1, this.l5h_1, completion);
|
|
1617
|
+
i.m5h_1 = $this$on;
|
|
1618
|
+
i.n5h_1 = request;
|
|
1619
1619
|
return i;
|
|
1620
1620
|
};
|
|
1621
1621
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1622
1622
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1623
1623
|
var l = function ($this$on, request, $completion) {
|
|
1624
|
-
return i.
|
|
1624
|
+
return i.u5h($this$on, request, $completion);
|
|
1625
1625
|
};
|
|
1626
1626
|
l.$arity = 2;
|
|
1627
1627
|
return l;
|
|
1628
1628
|
}
|
|
1629
1629
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1630
|
+
this.e5i_1 = $okHttpFormat;
|
|
1631
|
+
this.f5i_1 = $logger;
|
|
1632
|
+
this.g5i_1 = $sanitizedHeaders;
|
|
1633
|
+
this.h5i_1 = $level;
|
|
1634
|
+
this.i5i_1 = $bodyFilter;
|
|
1635
1635
|
CoroutineImpl.call(this, resultContinuation);
|
|
1636
1636
|
}
|
|
1637
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1638
|
-
var tmp = this.
|
|
1637
|
+
protoOf(Logging$lambda$slambda_1).m5i = function ($this$on, response, $completion) {
|
|
1638
|
+
var tmp = this.n5i($this$on, response, $completion);
|
|
1639
1639
|
tmp.c9_1 = Unit_instance;
|
|
1640
1640
|
tmp.d9_1 = null;
|
|
1641
1641
|
return tmp.i9();
|
|
1642
1642
|
};
|
|
1643
1643
|
protoOf(Logging$lambda$slambda_1).v9 = function (p1, p2, $completion) {
|
|
1644
1644
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1645
|
-
return this.
|
|
1645
|
+
return this.m5i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1646
1646
|
};
|
|
1647
1647
|
protoOf(Logging$lambda$slambda_1).i9 = function () {
|
|
1648
1648
|
var suspendResult = this.c9_1;
|
|
@@ -1652,11 +1652,11 @@
|
|
|
1652
1652
|
switch (tmp) {
|
|
1653
1653
|
case 0:
|
|
1654
1654
|
this.b9_1 = 5;
|
|
1655
|
-
if (this.
|
|
1655
|
+
if (this.e5i_1) {
|
|
1656
1656
|
var tmp_0 = this;
|
|
1657
|
-
tmp_0.
|
|
1657
|
+
tmp_0.l5i_1 = ArrayList_init_$Create$();
|
|
1658
1658
|
this.a9_1 = 1;
|
|
1659
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1659
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.g5i_1, this.h5i_1, this.i5i_1, this.k5i_1, this.l5i_1, this);
|
|
1660
1660
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1661
1661
|
return suspendResult;
|
|
1662
1662
|
}
|
|
@@ -1668,13 +1668,13 @@
|
|
|
1668
1668
|
|
|
1669
1669
|
case 1:
|
|
1670
1670
|
var newResponse = suspendResult;
|
|
1671
|
-
if (this.
|
|
1672
|
-
this.
|
|
1671
|
+
if (this.l5i_1.l1() > 0) {
|
|
1672
|
+
this.f5i_1.v57(joinToString(this.l5i_1, '\n'));
|
|
1673
1673
|
}
|
|
1674
1674
|
|
|
1675
|
-
if (!equals(newResponse, this.
|
|
1675
|
+
if (!equals(newResponse, this.k5i_1)) {
|
|
1676
1676
|
this.a9_1 = 2;
|
|
1677
|
-
suspendResult = this.
|
|
1677
|
+
suspendResult = this.j5i_1.c4m(newResponse, this);
|
|
1678
1678
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1679
1679
|
return suspendResult;
|
|
1680
1680
|
}
|
|
@@ -1706,35 +1706,35 @@
|
|
|
1706
1706
|
}
|
|
1707
1707
|
while (true);
|
|
1708
1708
|
};
|
|
1709
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1710
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1711
|
-
i.
|
|
1712
|
-
i.
|
|
1709
|
+
protoOf(Logging$lambda$slambda_1).n5i = function ($this$on, response, completion) {
|
|
1710
|
+
var i = new Logging$lambda$slambda_1(this.e5i_1, this.f5i_1, this.g5i_1, this.h5i_1, this.i5i_1, completion);
|
|
1711
|
+
i.j5i_1 = $this$on;
|
|
1712
|
+
i.k5i_1 = response;
|
|
1713
1713
|
return i;
|
|
1714
1714
|
};
|
|
1715
1715
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1716
1716
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1717
1717
|
var l = function ($this$on, response, $completion) {
|
|
1718
|
-
return i.
|
|
1718
|
+
return i.m5i($this$on, response, $completion);
|
|
1719
1719
|
};
|
|
1720
1720
|
l.$arity = 2;
|
|
1721
1721
|
return l;
|
|
1722
1722
|
}
|
|
1723
1723
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1724
|
+
this.w5i_1 = $okHttpFormat;
|
|
1725
|
+
this.x5i_1 = $level;
|
|
1726
|
+
this.y5i_1 = $sanitizedHeaders;
|
|
1727
1727
|
CoroutineImpl.call(this, resultContinuation);
|
|
1728
1728
|
}
|
|
1729
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1730
|
-
var tmp = this.
|
|
1729
|
+
protoOf(Logging$lambda$slambda_3).h5j = function ($this$on, response, $completion) {
|
|
1730
|
+
var tmp = this.i5j($this$on, response, $completion);
|
|
1731
1731
|
tmp.c9_1 = Unit_instance;
|
|
1732
1732
|
tmp.d9_1 = null;
|
|
1733
1733
|
return tmp.i9();
|
|
1734
1734
|
};
|
|
1735
1735
|
protoOf(Logging$lambda$slambda_3).v9 = function (p1, p2, $completion) {
|
|
1736
1736
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1737
|
-
return this.
|
|
1737
|
+
return this.h5j(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1738
1738
|
};
|
|
1739
1739
|
protoOf(Logging$lambda$slambda_3).i9 = function () {
|
|
1740
1740
|
var suspendResult = this.c9_1;
|
|
@@ -1744,28 +1744,28 @@
|
|
|
1744
1744
|
switch (tmp) {
|
|
1745
1745
|
case 0:
|
|
1746
1746
|
this.b9_1 = 14;
|
|
1747
|
-
if (this.
|
|
1747
|
+
if (this.w5i_1)
|
|
1748
1748
|
return Unit_instance;
|
|
1749
|
-
if (this.
|
|
1749
|
+
if (this.x5i_1.equals(LogLevel_NONE_getInstance()) || this.a5j_1.m3r().g3r().s2j(get_DisableLogging()))
|
|
1750
1750
|
return Unit_instance;
|
|
1751
|
-
this.
|
|
1752
|
-
this.
|
|
1753
|
-
this.
|
|
1751
|
+
this.c5j_1 = this.a5j_1.m3r().g3r().q2j(get_ClientCallLogger());
|
|
1752
|
+
this.e5j_1 = StringBuilder_init_$Create$();
|
|
1753
|
+
this.d5j_1 = false;
|
|
1754
1754
|
this.a9_1 = 1;
|
|
1755
1755
|
continue $sm;
|
|
1756
1756
|
case 1:
|
|
1757
1757
|
this.b9_1 = 4;
|
|
1758
1758
|
this.b9_1 = 3;
|
|
1759
|
-
logResponseHeader(this.
|
|
1759
|
+
logResponseHeader(this.e5j_1, this.a5j_1.m3r().x3o(), this.x5i_1, this.y5i_1);
|
|
1760
1760
|
this.a9_1 = 2;
|
|
1761
|
-
suspendResult = this.
|
|
1761
|
+
suspendResult = this.z5i_1.v5b(this);
|
|
1762
1762
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1763
1763
|
return suspendResult;
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
1766
|
continue $sm;
|
|
1767
1767
|
case 2:
|
|
1768
|
-
this.
|
|
1768
|
+
this.f5j_1 = suspendResult;
|
|
1769
1769
|
this.b9_1 = 14;
|
|
1770
1770
|
this.a9_1 = 9;
|
|
1771
1771
|
continue $sm;
|
|
@@ -1775,8 +1775,8 @@
|
|
|
1775
1775
|
if (tmp_0 instanceof Error) {
|
|
1776
1776
|
var cause = this.d9_1;
|
|
1777
1777
|
var tmp_1 = this;
|
|
1778
|
-
invoke$logResponseException(this.
|
|
1779
|
-
this.
|
|
1778
|
+
invoke$logResponseException(this.x5i_1, this.e5j_1, this.a5j_1.m3r().f3r(), cause);
|
|
1779
|
+
this.d5j_1 = true;
|
|
1780
1780
|
throw cause;
|
|
1781
1781
|
} else {
|
|
1782
1782
|
throw this.d9_1;
|
|
@@ -1784,19 +1784,19 @@
|
|
|
1784
1784
|
|
|
1785
1785
|
case 4:
|
|
1786
1786
|
this.b9_1 = 14;
|
|
1787
|
-
this.
|
|
1788
|
-
this.
|
|
1789
|
-
if (this.
|
|
1787
|
+
this.g5j_1 = this.d9_1;
|
|
1788
|
+
this.c5j_1.q58(this.e5j_1.toString());
|
|
1789
|
+
if (this.d5j_1 || !this.x5i_1.c5a_1) {
|
|
1790
1790
|
this.a9_1 = 7;
|
|
1791
|
-
suspendResult = this.
|
|
1791
|
+
suspendResult = this.c5j_1.u58(this);
|
|
1792
1792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1793
1793
|
return suspendResult;
|
|
1794
1794
|
}
|
|
1795
1795
|
continue $sm;
|
|
1796
1796
|
} else {
|
|
1797
|
-
if (this.
|
|
1797
|
+
if (this.x5i_1.c5a_1 && get_isSaved(this.a5j_1)) {
|
|
1798
1798
|
this.a9_1 = 5;
|
|
1799
|
-
suspendResult = logResponseBody(this.
|
|
1799
|
+
suspendResult = logResponseBody(this.c5j_1, this.a5j_1, this);
|
|
1800
1800
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1801
1801
|
return suspendResult;
|
|
1802
1802
|
}
|
|
@@ -1809,7 +1809,7 @@
|
|
|
1809
1809
|
|
|
1810
1810
|
case 5:
|
|
1811
1811
|
this.a9_1 = 6;
|
|
1812
|
-
suspendResult = this.
|
|
1812
|
+
suspendResult = this.c5j_1.u58(this);
|
|
1813
1813
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1814
1814
|
return suspendResult;
|
|
1815
1815
|
}
|
|
@@ -1822,22 +1822,22 @@
|
|
|
1822
1822
|
this.a9_1 = 8;
|
|
1823
1823
|
continue $sm;
|
|
1824
1824
|
case 8:
|
|
1825
|
-
throw this.
|
|
1825
|
+
throw this.g5j_1;
|
|
1826
1826
|
case 9:
|
|
1827
|
-
this.
|
|
1827
|
+
this.b5j_1 = this.f5j_1;
|
|
1828
1828
|
this.b9_1 = 14;
|
|
1829
|
-
this.
|
|
1830
|
-
if (this.
|
|
1829
|
+
this.c5j_1.q58(this.e5j_1.toString());
|
|
1830
|
+
if (this.d5j_1 || !this.x5i_1.c5a_1) {
|
|
1831
1831
|
this.a9_1 = 12;
|
|
1832
|
-
suspendResult = this.
|
|
1832
|
+
suspendResult = this.c5j_1.u58(this);
|
|
1833
1833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1834
1834
|
return suspendResult;
|
|
1835
1835
|
}
|
|
1836
1836
|
continue $sm;
|
|
1837
1837
|
} else {
|
|
1838
|
-
if (this.
|
|
1838
|
+
if (this.x5i_1.c5a_1 && get_isSaved(this.a5j_1)) {
|
|
1839
1839
|
this.a9_1 = 10;
|
|
1840
|
-
suspendResult = logResponseBody(this.
|
|
1840
|
+
suspendResult = logResponseBody(this.c5j_1, this.a5j_1, this);
|
|
1841
1841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1842
1842
|
return suspendResult;
|
|
1843
1843
|
}
|
|
@@ -1850,7 +1850,7 @@
|
|
|
1850
1850
|
|
|
1851
1851
|
case 10:
|
|
1852
1852
|
this.a9_1 = 11;
|
|
1853
|
-
suspendResult = this.
|
|
1853
|
+
suspendResult = this.c5j_1.u58(this);
|
|
1854
1854
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1855
1855
|
return suspendResult;
|
|
1856
1856
|
}
|
|
@@ -1878,35 +1878,35 @@
|
|
|
1878
1878
|
}
|
|
1879
1879
|
while (true);
|
|
1880
1880
|
};
|
|
1881
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1882
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1883
|
-
i.
|
|
1884
|
-
i.
|
|
1881
|
+
protoOf(Logging$lambda$slambda_3).i5j = function ($this$on, response, completion) {
|
|
1882
|
+
var i = new Logging$lambda$slambda_3(this.w5i_1, this.x5i_1, this.y5i_1, completion);
|
|
1883
|
+
i.z5i_1 = $this$on;
|
|
1884
|
+
i.a5j_1 = response;
|
|
1885
1885
|
return i;
|
|
1886
1886
|
};
|
|
1887
1887
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1888
1888
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1889
1889
|
var l = function ($this$on, response, $completion) {
|
|
1890
|
-
return i.
|
|
1890
|
+
return i.h5j($this$on, response, $completion);
|
|
1891
1891
|
};
|
|
1892
1892
|
l.$arity = 2;
|
|
1893
1893
|
return l;
|
|
1894
1894
|
}
|
|
1895
1895
|
function Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation) {
|
|
1896
|
-
this.
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1896
|
+
this.r5j_1 = $okHttpFormat;
|
|
1897
|
+
this.s5j_1 = $level;
|
|
1898
|
+
this.t5j_1 = $logger;
|
|
1899
1899
|
CoroutineImpl.call(this, resultContinuation);
|
|
1900
1900
|
}
|
|
1901
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1902
|
-
var tmp = this.
|
|
1901
|
+
protoOf(Logging$lambda$slambda_5).z5j = function ($this$on, call, $completion) {
|
|
1902
|
+
var tmp = this.a5k($this$on, call, $completion);
|
|
1903
1903
|
tmp.c9_1 = Unit_instance;
|
|
1904
1904
|
tmp.d9_1 = null;
|
|
1905
1905
|
return tmp.i9();
|
|
1906
1906
|
};
|
|
1907
1907
|
protoOf(Logging$lambda$slambda_5).v9 = function (p1, p2, $completion) {
|
|
1908
1908
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1909
|
-
return this.
|
|
1909
|
+
return this.z5j(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1910
1910
|
};
|
|
1911
1911
|
protoOf(Logging$lambda$slambda_5).i9 = function () {
|
|
1912
1912
|
var suspendResult = this.c9_1;
|
|
@@ -1916,22 +1916,22 @@
|
|
|
1916
1916
|
switch (tmp) {
|
|
1917
1917
|
case 0:
|
|
1918
1918
|
this.b9_1 = 6;
|
|
1919
|
-
if (this.
|
|
1919
|
+
if (this.r5j_1)
|
|
1920
1920
|
return Unit_instance;
|
|
1921
|
-
if (this.
|
|
1921
|
+
if (this.s5j_1.equals(LogLevel_NONE_getInstance()) || this.v5j_1.g3r().s2j(get_DisableLogging())) {
|
|
1922
1922
|
return Unit_instance;
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
1925
|
this.b9_1 = 2;
|
|
1926
1926
|
this.a9_1 = 1;
|
|
1927
|
-
suspendResult = this.
|
|
1927
|
+
suspendResult = this.u5j_1.j5c(this);
|
|
1928
1928
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1929
1929
|
return suspendResult;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
1932
|
continue $sm;
|
|
1933
1933
|
case 1:
|
|
1934
|
-
this.
|
|
1934
|
+
this.w5j_1 = suspendResult;
|
|
1935
1935
|
this.b9_1 = 6;
|
|
1936
1936
|
this.a9_1 = 5;
|
|
1937
1937
|
continue $sm;
|
|
@@ -1939,22 +1939,22 @@
|
|
|
1939
1939
|
this.b9_1 = 6;
|
|
1940
1940
|
var tmp_0 = this.d9_1;
|
|
1941
1941
|
if (tmp_0 instanceof Error) {
|
|
1942
|
-
this.
|
|
1942
|
+
this.x5j_1 = this.d9_1;
|
|
1943
1943
|
var log = StringBuilder_init_$Create$();
|
|
1944
1944
|
var tmp_1 = this;
|
|
1945
|
-
var tmp0_elvis_lhs = this.
|
|
1945
|
+
var tmp0_elvis_lhs = this.v5j_1.g3r().r2j(get_ClientCallLogger());
|
|
1946
1946
|
var tmp_2;
|
|
1947
1947
|
if (tmp0_elvis_lhs == null) {
|
|
1948
|
-
var this_0 = new HttpClientCallLogger(this.
|
|
1949
|
-
this_0.
|
|
1948
|
+
var this_0 = new HttpClientCallLogger(this.t5j_1);
|
|
1949
|
+
this_0.t58();
|
|
1950
1950
|
tmp_2 = this_0;
|
|
1951
1951
|
} else {
|
|
1952
1952
|
tmp_2 = tmp0_elvis_lhs;
|
|
1953
1953
|
}
|
|
1954
|
-
tmp_1.
|
|
1955
|
-
invoke$logResponseException(this.
|
|
1954
|
+
tmp_1.y5j_1 = tmp_2;
|
|
1955
|
+
invoke$logResponseException(this.s5j_1, log, this.v5j_1.f3r(), this.x5j_1);
|
|
1956
1956
|
this.a9_1 = 3;
|
|
1957
|
-
suspendResult = this.
|
|
1957
|
+
suspendResult = this.y5j_1.r58(log.toString(), this);
|
|
1958
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1959
1959
|
return suspendResult;
|
|
1960
1960
|
}
|
|
@@ -1965,7 +1965,7 @@
|
|
|
1965
1965
|
|
|
1966
1966
|
case 3:
|
|
1967
1967
|
this.a9_1 = 4;
|
|
1968
|
-
suspendResult = this.
|
|
1968
|
+
suspendResult = this.y5j_1.u58(this);
|
|
1969
1969
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1970
1970
|
return suspendResult;
|
|
1971
1971
|
}
|
|
@@ -1973,7 +1973,7 @@
|
|
|
1973
1973
|
continue $sm;
|
|
1974
1974
|
case 4:
|
|
1975
1975
|
var tmp_3 = this;
|
|
1976
|
-
throw this.
|
|
1976
|
+
throw this.x5j_1;
|
|
1977
1977
|
case 5:
|
|
1978
1978
|
this.b9_1 = 6;
|
|
1979
1979
|
return Unit_instance;
|
|
@@ -1991,36 +1991,36 @@
|
|
|
1991
1991
|
}
|
|
1992
1992
|
while (true);
|
|
1993
1993
|
};
|
|
1994
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1995
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1996
|
-
i.
|
|
1997
|
-
i.
|
|
1994
|
+
protoOf(Logging$lambda$slambda_5).a5k = function ($this$on, call, completion) {
|
|
1995
|
+
var i = new Logging$lambda$slambda_5(this.r5j_1, this.s5j_1, this.t5j_1, completion);
|
|
1996
|
+
i.u5j_1 = $this$on;
|
|
1997
|
+
i.v5j_1 = call;
|
|
1998
1998
|
return i;
|
|
1999
1999
|
};
|
|
2000
2000
|
function Logging$lambda$slambda_6($okHttpFormat, $level, $logger, resultContinuation) {
|
|
2001
2001
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation);
|
|
2002
2002
|
var l = function ($this$on, call, $completion) {
|
|
2003
|
-
return i.
|
|
2003
|
+
return i.z5j($this$on, call, $completion);
|
|
2004
2004
|
};
|
|
2005
2005
|
l.$arity = 2;
|
|
2006
2006
|
return l;
|
|
2007
2007
|
}
|
|
2008
2008
|
function Logging$lambda$lambda$lambda(it) {
|
|
2009
2009
|
_init_properties_Logging_kt__66pui5();
|
|
2010
|
-
return !get_isSaved(it.
|
|
2010
|
+
return !get_isSaved(it.x3o());
|
|
2011
2011
|
}
|
|
2012
2012
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
2013
|
-
this.
|
|
2013
|
+
this.j5k_1 = $level;
|
|
2014
2014
|
CoroutineImpl.call(this, resultContinuation);
|
|
2015
2015
|
}
|
|
2016
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2017
|
-
var tmp = this.
|
|
2016
|
+
protoOf(Logging$lambda$lambda$slambda).k40 = function (response, $completion) {
|
|
2017
|
+
var tmp = this.x3y(response, $completion);
|
|
2018
2018
|
tmp.c9_1 = Unit_instance;
|
|
2019
2019
|
tmp.d9_1 = null;
|
|
2020
2020
|
return tmp.i9();
|
|
2021
2021
|
};
|
|
2022
2022
|
protoOf(Logging$lambda$lambda$slambda).u9 = function (p1, $completion) {
|
|
2023
|
-
return this.
|
|
2023
|
+
return this.k40(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2024
2024
|
};
|
|
2025
2025
|
protoOf(Logging$lambda$lambda$slambda).i9 = function () {
|
|
2026
2026
|
var suspendResult = this.c9_1;
|
|
@@ -2030,11 +2030,11 @@
|
|
|
2030
2030
|
switch (tmp) {
|
|
2031
2031
|
case 0:
|
|
2032
2032
|
this.b9_1 = 3;
|
|
2033
|
-
if (this.
|
|
2033
|
+
if (this.j5k_1.equals(LogLevel_NONE_getInstance()) || this.k5k_1.m3r().g3r().s2j(get_DisableLogging()))
|
|
2034
2034
|
return Unit_instance;
|
|
2035
|
-
this.
|
|
2035
|
+
this.l5k_1 = this.k5k_1.m3r().g3r().q2j(get_ClientCallLogger());
|
|
2036
2036
|
this.a9_1 = 1;
|
|
2037
|
-
suspendResult = logResponseBody(this.
|
|
2037
|
+
suspendResult = logResponseBody(this.l5k_1, this.k5k_1, this);
|
|
2038
2038
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2039
2039
|
return suspendResult;
|
|
2040
2040
|
}
|
|
@@ -2042,7 +2042,7 @@
|
|
|
2042
2042
|
continue $sm;
|
|
2043
2043
|
case 1:
|
|
2044
2044
|
this.a9_1 = 2;
|
|
2045
|
-
suspendResult = this.
|
|
2045
|
+
suspendResult = this.l5k_1.u58(this);
|
|
2046
2046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2047
2047
|
return suspendResult;
|
|
2048
2048
|
}
|
|
@@ -2064,36 +2064,36 @@
|
|
|
2064
2064
|
}
|
|
2065
2065
|
while (true);
|
|
2066
2066
|
};
|
|
2067
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2068
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
2069
|
-
i.
|
|
2067
|
+
protoOf(Logging$lambda$lambda$slambda).x3y = function (response, completion) {
|
|
2068
|
+
var i = new Logging$lambda$lambda$slambda(this.j5k_1, completion);
|
|
2069
|
+
i.k5k_1 = response;
|
|
2070
2070
|
return i;
|
|
2071
2071
|
};
|
|
2072
2072
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2073
2073
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2074
2074
|
var l = function (response, $completion) {
|
|
2075
|
-
return i.
|
|
2075
|
+
return i.k40(response, $completion);
|
|
2076
2076
|
};
|
|
2077
2077
|
l.$arity = 1;
|
|
2078
2078
|
return l;
|
|
2079
2079
|
}
|
|
2080
2080
|
function Logging$lambda$lambda($level) {
|
|
2081
2081
|
return function ($this$prepare) {
|
|
2082
|
-
$this$prepare.
|
|
2083
|
-
$this$prepare.
|
|
2082
|
+
$this$prepare.a4m(Logging$lambda$lambda$lambda);
|
|
2083
|
+
$this$prepare.z4l(Logging$lambda$lambda$slambda_0($level, null));
|
|
2084
2084
|
return Unit_instance;
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
2087
|
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2088
2088
|
CoroutineImpl.call(this, resultContinuation);
|
|
2089
|
-
this.
|
|
2090
|
-
this.
|
|
2091
|
-
this.
|
|
2092
|
-
this.
|
|
2093
|
-
this.
|
|
2094
|
-
this.
|
|
2095
|
-
this.
|
|
2096
|
-
this.
|
|
2089
|
+
this.f5e_1 = bodyFilter;
|
|
2090
|
+
this.g5e_1 = url;
|
|
2091
|
+
this.h5e_1 = content;
|
|
2092
|
+
this.i5e_1 = contentLength;
|
|
2093
|
+
this.j5e_1 = headers;
|
|
2094
|
+
this.k5e_1 = method;
|
|
2095
|
+
this.l5e_1 = logLines;
|
|
2096
|
+
this.m5e_1 = body;
|
|
2097
2097
|
}
|
|
2098
2098
|
protoOf($invoke$logRequestBodyCOROUTINE$).i9 = function () {
|
|
2099
2099
|
var suspendResult = this.c9_1;
|
|
@@ -2104,7 +2104,7 @@
|
|
|
2104
2104
|
case 0:
|
|
2105
2105
|
this.b9_1 = 2;
|
|
2106
2106
|
this.a9_1 = 1;
|
|
2107
|
-
suspendResult = this.
|
|
2107
|
+
suspendResult = this.f5e_1.v58(this.g5e_1, this.i5e_1, this.h5e_1.x35(), this.j5e_1, this.m5e_1, this);
|
|
2108
2108
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2109
2109
|
return suspendResult;
|
|
2110
2110
|
}
|
|
@@ -2113,29 +2113,29 @@
|
|
|
2113
2113
|
case 1:
|
|
2114
2114
|
var filteredBody = suspendResult;
|
|
2115
2115
|
if (filteredBody instanceof Empty) {
|
|
2116
|
-
this.
|
|
2116
|
+
this.l5e_1.j1('--> END ' + this.k5e_1.k30_1 + ' (0-byte body)');
|
|
2117
2117
|
} else {
|
|
2118
2118
|
if (filteredBody instanceof Skip) {
|
|
2119
2119
|
var this_0 = StringBuilder_init_$Create$();
|
|
2120
|
-
this_0.q('--> END ' + this.
|
|
2121
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2120
|
+
this_0.q('--> END ' + this.k5e_1.k30_1 + ' (');
|
|
2121
|
+
var tmp0_safe_receiver = filteredBody.z58_1;
|
|
2122
2122
|
if (tmp0_safe_receiver == null)
|
|
2123
2123
|
null;
|
|
2124
2124
|
else {
|
|
2125
2125
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2126
2126
|
}
|
|
2127
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2127
|
+
var tmp1_safe_receiver = filteredBody.a59_1;
|
|
2128
2128
|
if (tmp1_safe_receiver == null)
|
|
2129
2129
|
null;
|
|
2130
2130
|
else {
|
|
2131
2131
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2132
2132
|
}
|
|
2133
2133
|
this_0.q('body omitted)');
|
|
2134
|
-
this.
|
|
2134
|
+
this.l5e_1.j1(this_0.toString());
|
|
2135
2135
|
} else {
|
|
2136
2136
|
if (isInterface(filteredBody, Content)) {
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2137
|
+
this.l5e_1.j1(filteredBody.b59());
|
|
2138
|
+
this.l5e_1.j1('--> END ' + this.k5e_1.k30_1 + ' (' + toString_0(filteredBody.y58()) + '-byte body)');
|
|
2139
2139
|
} else {
|
|
2140
2140
|
noWhenBranchMatchedException();
|
|
2141
2141
|
}
|
|
@@ -2159,14 +2159,14 @@
|
|
|
2159
2159
|
};
|
|
2160
2160
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2161
2161
|
CoroutineImpl.call(this, resultContinuation);
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2162
|
+
this.v5e_1 = $this_createClientPlugin;
|
|
2163
|
+
this.w5e_1 = bodyFilter;
|
|
2164
|
+
this.x5e_1 = url;
|
|
2165
|
+
this.y5e_1 = content;
|
|
2166
|
+
this.z5e_1 = method;
|
|
2167
|
+
this.a5f_1 = headers;
|
|
2168
|
+
this.b5f_1 = logLines;
|
|
2169
|
+
this.c5f_1 = process;
|
|
2170
2170
|
}
|
|
2171
2171
|
protoOf($invoke$logOutgoingContentCOROUTINE$).i9 = function () {
|
|
2172
2172
|
var suspendResult = this.c9_1;
|
|
@@ -2176,10 +2176,10 @@
|
|
|
2176
2176
|
switch (tmp) {
|
|
2177
2177
|
case 0:
|
|
2178
2178
|
this.b9_1 = 7;
|
|
2179
|
-
var tmp0_subject = this.
|
|
2179
|
+
var tmp0_subject = this.y5e_1;
|
|
2180
2180
|
if (tmp0_subject instanceof ObservableContent) {
|
|
2181
2181
|
this.a9_1 = 5;
|
|
2182
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2182
|
+
suspendResult = invoke$logOutgoingContent(this.v5e_1, this.w5e_1, this.x5e_1, this.y5e_1.x3t_1, this.z5e_1, this.a5f_1, this.b5f_1, this.c5f_1, this);
|
|
2183
2183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2184
2184
|
return suspendResult;
|
|
2185
2185
|
}
|
|
@@ -2187,41 +2187,41 @@
|
|
|
2187
2187
|
} else {
|
|
2188
2188
|
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2189
2189
|
var tmp_0 = this;
|
|
2190
|
-
var _iterator__ex2g4s = this.
|
|
2190
|
+
var _iterator__ex2g4s = this.y5e_1.n5k_1.t();
|
|
2191
2191
|
while (_iterator__ex2g4s.u()) {
|
|
2192
2192
|
var part = _iterator__ex2g4s.v();
|
|
2193
|
-
this.
|
|
2194
|
-
var _iterator__ex2g4s_0 = part.
|
|
2193
|
+
this.b5f_1.j1('--' + this.y5e_1.o5k_1);
|
|
2194
|
+
var _iterator__ex2g4s_0 = part.p5k_1.e2o().t();
|
|
2195
2195
|
while (_iterator__ex2g4s_0.u()) {
|
|
2196
2196
|
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2197
2197
|
var key = _destruct__k2r9zo.r1();
|
|
2198
2198
|
var values = _destruct__k2r9zo.s1();
|
|
2199
|
-
this.
|
|
2199
|
+
this.b5f_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2200
2200
|
}
|
|
2201
2201
|
if (part instanceof FormItem) {
|
|
2202
|
-
this.
|
|
2203
|
-
this.
|
|
2204
|
-
this.
|
|
2202
|
+
this.b5f_1.j1('Content-Length: ' + part.r5k_1.length);
|
|
2203
|
+
this.b5f_1.j1('');
|
|
2204
|
+
this.b5f_1.j1(part.r5k_1);
|
|
2205
2205
|
} else {
|
|
2206
|
-
this.
|
|
2207
|
-
var contentLength = part.
|
|
2206
|
+
this.b5f_1.j1('');
|
|
2207
|
+
var contentLength = part.p5k_1.n2n('Content-Length');
|
|
2208
2208
|
if (!(contentLength == null)) {
|
|
2209
|
-
this.
|
|
2209
|
+
this.b5f_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2210
2210
|
} else {
|
|
2211
|
-
this.
|
|
2211
|
+
this.b5f_1.j1('binary body omitted');
|
|
2212
2212
|
}
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
|
-
this.
|
|
2216
|
-
this.
|
|
2217
|
-
tmp_0.
|
|
2215
|
+
this.b5f_1.j1('--' + this.y5e_1.o5k_1 + '--');
|
|
2216
|
+
this.b5f_1.j1('--> END ' + this.z5e_1.k30_1);
|
|
2217
|
+
tmp_0.d5f_1 = null;
|
|
2218
2218
|
this.a9_1 = 6;
|
|
2219
2219
|
continue $sm;
|
|
2220
2220
|
} else {
|
|
2221
2221
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2222
|
-
var bytes = this.
|
|
2222
|
+
var bytes = this.y5e_1.a36();
|
|
2223
2223
|
this.a9_1 = 4;
|
|
2224
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2224
|
+
suspendResult = invoke$logRequestBody(this.w5e_1, this.x5e_1, this.y5e_1, fromInt(bytes.length), this.a5f_1, this.z5e_1, this.b5f_1, ByteReadChannel(bytes), this);
|
|
2225
2225
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2226
2226
|
return suspendResult;
|
|
2227
2227
|
}
|
|
@@ -2229,7 +2229,7 @@
|
|
|
2229
2229
|
} else {
|
|
2230
2230
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2231
2231
|
this.a9_1 = 3;
|
|
2232
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2232
|
+
suspendResult = invoke$logOutgoingContent(this.v5e_1, this.w5e_1, this.x5e_1, this.y5e_1.j36(), this.z5e_1, this.a5f_1, this.b5f_1, this.c5f_1, this);
|
|
2233
2233
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2234
2234
|
return suspendResult;
|
|
2235
2235
|
}
|
|
@@ -2237,24 +2237,24 @@
|
|
|
2237
2237
|
} else {
|
|
2238
2238
|
if (tmp0_subject instanceof NoContent) {
|
|
2239
2239
|
var tmp_1 = this;
|
|
2240
|
-
this.
|
|
2241
|
-
tmp_1.
|
|
2240
|
+
this.b5f_1.j1('--> END ' + this.z5e_1.k30_1);
|
|
2241
|
+
tmp_1.d5f_1 = null;
|
|
2242
2242
|
this.a9_1 = 6;
|
|
2243
2243
|
continue $sm;
|
|
2244
2244
|
} else {
|
|
2245
2245
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2246
2246
|
var tmp_2 = this;
|
|
2247
|
-
this.
|
|
2248
|
-
tmp_2.
|
|
2247
|
+
this.b5f_1.j1('--> END ' + this.z5e_1.k30_1);
|
|
2248
|
+
tmp_2.d5f_1 = null;
|
|
2249
2249
|
this.a9_1 = 6;
|
|
2250
2250
|
continue $sm;
|
|
2251
2251
|
} else {
|
|
2252
2252
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2253
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2254
|
-
this.
|
|
2253
|
+
var _destruct__k2r9zo_0 = split(this.y5e_1.d36(), this.v5e_1.w3x_1);
|
|
2254
|
+
this.e5f_1 = _destruct__k2r9zo_0.bg();
|
|
2255
2255
|
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2256
2256
|
this.a9_1 = 2;
|
|
2257
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2257
|
+
suspendResult = invoke$logRequestBody(this.w5e_1, this.x5e_1, this.y5e_1, this.y5e_1.z35(), this.a5f_1, this.z5e_1, this.b5f_1, newChannel, this);
|
|
2258
2258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2259
2259
|
return suspendResult;
|
|
2260
2260
|
}
|
|
@@ -2262,12 +2262,12 @@
|
|
|
2262
2262
|
} else {
|
|
2263
2263
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2264
2264
|
var channel = new ByteChannel();
|
|
2265
|
-
launch(this.
|
|
2266
|
-
var _destruct__k2r9zo_1 = split(channel, this.
|
|
2267
|
-
this.
|
|
2265
|
+
launch(this.v5e_1.w3x_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.y5e_1, channel, null));
|
|
2266
|
+
var _destruct__k2r9zo_1 = split(channel, this.v5e_1.w3x_1);
|
|
2267
|
+
this.f5f_1 = _destruct__k2r9zo_1.bg();
|
|
2268
2268
|
var newChannel_0 = _destruct__k2r9zo_1.cg();
|
|
2269
2269
|
this.a9_1 = 1;
|
|
2270
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2270
|
+
suspendResult = invoke$logRequestBody(this.w5e_1, this.x5e_1, this.y5e_1, this.y5e_1.z35(), this.a5f_1, this.z5e_1, this.b5f_1, newChannel_0, this);
|
|
2271
2271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2272
2272
|
return suspendResult;
|
|
2273
2273
|
}
|
|
@@ -2286,27 +2286,27 @@
|
|
|
2286
2286
|
|
|
2287
2287
|
break;
|
|
2288
2288
|
case 1:
|
|
2289
|
-
this.
|
|
2289
|
+
this.d5f_1 = new LoggedContent(this.y5e_1, this.f5f_1);
|
|
2290
2290
|
this.a9_1 = 6;
|
|
2291
2291
|
continue $sm;
|
|
2292
2292
|
case 2:
|
|
2293
|
-
this.
|
|
2293
|
+
this.d5f_1 = new LoggedContent(this.y5e_1, this.e5f_1);
|
|
2294
2294
|
this.a9_1 = 6;
|
|
2295
2295
|
continue $sm;
|
|
2296
2296
|
case 3:
|
|
2297
|
-
this.
|
|
2297
|
+
this.d5f_1 = suspendResult;
|
|
2298
2298
|
this.a9_1 = 6;
|
|
2299
2299
|
continue $sm;
|
|
2300
2300
|
case 4:
|
|
2301
|
-
this.
|
|
2301
|
+
this.d5f_1 = null;
|
|
2302
2302
|
this.a9_1 = 6;
|
|
2303
2303
|
continue $sm;
|
|
2304
2304
|
case 5:
|
|
2305
|
-
this.
|
|
2305
|
+
this.d5f_1 = suspendResult;
|
|
2306
2306
|
this.a9_1 = 6;
|
|
2307
2307
|
continue $sm;
|
|
2308
2308
|
case 6:
|
|
2309
|
-
return this.
|
|
2309
|
+
return this.d5f_1;
|
|
2310
2310
|
case 7:
|
|
2311
2311
|
throw this.d9_1;
|
|
2312
2312
|
}
|
|
@@ -2323,12 +2323,12 @@
|
|
|
2323
2323
|
};
|
|
2324
2324
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2325
2325
|
CoroutineImpl.call(this, resultContinuation);
|
|
2326
|
-
this.
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2330
|
-
this.
|
|
2331
|
-
this.
|
|
2326
|
+
this.o5f_1 = sanitizedHeaders;
|
|
2327
|
+
this.p5f_1 = level;
|
|
2328
|
+
this.q5f_1 = $this_createClientPlugin;
|
|
2329
|
+
this.r5f_1 = bodyFilter;
|
|
2330
|
+
this.s5f_1 = request;
|
|
2331
|
+
this.t5f_1 = logLines;
|
|
2332
2332
|
}
|
|
2333
2333
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2334
2334
|
var suspendResult = this.c9_1;
|
|
@@ -2338,22 +2338,22 @@
|
|
|
2338
2338
|
switch (tmp) {
|
|
2339
2339
|
case 0:
|
|
2340
2340
|
this.b9_1 = 4;
|
|
2341
|
-
if (invoke$isNone(this.
|
|
2341
|
+
if (invoke$isNone(this.p5f_1))
|
|
2342
2342
|
return null;
|
|
2343
|
-
var uri = takeFrom(new URLBuilder(), this.
|
|
2344
|
-
var body = this.
|
|
2343
|
+
var uri = takeFrom(new URLBuilder(), this.s5f_1.x3p_1).u2v().toString();
|
|
2344
|
+
var body = this.s5f_1.a3q_1;
|
|
2345
2345
|
var this_0 = new HeadersBuilder();
|
|
2346
2346
|
var tmp_0;
|
|
2347
2347
|
var tmp_1;
|
|
2348
2348
|
var tmp_2;
|
|
2349
2349
|
if (body instanceof OutgoingContent) {
|
|
2350
|
-
tmp_2 = !this.
|
|
2350
|
+
tmp_2 = !this.s5f_1.y3p_1.equals(Companion_getInstance().a30_1);
|
|
2351
2351
|
} else {
|
|
2352
2352
|
tmp_2 = false;
|
|
2353
2353
|
}
|
|
2354
2354
|
|
|
2355
2355
|
if (tmp_2) {
|
|
2356
|
-
tmp_1 = !this.
|
|
2356
|
+
tmp_1 = !this.s5f_1.y3p_1.equals(Companion_getInstance().f30_1);
|
|
2357
2357
|
} else {
|
|
2358
2358
|
tmp_1 = false;
|
|
2359
2359
|
}
|
|
@@ -2379,16 +2379,16 @@
|
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
2381
|
|
|
2382
|
-
appendAll(this_0, this.
|
|
2382
|
+
appendAll(this_0, this.s5f_1.z3p_1);
|
|
2383
2383
|
var headers = this_0.u2v();
|
|
2384
2384
|
var tmp0_safe_receiver_0 = headers.n2n('Content-Length');
|
|
2385
2385
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2386
2386
|
var tmp_3;
|
|
2387
|
-
if (this.
|
|
2388
|
-
tmp_3 = '--> ' + this.
|
|
2387
|
+
if (this.s5f_1.y3p_1.equals(Companion_getInstance().a30_1) || this.s5f_1.y3p_1.equals(Companion_getInstance().f30_1) || ((invoke$isHeaders(this.p5f_1) || invoke$isBody(this.p5f_1)) && !(contentLength == null)) || (invoke$isHeaders(this.p5f_1) && contentLength == null) || headers.z2m('Content-Encoding')) {
|
|
2388
|
+
tmp_3 = '--> ' + this.s5f_1.y3p_1.k30_1 + ' ' + uri;
|
|
2389
2389
|
} else {
|
|
2390
|
-
if (invoke$isInfo(this.
|
|
2391
|
-
tmp_3 = '--> ' + this.
|
|
2390
|
+
if (invoke$isInfo(this.p5f_1) && !(contentLength == null)) {
|
|
2391
|
+
tmp_3 = '--> ' + this.s5f_1.y3p_1.k30_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2392
2392
|
} else {
|
|
2393
2393
|
var tmp_4;
|
|
2394
2394
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2397,17 +2397,17 @@
|
|
|
2397
2397
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2398
2398
|
}
|
|
2399
2399
|
if (tmp_4) {
|
|
2400
|
-
tmp_3 = '--> ' + this.
|
|
2400
|
+
tmp_3 = '--> ' + this.s5f_1.y3p_1.k30_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2401
2401
|
} else {
|
|
2402
|
-
var size = computeRequestBodySize(this.
|
|
2403
|
-
tmp_3 = '--> ' + this.
|
|
2402
|
+
var size = computeRequestBodySize(this.s5f_1.a3q_1);
|
|
2403
|
+
tmp_3 = '--> ' + this.s5f_1.y3p_1.k30_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
2408
|
var startLine = tmp_3;
|
|
2409
|
-
this.
|
|
2410
|
-
if (!invoke$isHeaders(this.
|
|
2409
|
+
this.t5f_1.j1(startLine);
|
|
2410
|
+
if (!invoke$isHeaders(this.p5f_1) && !invoke$isBody(this.p5f_1)) {
|
|
2411
2411
|
return null;
|
|
2412
2412
|
}
|
|
2413
2413
|
|
|
@@ -2416,13 +2416,13 @@
|
|
|
2416
2416
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2417
2417
|
var name = _destruct__k2r9zo.r1();
|
|
2418
2418
|
var values = _destruct__k2r9zo.s1();
|
|
2419
|
-
var tmp0 = this.
|
|
2419
|
+
var tmp0 = this.o5f_1;
|
|
2420
2420
|
var tmp$ret$0 = Unit_instance;
|
|
2421
2421
|
l$ret$1: do {
|
|
2422
2422
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2423
2423
|
while (_iterator__ex2g4s_0.u()) {
|
|
2424
2424
|
var element = _iterator__ex2g4s_0.v();
|
|
2425
|
-
if (element.
|
|
2425
|
+
if (element.w5g_1(name)) {
|
|
2426
2426
|
tmp$ret$0 = element;
|
|
2427
2427
|
break l$ret$1;
|
|
2428
2428
|
}
|
|
@@ -2431,35 +2431,35 @@
|
|
|
2431
2431
|
}
|
|
2432
2432
|
while (false);
|
|
2433
2433
|
if (tmp$ret$0 == null) {
|
|
2434
|
-
this.
|
|
2434
|
+
this.t5f_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2435
2435
|
} else {
|
|
2436
|
-
this.
|
|
2436
|
+
this.t5f_1.j1(name + ': \u2588\u2588');
|
|
2437
2437
|
}
|
|
2438
2438
|
}
|
|
2439
2439
|
|
|
2440
|
-
if (!invoke$isBody(this.
|
|
2441
|
-
this.
|
|
2440
|
+
if (!invoke$isBody(this.p5f_1) || this.s5f_1.y3p_1.equals(Companion_getInstance().a30_1) || this.s5f_1.y3p_1.equals(Companion_getInstance().f30_1)) {
|
|
2441
|
+
this.t5f_1.j1('--> END ' + this.s5f_1.y3p_1.k30_1);
|
|
2442
2442
|
return null;
|
|
2443
2443
|
}
|
|
2444
2444
|
|
|
2445
|
-
this.
|
|
2445
|
+
this.t5f_1.j1('');
|
|
2446
2446
|
if (!(body instanceof OutgoingContent)) {
|
|
2447
|
-
this.
|
|
2447
|
+
this.t5f_1.j1('--> END ' + this.s5f_1.y3p_1.k30_1);
|
|
2448
2448
|
return null;
|
|
2449
2449
|
}
|
|
2450
2450
|
|
|
2451
|
-
if (this.
|
|
2451
|
+
if (this.s5f_1.z3p_1.n2n('Content-Encoding') === 'gzip') {
|
|
2452
2452
|
this.a9_1 = 2;
|
|
2453
|
-
var tmp_5 = this.
|
|
2454
|
-
var tmp_6 = this.
|
|
2455
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2453
|
+
var tmp_5 = this.s5f_1.x3p_1.u2v();
|
|
2454
|
+
var tmp_6 = this.s5f_1.y3p_1;
|
|
2455
|
+
suspendResult = invoke$logOutgoingContent(this.q5f_1, this.r5f_1, tmp_5, body, tmp_6, headers, this.t5f_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2456
2456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2457
2457
|
return suspendResult;
|
|
2458
2458
|
}
|
|
2459
2459
|
continue $sm;
|
|
2460
2460
|
} else {
|
|
2461
2461
|
this.a9_1 = 1;
|
|
2462
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2462
|
+
suspendResult = invoke$logOutgoingContent(this.q5f_1, this.r5f_1, this.s5f_1.x3p_1.u2v(), body, this.s5f_1.y3p_1, headers, this.t5f_1, VOID, this);
|
|
2463
2463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2464
2464
|
return suspendResult;
|
|
2465
2465
|
}
|
|
@@ -2467,15 +2467,15 @@
|
|
|
2467
2467
|
}
|
|
2468
2468
|
|
|
2469
2469
|
case 1:
|
|
2470
|
-
this.
|
|
2470
|
+
this.u5f_1 = suspendResult;
|
|
2471
2471
|
this.a9_1 = 3;
|
|
2472
2472
|
continue $sm;
|
|
2473
2473
|
case 2:
|
|
2474
|
-
this.
|
|
2474
|
+
this.u5f_1 = suspendResult;
|
|
2475
2475
|
this.a9_1 = 3;
|
|
2476
2476
|
continue $sm;
|
|
2477
2477
|
case 3:
|
|
2478
|
-
var newContent = this.
|
|
2478
|
+
var newContent = this.u5f_1;
|
|
2479
2479
|
return newContent;
|
|
2480
2480
|
case 4:
|
|
2481
2481
|
throw this.d9_1;
|
|
@@ -2493,10 +2493,10 @@
|
|
|
2493
2493
|
};
|
|
2494
2494
|
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2495
2495
|
CoroutineImpl.call(this, resultContinuation);
|
|
2496
|
-
this.
|
|
2497
|
-
this.
|
|
2498
|
-
this.
|
|
2499
|
-
this.
|
|
2496
|
+
this.d5g_1 = bodyFilter;
|
|
2497
|
+
this.e5g_1 = response;
|
|
2498
|
+
this.f5g_1 = body;
|
|
2499
|
+
this.g5g_1 = logLines;
|
|
2500
2500
|
}
|
|
2501
2501
|
protoOf($invoke$logResponseBodyCOROUTINE$).i9 = function () {
|
|
2502
2502
|
var suspendResult = this.c9_1;
|
|
@@ -2506,9 +2506,9 @@
|
|
|
2506
2506
|
switch (tmp) {
|
|
2507
2507
|
case 0:
|
|
2508
2508
|
this.b9_1 = 2;
|
|
2509
|
-
this.
|
|
2509
|
+
this.g5g_1.j1('');
|
|
2510
2510
|
this.a9_1 = 1;
|
|
2511
|
-
suspendResult = this.
|
|
2511
|
+
suspendResult = this.d5g_1.x58(this.e5g_1.m3r().f3r().o3r(), contentLength(this.e5g_1), contentType(this.e5g_1), this.e5g_1.z2z(), this.f5g_1, this);
|
|
2512
2512
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2513
2513
|
return suspendResult;
|
|
2514
2514
|
}
|
|
@@ -2516,33 +2516,33 @@
|
|
|
2516
2516
|
continue $sm;
|
|
2517
2517
|
case 1:
|
|
2518
2518
|
var filteredBody = suspendResult;
|
|
2519
|
-
var duration = subtract(this.
|
|
2519
|
+
var duration = subtract(this.e5g_1.y3r().t2p_1, this.e5g_1.x3r().t2p_1);
|
|
2520
2520
|
if (filteredBody instanceof Empty) {
|
|
2521
|
-
this.
|
|
2521
|
+
this.g5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2522
2522
|
} else {
|
|
2523
2523
|
if (filteredBody instanceof Skip) {
|
|
2524
2524
|
var this_0 = StringBuilder_init_$Create$();
|
|
2525
2525
|
this_0.q('<-- END HTTP (');
|
|
2526
2526
|
this_0.nc(duration);
|
|
2527
2527
|
this_0.q('ms, ');
|
|
2528
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2528
|
+
var tmp0_safe_receiver = filteredBody.z58_1;
|
|
2529
2529
|
if (tmp0_safe_receiver == null)
|
|
2530
2530
|
null;
|
|
2531
2531
|
else {
|
|
2532
2532
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2533
2533
|
}
|
|
2534
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2534
|
+
var tmp1_safe_receiver = filteredBody.a59_1;
|
|
2535
2535
|
if (tmp1_safe_receiver == null)
|
|
2536
2536
|
null;
|
|
2537
2537
|
else {
|
|
2538
2538
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2539
2539
|
}
|
|
2540
2540
|
this_0.q('body omitted)');
|
|
2541
|
-
this.
|
|
2541
|
+
this.g5g_1.j1(this_0.toString());
|
|
2542
2542
|
} else {
|
|
2543
2543
|
if (isInterface(filteredBody, Content)) {
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2544
|
+
this.g5g_1.j1(filteredBody.b59());
|
|
2545
|
+
this.g5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.y58()) + '-byte body)');
|
|
2546
2546
|
} else {
|
|
2547
2547
|
noWhenBranchMatchedException();
|
|
2548
2548
|
}
|
|
@@ -2566,11 +2566,11 @@
|
|
|
2566
2566
|
};
|
|
2567
2567
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2568
2568
|
CoroutineImpl.call(this, resultContinuation);
|
|
2569
|
-
this.
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2569
|
+
this.p5g_1 = sanitizedHeaders;
|
|
2570
|
+
this.q5g_1 = level;
|
|
2571
|
+
this.r5g_1 = bodyFilter;
|
|
2572
|
+
this.s5g_1 = response;
|
|
2573
|
+
this.t5g_1 = logLines;
|
|
2574
2574
|
}
|
|
2575
2575
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).i9 = function () {
|
|
2576
2576
|
var suspendResult = this.c9_1;
|
|
@@ -2580,30 +2580,30 @@
|
|
|
2580
2580
|
switch (tmp) {
|
|
2581
2581
|
case 0:
|
|
2582
2582
|
this.b9_1 = 4;
|
|
2583
|
-
if (invoke$isNone(this.
|
|
2584
|
-
return this.
|
|
2585
|
-
var tmp0_safe_receiver = this.
|
|
2583
|
+
if (invoke$isNone(this.q5g_1))
|
|
2584
|
+
return this.s5g_1;
|
|
2585
|
+
var tmp0_safe_receiver = this.s5g_1.z2z().n2n('Content-Length');
|
|
2586
2586
|
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.
|
|
2587
|
+
var request = get_request(this.s5g_1);
|
|
2588
|
+
var duration = subtract(this.s5g_1.y3r().t2p_1, this.s5g_1.x3r().t2p_1);
|
|
2589
|
+
var startLine = this.s5g_1.z2z().n2n('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.q5g_1) || invoke$isHeaders(this.q5g_1)) ? '<-- ' + this.s5g_1.y35().toString() + ' ' + request.o3r().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.q5g_1) && !(contentLength == null) ? '<-- ' + this.s5g_1.y35().toString() + ' ' + request.o3r().toString() + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.q5g_1) || (invoke$isInfo(this.q5g_1) && contentLength == null) || (invoke$isHeaders(this.q5g_1) && !(contentLength == null)) || this.s5g_1.z2z().n2n('Content-Encoding') === 'gzip' ? '<-- ' + this.s5g_1.y35().toString() + ' ' + request.o3r().toString() + ' (' + duration.toString() + 'ms)' : '<-- ' + this.s5g_1.y35().toString() + ' ' + request.o3r().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2590
|
+
this.t5g_1.j1(startLine);
|
|
2591
|
+
if (!invoke$isHeaders(this.q5g_1) && !invoke$isBody(this.q5g_1)) {
|
|
2592
|
+
return this.s5g_1;
|
|
2593
2593
|
}
|
|
2594
2594
|
|
|
2595
|
-
var _iterator__ex2g4s = this.
|
|
2595
|
+
var _iterator__ex2g4s = this.s5g_1.z2z().e2o().t();
|
|
2596
2596
|
while (_iterator__ex2g4s.u()) {
|
|
2597
2597
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2598
2598
|
var name = _destruct__k2r9zo.r1();
|
|
2599
2599
|
var values = _destruct__k2r9zo.s1();
|
|
2600
|
-
var tmp0 = this.
|
|
2600
|
+
var tmp0 = this.p5g_1;
|
|
2601
2601
|
var tmp$ret$0 = Unit_instance;
|
|
2602
2602
|
l$ret$1: do {
|
|
2603
2603
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2604
2604
|
while (_iterator__ex2g4s_0.u()) {
|
|
2605
2605
|
var element = _iterator__ex2g4s_0.v();
|
|
2606
|
-
if (element.
|
|
2606
|
+
if (element.w5g_1(name)) {
|
|
2607
2607
|
tmp$ret$0 = element;
|
|
2608
2608
|
break l$ret$1;
|
|
2609
2609
|
}
|
|
@@ -2612,30 +2612,30 @@
|
|
|
2612
2612
|
}
|
|
2613
2613
|
while (false);
|
|
2614
2614
|
if (tmp$ret$0 == null) {
|
|
2615
|
-
this.
|
|
2615
|
+
this.t5g_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2616
2616
|
} else {
|
|
2617
|
-
this.
|
|
2617
|
+
this.t5g_1.j1(name + ': \u2588\u2588');
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
|
-
if (!invoke$isBody(this.
|
|
2622
|
-
this.
|
|
2623
|
-
return this.
|
|
2621
|
+
if (!invoke$isBody(this.q5g_1)) {
|
|
2622
|
+
this.t5g_1.j1('<-- END HTTP');
|
|
2623
|
+
return this.s5g_1;
|
|
2624
2624
|
}
|
|
2625
2625
|
|
|
2626
2626
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2627
|
-
this.
|
|
2628
|
-
return this.
|
|
2627
|
+
this.t5g_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2628
|
+
return this.s5g_1;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
|
-
if (equals(contentType(this.
|
|
2632
|
-
this.
|
|
2633
|
-
return this.
|
|
2631
|
+
if (equals(contentType(this.s5g_1), Text_getInstance().i2v_1)) {
|
|
2632
|
+
this.t5g_1.j1('<-- END HTTP (streaming)');
|
|
2633
|
+
return this.s5g_1;
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
|
-
if (get_isSaved(this.
|
|
2636
|
+
if (get_isSaved(this.s5g_1)) {
|
|
2637
2637
|
this.a9_1 = 3;
|
|
2638
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2638
|
+
suspendResult = invoke$logResponseBody(this.r5g_1, this.s5g_1, this.s5g_1.v3r(), this.t5g_1, this);
|
|
2639
2639
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2640
2640
|
return suspendResult;
|
|
2641
2641
|
}
|
|
@@ -2646,22 +2646,22 @@
|
|
|
2646
2646
|
}
|
|
2647
2647
|
|
|
2648
2648
|
case 1:
|
|
2649
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2650
|
-
this.
|
|
2649
|
+
var _destruct__k2r9zo_0 = split(this.s5g_1.v3r(), this.s5g_1);
|
|
2650
|
+
this.u5g_1 = _destruct__k2r9zo_0.bg();
|
|
2651
2651
|
var newChannel = _destruct__k2r9zo_0.cg();
|
|
2652
2652
|
this.a9_1 = 2;
|
|
2653
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2653
|
+
suspendResult = invoke$logResponseBody(this.r5g_1, this.s5g_1, newChannel, this.t5g_1, this);
|
|
2654
2654
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2655
2655
|
return suspendResult;
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
2658
|
continue $sm;
|
|
2659
2659
|
case 2:
|
|
2660
|
-
var tmp_0 = this.
|
|
2661
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2662
|
-
return call.
|
|
2660
|
+
var tmp_0 = this.s5g_1.m3r();
|
|
2661
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.u5g_1));
|
|
2662
|
+
return call.x3o();
|
|
2663
2663
|
case 3:
|
|
2664
|
-
return this.
|
|
2664
|
+
return this.s5g_1;
|
|
2665
2665
|
case 4:
|
|
2666
2666
|
throw this.d9_1;
|
|
2667
2667
|
}
|
|
@@ -2755,7 +2755,7 @@
|
|
|
2755
2755
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2756
2756
|
while (_iterator__ex2g4s_0.u()) {
|
|
2757
2757
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2758
|
-
if (element_0.
|
|
2758
|
+
if (element_0.w5g_1(key)) {
|
|
2759
2759
|
tmp$ret$6 = element_0;
|
|
2760
2760
|
break $l$block;
|
|
2761
2761
|
}
|
|
@@ -2763,7 +2763,7 @@
|
|
|
2763
2763
|
tmp$ret$6 = null;
|
|
2764
2764
|
}
|
|
2765
2765
|
var tmp0_safe_receiver = tmp$ret$6;
|
|
2766
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2766
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.v5g_1;
|
|
2767
2767
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2768
2768
|
}
|
|
2769
2769
|
}
|
|
@@ -2775,21 +2775,21 @@
|
|
|
2775
2775
|
}
|
|
2776
2776
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2777
2777
|
// Inline function 'kotlin.with' call
|
|
2778
|
-
if (level.
|
|
2778
|
+
if (level.a5a_1) {
|
|
2779
2779
|
// Inline function 'kotlin.text.appendLine' call
|
|
2780
2780
|
var value = 'RESPONSE: ' + response.y35().toString();
|
|
2781
2781
|
// Inline function 'kotlin.text.appendLine' call
|
|
2782
2782
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2783
2783
|
// Inline function 'kotlin.text.appendLine' call
|
|
2784
|
-
var value_0 = 'METHOD: ' + response.
|
|
2784
|
+
var value_0 = 'METHOD: ' + response.m3r().f3r().n3r().toString();
|
|
2785
2785
|
// Inline function 'kotlin.text.appendLine' call
|
|
2786
2786
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2787
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2788
|
-
var value_1 = 'FROM: ' + response.
|
|
2788
|
+
var value_1 = 'FROM: ' + response.m3r().f3r().o3r().toString();
|
|
2789
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2790
2790
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2791
2791
|
}
|
|
2792
|
-
if (level.
|
|
2792
|
+
if (level.b5a_1) {
|
|
2793
2793
|
// Inline function 'kotlin.text.appendLine' call
|
|
2794
2794
|
var value_2 = 'COMMON HEADERS';
|
|
2795
2795
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -2810,16 +2810,16 @@
|
|
|
2810
2810
|
return tmp.i9();
|
|
2811
2811
|
}
|
|
2812
2812
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2813
|
-
this.
|
|
2813
|
+
this.r5l_1 = function_0;
|
|
2814
2814
|
}
|
|
2815
2815
|
protoOf(sam$kotlin_Comparator$0).wd = function (a, b) {
|
|
2816
|
-
return this.
|
|
2816
|
+
return this.r5l_1(a, b);
|
|
2817
2817
|
};
|
|
2818
2818
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2819
2819
|
return this.wd(a, b);
|
|
2820
2820
|
};
|
|
2821
2821
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2822
|
-
return this.
|
|
2822
|
+
return this.r5l_1;
|
|
2823
2823
|
};
|
|
2824
2824
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2825
2825
|
var tmp;
|
|
@@ -2847,8 +2847,8 @@
|
|
|
2847
2847
|
}
|
|
2848
2848
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2849
2849
|
CoroutineImpl.call(this, resultContinuation);
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2850
|
+
this.a5l_1 = _this__u8e3s4;
|
|
2851
|
+
this.b5l_1 = response;
|
|
2852
2852
|
}
|
|
2853
2853
|
protoOf($logResponseBodyCOROUTINE$_0).i9 = function () {
|
|
2854
2854
|
var suspendResult = this.c9_1;
|
|
@@ -2858,14 +2858,14 @@
|
|
|
2858
2858
|
switch (tmp) {
|
|
2859
2859
|
case 0:
|
|
2860
2860
|
this.b9_1 = 8;
|
|
2861
|
-
this.
|
|
2861
|
+
this.c5l_1 = StringBuilder_init_$Create$();
|
|
2862
2862
|
this.a9_1 = 1;
|
|
2863
2863
|
continue $sm;
|
|
2864
2864
|
case 1:
|
|
2865
2865
|
this.b9_1 = 4;
|
|
2866
2866
|
this.b9_1 = 3;
|
|
2867
2867
|
this.a9_1 = 2;
|
|
2868
|
-
suspendResult = appendResponseBody(this.
|
|
2868
|
+
suspendResult = appendResponseBody(this.c5l_1, contentType(this.b5l_1), this.b5l_1.v3r(), this);
|
|
2869
2869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2870
2870
|
return suspendResult;
|
|
2871
2871
|
}
|
|
@@ -2889,22 +2889,22 @@
|
|
|
2889
2889
|
|
|
2890
2890
|
case 4:
|
|
2891
2891
|
this.b9_1 = 8;
|
|
2892
|
-
this.
|
|
2892
|
+
this.d5l_1 = this.d9_1;
|
|
2893
2893
|
this.a9_1 = 5;
|
|
2894
|
-
var this_0 = this.
|
|
2895
|
-
suspendResult = this.
|
|
2894
|
+
var this_0 = this.c5l_1.toString();
|
|
2895
|
+
suspendResult = this.a5l_1.s58(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2896
2896
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2897
2897
|
return suspendResult;
|
|
2898
2898
|
}
|
|
2899
2899
|
|
|
2900
2900
|
continue $sm;
|
|
2901
2901
|
case 5:
|
|
2902
|
-
throw this.
|
|
2902
|
+
throw this.d5l_1;
|
|
2903
2903
|
case 6:
|
|
2904
2904
|
this.b9_1 = 8;
|
|
2905
2905
|
this.a9_1 = 7;
|
|
2906
|
-
var this_1 = this.
|
|
2907
|
-
suspendResult = this.
|
|
2906
|
+
var this_1 = this.c5l_1.toString();
|
|
2907
|
+
suspendResult = this.a5l_1.s58(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2908
2908
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2909
2909
|
return suspendResult;
|
|
2910
2910
|
}
|
|
@@ -2928,9 +2928,9 @@
|
|
|
2928
2928
|
};
|
|
2929
2929
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2930
2930
|
CoroutineImpl.call(this, resultContinuation);
|
|
2931
|
-
this.
|
|
2932
|
-
this.
|
|
2933
|
-
this.
|
|
2931
|
+
this.m5l_1 = _this__u8e3s4;
|
|
2932
|
+
this.n5l_1 = contentType;
|
|
2933
|
+
this.o5l_1 = content;
|
|
2934
2934
|
}
|
|
2935
2935
|
protoOf($appendResponseBodyCOROUTINE$).i9 = function () {
|
|
2936
2936
|
var suspendResult = this.c9_1;
|
|
@@ -2940,16 +2940,16 @@
|
|
|
2940
2940
|
switch (tmp) {
|
|
2941
2941
|
case 0:
|
|
2942
2942
|
this.b9_1 = 3;
|
|
2943
|
-
var tmp0 = this.
|
|
2944
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2943
|
+
var tmp0 = this.m5l_1;
|
|
2944
|
+
var value = 'BODY Content-Type: ' + toString_0(this.n5l_1);
|
|
2945
2945
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2946
|
-
var tmp0_0 = this.
|
|
2946
|
+
var tmp0_0 = this.m5l_1;
|
|
2947
2947
|
var value_0 = 'BODY START';
|
|
2948
2948
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2949
|
-
var tmp0_1 = this.
|
|
2950
|
-
var tmp0_safe_receiver = this.
|
|
2949
|
+
var tmp0_1 = this.o5l_1;
|
|
2950
|
+
var tmp0_safe_receiver = this.n5l_1;
|
|
2951
2951
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2952
|
-
this.
|
|
2952
|
+
this.q5l_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().t1x_1 : tmp1_elvis_lhs;
|
|
2953
2953
|
this.b9_1 = 2;
|
|
2954
2954
|
this.a9_1 = 1;
|
|
2955
2955
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
continue $sm;
|
|
2961
2961
|
case 1:
|
|
2962
2962
|
var ARGUMENT = suspendResult;
|
|
2963
|
-
this.
|
|
2963
|
+
this.p5l_1 = readText(ARGUMENT, this.q5l_1);
|
|
2964
2964
|
this.b9_1 = 3;
|
|
2965
2965
|
this.a9_1 = 4;
|
|
2966
2966
|
continue $sm;
|
|
@@ -2970,7 +2970,7 @@
|
|
|
2970
2970
|
if (tmp_0 instanceof Error) {
|
|
2971
2971
|
var cause = this.d9_1;
|
|
2972
2972
|
var tmp_1 = this;
|
|
2973
|
-
tmp_1.
|
|
2973
|
+
tmp_1.p5l_1 = null;
|
|
2974
2974
|
this.a9_1 = 4;
|
|
2975
2975
|
continue $sm;
|
|
2976
2976
|
} else {
|
|
@@ -2981,10 +2981,10 @@
|
|
|
2981
2981
|
throw this.d9_1;
|
|
2982
2982
|
case 4:
|
|
2983
2983
|
this.b9_1 = 3;
|
|
2984
|
-
var tmp2_elvis_lhs = this.
|
|
2984
|
+
var tmp2_elvis_lhs = this.p5l_1;
|
|
2985
2985
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2986
|
+
this.m5l_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2987
|
+
this.m5l_1.q('BODY END');
|
|
2988
2988
|
return Unit_instance;
|
|
2989
2989
|
}
|
|
2990
2990
|
} catch ($p) {
|
|
@@ -3010,7 +3010,7 @@
|
|
|
3010
3010
|
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).l1v_1;
|
|
3011
3011
|
}
|
|
3012
3012
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3013
|
-
this.
|
|
3013
|
+
this.m5m_1 = $this_toReadChannel;
|
|
3014
3014
|
CoroutineImpl.call(this, resultContinuation);
|
|
3015
3015
|
}
|
|
3016
3016
|
protoOf(toReadChannel$slambda).e3b = function ($this$writer, $completion) {
|
|
@@ -3031,7 +3031,7 @@
|
|
|
3031
3031
|
case 0:
|
|
3032
3032
|
this.b9_1 = 2;
|
|
3033
3033
|
this.a9_1 = 1;
|
|
3034
|
-
suspendResult = this.
|
|
3034
|
+
suspendResult = this.m5m_1.f36(this.n5m_1.n1v_1, this);
|
|
3035
3035
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3036
3036
|
return suspendResult;
|
|
3037
3037
|
}
|
|
@@ -3054,8 +3054,8 @@
|
|
|
3054
3054
|
while (true);
|
|
3055
3055
|
};
|
|
3056
3056
|
protoOf(toReadChannel$slambda).f3b = function ($this$writer, completion) {
|
|
3057
|
-
var i = new toReadChannel$slambda(this.
|
|
3058
|
-
i.
|
|
3057
|
+
var i = new toReadChannel$slambda(this.m5m_1, completion);
|
|
3058
|
+
i.n5m_1 = $this$writer;
|
|
3059
3059
|
return i;
|
|
3060
3060
|
};
|
|
3061
3061
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
@@ -3068,8 +3068,8 @@
|
|
|
3068
3068
|
}
|
|
3069
3069
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3070
3070
|
CoroutineImpl.call(this, resultContinuation);
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3071
|
+
this.a5m_1 = _this__u8e3s4;
|
|
3072
|
+
this.b5m_1 = log;
|
|
3073
3073
|
}
|
|
3074
3074
|
protoOf($observeCOROUTINE$).i9 = function () {
|
|
3075
3075
|
var suspendResult = this.c9_1;
|
|
@@ -3079,10 +3079,10 @@
|
|
|
3079
3079
|
switch (tmp) {
|
|
3080
3080
|
case 0:
|
|
3081
3081
|
this.b9_1 = 6;
|
|
3082
|
-
var tmp0_subject = this.
|
|
3082
|
+
var tmp0_subject = this.a5m_1;
|
|
3083
3083
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3084
3084
|
this.a9_1 = 3;
|
|
3085
|
-
suspendResult = writeFully_0(this.
|
|
3085
|
+
suspendResult = writeFully_0(this.b5m_1, this.a5m_1.a36(), VOID, VOID, this);
|
|
3086
3086
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3087
3087
|
return suspendResult;
|
|
3088
3088
|
}
|
|
@@ -3091,25 +3091,25 @@
|
|
|
3091
3091
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3092
3092
|
var tmp_0 = this;
|
|
3093
3093
|
var responseChannel = new ByteChannel();
|
|
3094
|
-
var content = this.
|
|
3095
|
-
copyToBoth(content, this.
|
|
3096
|
-
tmp_0.
|
|
3094
|
+
var content = this.a5m_1.d36();
|
|
3095
|
+
copyToBoth(content, this.b5m_1, responseChannel);
|
|
3096
|
+
tmp_0.c5m_1 = new LoggedContent(this.a5m_1, responseChannel);
|
|
3097
3097
|
this.a9_1 = 5;
|
|
3098
3098
|
continue $sm;
|
|
3099
3099
|
} else {
|
|
3100
3100
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3101
3101
|
var tmp_1 = this;
|
|
3102
3102
|
var responseChannel_0 = new ByteChannel();
|
|
3103
|
-
var content_0 = toReadChannel(this.
|
|
3104
|
-
copyToBoth(content_0, this.
|
|
3105
|
-
tmp_1.
|
|
3103
|
+
var content_0 = toReadChannel(this.a5m_1);
|
|
3104
|
+
copyToBoth(content_0, this.b5m_1, responseChannel_0);
|
|
3105
|
+
tmp_1.c5m_1 = new LoggedContent(this.a5m_1, responseChannel_0);
|
|
3106
3106
|
this.a9_1 = 5;
|
|
3107
3107
|
continue $sm;
|
|
3108
3108
|
} else {
|
|
3109
3109
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3110
|
-
this.
|
|
3110
|
+
this.d5m_1 = this.a5m_1;
|
|
3111
3111
|
this.a9_1 = 2;
|
|
3112
|
-
suspendResult = observe(this.
|
|
3112
|
+
suspendResult = observe(this.a5m_1.j36(), this.b5m_1, this);
|
|
3113
3113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3114
3114
|
return suspendResult;
|
|
3115
3115
|
}
|
|
@@ -3123,7 +3123,7 @@
|
|
|
3123
3123
|
}
|
|
3124
3124
|
if (tmp_2) {
|
|
3125
3125
|
this.a9_1 = 1;
|
|
3126
|
-
suspendResult = this.
|
|
3126
|
+
suspendResult = this.b5m_1.z1n(this);
|
|
3127
3127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3128
3128
|
return suspendResult;
|
|
3129
3129
|
}
|
|
@@ -3139,28 +3139,28 @@
|
|
|
3139
3139
|
|
|
3140
3140
|
break;
|
|
3141
3141
|
case 1:
|
|
3142
|
-
this.
|
|
3142
|
+
this.c5m_1 = this.a5m_1;
|
|
3143
3143
|
this.a9_1 = 5;
|
|
3144
3144
|
continue $sm;
|
|
3145
3145
|
case 2:
|
|
3146
3146
|
var ARGUMENT = suspendResult;
|
|
3147
|
-
this.
|
|
3147
|
+
this.c5m_1 = this.d5m_1.k36(ARGUMENT);
|
|
3148
3148
|
this.a9_1 = 5;
|
|
3149
3149
|
continue $sm;
|
|
3150
3150
|
case 3:
|
|
3151
3151
|
this.a9_1 = 4;
|
|
3152
|
-
suspendResult = this.
|
|
3152
|
+
suspendResult = this.b5m_1.z1n(this);
|
|
3153
3153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3154
3154
|
return suspendResult;
|
|
3155
3155
|
}
|
|
3156
3156
|
|
|
3157
3157
|
continue $sm;
|
|
3158
3158
|
case 4:
|
|
3159
|
-
this.
|
|
3159
|
+
this.c5m_1 = this.a5m_1;
|
|
3160
3160
|
this.a9_1 = 5;
|
|
3161
3161
|
continue $sm;
|
|
3162
3162
|
case 5:
|
|
3163
|
-
return this.
|
|
3163
|
+
return this.c5m_1;
|
|
3164
3164
|
case 6:
|
|
3165
3165
|
throw this.d9_1;
|
|
3166
3166
|
}
|
|
@@ -3200,9 +3200,9 @@
|
|
|
3200
3200
|
return get_SIMPLE(_this__u8e3s4);
|
|
3201
3201
|
}
|
|
3202
3202
|
//region block: post-declaration
|
|
3203
|
-
protoOf(Empty).
|
|
3204
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3205
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3203
|
+
protoOf(Empty).y58 = get_byteSize;
|
|
3204
|
+
protoOf(BinaryLogBodyFilter$1).v58 = filterRequest;
|
|
3205
|
+
protoOf(BinaryLogBodyFilter$1).x58 = filterResponse;
|
|
3206
3206
|
protoOf(MDCContextElement).n9 = get;
|
|
3207
3207
|
protoOf(MDCContextElement).xg = fold;
|
|
3208
3208
|
protoOf(MDCContextElement).wg = minusKey;
|