@doordeck/doordeck-headless-sdk 0.209.0 → 0.210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +60 -60
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/Signum-indispensable-asn1.js +4 -0
- package/kotlin/doordeck-sdk.d.ts +36 -1
- package/kotlin/doordeck-sdk.js +12351 -11885
- package/kotlin/kotlin-kotlin-stdlib.js +483 -465
- package/kotlin/kotlinx-atomicfu.js +8 -8
- package/kotlin/kotlinx-coroutines-core.js +190 -163
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +20 -20
- package/kotlin/kotlinx-io-kotlinx-io-core.js +35 -35
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2084 -1887
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1514 -1514
- package/kotlin/kotlinx-serialization-kotlinx-serialization-properties.js +100 -0
- package/kotlin/ktor-ktor-client-auth.js +273 -273
- package/kotlin/ktor-ktor-client-content-negotiation.js +163 -163
- package/kotlin/ktor-ktor-client-core.js +2156 -2134
- package/kotlin/ktor-ktor-client-logging.js +654 -654
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +379 -379
- package/kotlin/ktor-ktor-http.js +847 -900
- package/kotlin/ktor-ktor-io.js +109 -162
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +165 -348
- package/kotlin/ktor-ktor-serialization.js +70 -92
- package/kotlin/ktor-ktor-utils.js +920 -919
- package/kotlin/ktor-ktor-websockets.js +398 -398
- package/package.json +1 -1
|
@@ -1,76 +1,76 @@
|
|
|
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.$_$.y9;
|
|
5
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h9;
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.pg;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.bc;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.tf;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.qc;
|
|
10
|
+
var Unit_instance = kotlin_kotlin.$_$.c3;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.nc;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.sb;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.db;
|
|
14
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.h4;
|
|
15
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qb;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.c;
|
|
20
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
21
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
22
|
-
var readText = kotlin_io_ktor_ktor_io.$_$.
|
|
20
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ub;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wb;
|
|
22
|
+
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
23
23
|
var readBuffer = kotlin_io_ktor_ktor_io.$_$.h;
|
|
24
24
|
var isTextType = kotlin_io_ktor_ktor_http.$_$.s1;
|
|
25
25
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.b;
|
|
26
26
|
var charset = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
27
27
|
var readAvailable = kotlin_io_ktor_ktor_io.$_$.g;
|
|
28
28
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
29
|
-
var writeFully = kotlin_io_ktor_ktor_io.$_$.
|
|
29
|
+
var writeFully = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
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.$_$.bb;
|
|
33
|
+
var Enum = kotlin_kotlin.$_$.gg;
|
|
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.$_$.rb;
|
|
36
|
+
var println = kotlin_kotlin.$_$.ca;
|
|
37
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n3;
|
|
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.$_$.w4;
|
|
40
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.fd;
|
|
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.$_$.ja;
|
|
45
45
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
46
46
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
47
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
48
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
47
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.vb;
|
|
48
|
+
var constructCallableReference = kotlin_kotlin.$_$.gb;
|
|
49
49
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
50
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
50
|
+
var isSuspendFunction = kotlin_kotlin.$_$.hc;
|
|
51
51
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
52
52
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
53
53
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
54
54
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
55
55
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
56
56
|
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
57
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
58
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
57
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
58
|
+
var isInterface = kotlin_kotlin.$_$.fc;
|
|
59
59
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
60
60
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.k;
|
|
61
|
-
var Collection = kotlin_kotlin.$_$.
|
|
62
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
63
|
-
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
61
|
+
var Collection = kotlin_kotlin.$_$.m5;
|
|
62
|
+
var toString_0 = kotlin_kotlin.$_$.sh;
|
|
63
|
+
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
64
64
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
65
65
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
66
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
66
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
67
67
|
var Url = kotlin_io_ktor_ktor_http.$_$.g1;
|
|
68
68
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
69
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
70
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
+
var joinToString = kotlin_kotlin.$_$.q7;
|
|
70
|
+
var equals = kotlin_kotlin.$_$.ib;
|
|
71
71
|
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.a1;
|
|
72
72
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
73
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
73
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.oh;
|
|
74
74
|
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
75
75
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
76
76
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
@@ -78,41 +78,41 @@
|
|
|
78
78
|
var MultiPartFormDataContent = kotlin_io_ktor_ktor_client_core.$_$.c1;
|
|
79
79
|
var ObservableContent = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
80
80
|
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
81
|
-
var takeFrom = kotlin_io_ktor_ktor_http.$_$.
|
|
81
|
+
var takeFrom = kotlin_io_ktor_ktor_http.$_$.x1;
|
|
82
82
|
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.a1;
|
|
83
83
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
84
84
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
85
85
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
86
86
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
87
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
87
|
+
var toLongOrNull = kotlin_kotlin.$_$.jf;
|
|
88
88
|
var contentLength = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
89
89
|
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
90
|
-
var subtract = kotlin_kotlin.$_$.
|
|
90
|
+
var subtract = kotlin_kotlin.$_$.sa;
|
|
91
91
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
|
|
92
92
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
93
93
|
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
94
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
95
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
96
|
-
var createKType = kotlin_kotlin.$_$.
|
|
94
|
+
var getKClass = kotlin_kotlin.$_$.gd;
|
|
95
|
+
var arrayOf = kotlin_kotlin.$_$.dh;
|
|
96
|
+
var createKType = kotlin_kotlin.$_$.ed;
|
|
97
97
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
98
98
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
|
|
99
|
-
var Unit = kotlin_kotlin.$_$.
|
|
99
|
+
var Unit = kotlin_kotlin.$_$.ah;
|
|
100
100
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
101
|
-
var toList = kotlin_kotlin.$_$.
|
|
102
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
103
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
104
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
105
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
106
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
101
|
+
var toList = kotlin_kotlin.$_$.t8;
|
|
102
|
+
var sortedWith = kotlin_kotlin.$_$.o8;
|
|
103
|
+
var FunctionAdapter = kotlin_kotlin.$_$.ua;
|
|
104
|
+
var Comparator = kotlin_kotlin.$_$.dg;
|
|
105
|
+
var hashCode = kotlin_kotlin.$_$.pb;
|
|
106
|
+
var compareValues = kotlin_kotlin.$_$.f9;
|
|
107
107
|
var writer = kotlin_io_ktor_ktor_io.$_$.y1;
|
|
108
108
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
109
109
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.d1;
|
|
110
110
|
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.p;
|
|
111
|
-
var get = kotlin_kotlin.$_$.
|
|
112
|
-
var fold = kotlin_kotlin.$_$.
|
|
113
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
114
|
-
var plus = kotlin_kotlin.$_$.
|
|
115
|
-
var Element = kotlin_kotlin.$_$.
|
|
111
|
+
var get = kotlin_kotlin.$_$.u9;
|
|
112
|
+
var fold = kotlin_kotlin.$_$.t9;
|
|
113
|
+
var minusKey = kotlin_kotlin.$_$.v9;
|
|
114
|
+
var plus = kotlin_kotlin.$_$.x9;
|
|
115
|
+
var Element = kotlin_kotlin.$_$.w9;
|
|
116
116
|
//endregion
|
|
117
117
|
//region block: pre-declaration
|
|
118
118
|
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
@@ -120,10 +120,10 @@
|
|
|
120
120
|
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
121
121
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
122
122
|
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
123
|
-
return this.
|
|
123
|
+
return this.l5b(contentLength, contentType, headers, body, $completion);
|
|
124
124
|
}
|
|
125
125
|
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
126
|
-
return this.
|
|
126
|
+
return this.l5b(contentLength, contentType, headers, body, $completion);
|
|
127
127
|
}
|
|
128
128
|
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
129
129
|
function get_byteSize() {
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
//endregion
|
|
177
177
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
178
178
|
CoroutineImpl.call(this, resultContinuation);
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
179
|
+
this.b5a_1 = _this__u8e3s4;
|
|
180
|
+
this.c5a_1 = message;
|
|
181
181
|
}
|
|
182
182
|
protoOf($logResponseExceptionCOROUTINE$).l9 = function () {
|
|
183
183
|
var suspendResult = this.f9_1;
|
|
@@ -188,15 +188,15 @@
|
|
|
188
188
|
case 0:
|
|
189
189
|
this.e9_1 = 2;
|
|
190
190
|
this.d9_1 = 1;
|
|
191
|
-
suspendResult = this.
|
|
191
|
+
suspendResult = this.b5a_1.g5a_1.av(this);
|
|
192
192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
193
193
|
return suspendResult;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
continue $sm;
|
|
197
197
|
case 1:
|
|
198
|
-
var this_0 = this.
|
|
199
|
-
this.
|
|
198
|
+
var this_0 = this.c5a_1;
|
|
199
|
+
this.b5a_1.d5a_1.k5a(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
200
200
|
return Unit_instance;
|
|
201
201
|
case 2:
|
|
202
202
|
throw this.g9_1;
|
|
@@ -214,8 +214,8 @@
|
|
|
214
214
|
};
|
|
215
215
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
216
216
|
CoroutineImpl.call(this, resultContinuation);
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
217
|
+
this.t5a_1 = _this__u8e3s4;
|
|
218
|
+
this.u5a_1 = message;
|
|
219
219
|
}
|
|
220
220
|
protoOf($logResponseBodyCOROUTINE$).l9 = function () {
|
|
221
221
|
var suspendResult = this.f9_1;
|
|
@@ -226,14 +226,14 @@
|
|
|
226
226
|
case 0:
|
|
227
227
|
this.e9_1 = 2;
|
|
228
228
|
this.d9_1 = 1;
|
|
229
|
-
suspendResult = this.
|
|
229
|
+
suspendResult = this.t5a_1.h5a_1.av(this);
|
|
230
230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
231
231
|
return suspendResult;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
continue $sm;
|
|
235
235
|
case 1:
|
|
236
|
-
this.
|
|
236
|
+
this.t5a_1.f5a_1.q(this.u5a_1);
|
|
237
237
|
return Unit_instance;
|
|
238
238
|
case 2:
|
|
239
239
|
throw this.g9_1;
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
};
|
|
252
252
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
253
253
|
CoroutineImpl.call(this, resultContinuation);
|
|
254
|
-
this.
|
|
254
|
+
this.d5b_1 = _this__u8e3s4;
|
|
255
255
|
}
|
|
256
256
|
protoOf($closeResponseLogCOROUTINE$).l9 = function () {
|
|
257
257
|
var suspendResult = this.f9_1;
|
|
@@ -261,19 +261,19 @@
|
|
|
261
261
|
switch (tmp) {
|
|
262
262
|
case 0:
|
|
263
263
|
this.e9_1 = 2;
|
|
264
|
-
if (!this.
|
|
264
|
+
if (!this.d5b_1.j5a_1.atomicfu$compareAndSet(false, true))
|
|
265
265
|
return Unit_instance;
|
|
266
266
|
this.d9_1 = 1;
|
|
267
|
-
suspendResult = this.
|
|
267
|
+
suspendResult = this.d5b_1.g5a_1.av(this);
|
|
268
268
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
269
269
|
return suspendResult;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
continue $sm;
|
|
273
273
|
case 1:
|
|
274
|
-
var message = toString(trim(this.
|
|
274
|
+
var message = toString(trim(this.d5b_1.f5a_1));
|
|
275
275
|
if (charSequenceLength(message) > 0) {
|
|
276
|
-
this.
|
|
276
|
+
this.d5b_1.d5a_1.k5a(message);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
return Unit_instance;
|
|
@@ -292,57 +292,57 @@
|
|
|
292
292
|
while (true);
|
|
293
293
|
};
|
|
294
294
|
function HttpClientCallLogger(logger) {
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
}
|
|
303
|
-
protoOf(HttpClientCallLogger).
|
|
304
|
-
var tmp0 = this.
|
|
295
|
+
this.d5a_1 = logger;
|
|
296
|
+
this.e5a_1 = StringBuilder_init_$Create$();
|
|
297
|
+
this.f5a_1 = StringBuilder_init_$Create$();
|
|
298
|
+
this.g5a_1 = Job();
|
|
299
|
+
this.h5a_1 = Job();
|
|
300
|
+
this.i5a_1 = atomic$boolean$1(false);
|
|
301
|
+
this.j5a_1 = atomic$boolean$1(false);
|
|
302
|
+
}
|
|
303
|
+
protoOf(HttpClientCallLogger).e5b = function (message) {
|
|
304
|
+
var tmp0 = this.e5a_1;
|
|
305
305
|
// Inline function 'kotlin.text.trim' call
|
|
306
306
|
// Inline function 'kotlin.text.appendLine' call
|
|
307
307
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
308
308
|
// Inline function 'kotlin.text.appendLine' call
|
|
309
309
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
310
310
|
};
|
|
311
|
-
protoOf(HttpClientCallLogger).
|
|
312
|
-
var tmp0 = this.
|
|
311
|
+
protoOf(HttpClientCallLogger).f5b = function (message) {
|
|
312
|
+
var tmp0 = this.f5a_1;
|
|
313
313
|
// Inline function 'kotlin.text.trim' call
|
|
314
314
|
// Inline function 'kotlin.text.appendLine' call
|
|
315
315
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
316
316
|
// Inline function 'kotlin.text.appendLine' call
|
|
317
317
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
318
|
-
this.
|
|
318
|
+
this.h5a_1.e12();
|
|
319
319
|
};
|
|
320
|
-
protoOf(HttpClientCallLogger).
|
|
320
|
+
protoOf(HttpClientCallLogger).g5b = function (message, $completion) {
|
|
321
321
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
322
322
|
tmp.f9_1 = Unit_instance;
|
|
323
323
|
tmp.g9_1 = null;
|
|
324
324
|
return tmp.l9();
|
|
325
325
|
};
|
|
326
|
-
protoOf(HttpClientCallLogger).
|
|
326
|
+
protoOf(HttpClientCallLogger).h5b = function (message, $completion) {
|
|
327
327
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
328
328
|
tmp.f9_1 = Unit_instance;
|
|
329
329
|
tmp.g9_1 = null;
|
|
330
330
|
return tmp.l9();
|
|
331
331
|
};
|
|
332
|
-
protoOf(HttpClientCallLogger).
|
|
333
|
-
if (!this.
|
|
332
|
+
protoOf(HttpClientCallLogger).i5b = function () {
|
|
333
|
+
if (!this.i5a_1.atomicfu$compareAndSet(false, true))
|
|
334
334
|
return Unit_instance;
|
|
335
335
|
try {
|
|
336
|
-
var message = toString(trim(this.
|
|
336
|
+
var message = toString(trim(this.e5a_1));
|
|
337
337
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
338
338
|
if (charSequenceLength(message) > 0) {
|
|
339
|
-
this.
|
|
339
|
+
this.d5a_1.k5a(message);
|
|
340
340
|
}
|
|
341
341
|
}finally {
|
|
342
|
-
this.
|
|
342
|
+
this.g5a_1.e12();
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
|
-
protoOf(HttpClientCallLogger).
|
|
345
|
+
protoOf(HttpClientCallLogger).j5b = function ($completion) {
|
|
346
346
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
347
347
|
tmp.f9_1 = Unit_instance;
|
|
348
348
|
tmp.g9_1 = null;
|
|
@@ -364,35 +364,35 @@
|
|
|
364
364
|
function Skip(reason, byteSize) {
|
|
365
365
|
reason = reason === VOID ? null : reason;
|
|
366
366
|
byteSize = byteSize === VOID ? null : byteSize;
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
367
|
+
this.o5b_1 = reason;
|
|
368
|
+
this.p5b_1 = byteSize;
|
|
369
369
|
}
|
|
370
|
-
protoOf(Skip).
|
|
371
|
-
return this.
|
|
370
|
+
protoOf(Skip).n5b = function () {
|
|
371
|
+
return this.p5b_1;
|
|
372
372
|
};
|
|
373
373
|
function Content() {
|
|
374
374
|
}
|
|
375
375
|
function BufferContent(buffer, charset, byteSize) {
|
|
376
376
|
byteSize = byteSize === VOID ? buffer.l1() : byteSize;
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
377
|
+
this.r5b_1 = buffer;
|
|
378
|
+
this.s5b_1 = charset;
|
|
379
|
+
this.t5b_1 = byteSize;
|
|
380
380
|
}
|
|
381
|
-
protoOf(BufferContent).
|
|
382
|
-
return this.
|
|
381
|
+
protoOf(BufferContent).n5b = function () {
|
|
382
|
+
return this.t5b_1;
|
|
383
383
|
};
|
|
384
|
-
protoOf(BufferContent).
|
|
385
|
-
return readText(this.
|
|
384
|
+
protoOf(BufferContent).q5b = function () {
|
|
385
|
+
return readText(this.r5b_1, this.s5b_1);
|
|
386
386
|
};
|
|
387
387
|
function BodyFilterResult() {
|
|
388
388
|
}
|
|
389
389
|
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
390
390
|
CoroutineImpl.call(this, resultContinuation);
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
395
|
-
this.
|
|
391
|
+
this.c5c_1 = _this__u8e3s4;
|
|
392
|
+
this.d5c_1 = contentLength;
|
|
393
|
+
this.e5c_1 = contentType;
|
|
394
|
+
this.f5c_1 = headers;
|
|
395
|
+
this.g5c_1 = body;
|
|
396
396
|
}
|
|
397
397
|
protoOf($filterAllCOROUTINE$).l9 = function () {
|
|
398
398
|
var suspendResult = this.f9_1;
|
|
@@ -402,13 +402,13 @@
|
|
|
402
402
|
switch (tmp) {
|
|
403
403
|
case 0:
|
|
404
404
|
this.e9_1 = 6;
|
|
405
|
-
if (this.
|
|
406
|
-
return new Skip('encoded', this.
|
|
405
|
+
if (this.f5c_1.z2o('Content-Encoding')) {
|
|
406
|
+
return new Skip('encoded', this.d5c_1);
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
if (!(this.
|
|
409
|
+
if (!(this.e5c_1 == null) && isTextType(this.e5c_1)) {
|
|
410
410
|
this.d9_1 = 5;
|
|
411
|
-
suspendResult = readBuffer(this.
|
|
411
|
+
suspendResult = readBuffer(this.g5c_1, this);
|
|
412
412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
413
413
|
return suspendResult;
|
|
414
414
|
}
|
|
@@ -421,18 +421,18 @@
|
|
|
421
421
|
case 1:
|
|
422
422
|
var tmp_0 = this;
|
|
423
423
|
var tmp_1;
|
|
424
|
-
if (!(this.
|
|
425
|
-
var tmp1_elvis_lhs = charset(this.
|
|
424
|
+
if (!(this.e5c_1 == null)) {
|
|
425
|
+
var tmp1_elvis_lhs = charset(this.e5c_1);
|
|
426
426
|
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp1_elvis_lhs;
|
|
427
427
|
} else {
|
|
428
428
|
tmp_1 = Charsets_getInstance().c1z_1;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
tmp_0.
|
|
432
|
-
this.
|
|
433
|
-
this.
|
|
431
|
+
tmp_0.m5c_1 = tmp_1;
|
|
432
|
+
this.l5c_1 = false;
|
|
433
|
+
this.k5c_1 = new Int8Array(1024);
|
|
434
434
|
this.d9_1 = 2;
|
|
435
|
-
suspendResult = readAvailable(this.
|
|
435
|
+
suspendResult = readAvailable(this.g5c_1, this.k5c_1, VOID, VOID, this);
|
|
436
436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
437
437
|
return suspendResult;
|
|
438
438
|
}
|
|
@@ -445,16 +445,16 @@
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
var this_0 = new Buffer();
|
|
448
|
-
writeFully(this_0, this.
|
|
448
|
+
writeFully(this_0, this.k5c_1, 0, firstReadSize);
|
|
449
449
|
var buffer = this_0;
|
|
450
450
|
var tmp_2;
|
|
451
451
|
try {
|
|
452
|
-
tmp_2 = decode(this.
|
|
452
|
+
tmp_2 = decode(this.m5c_1.f1z(), buffer);
|
|
453
453
|
} catch ($p) {
|
|
454
454
|
var tmp_3;
|
|
455
455
|
if ($p instanceof MalformedInputException) {
|
|
456
456
|
var _unused_var__etf5q3 = $p;
|
|
457
|
-
this.
|
|
457
|
+
this.l5c_1 = true;
|
|
458
458
|
tmp_3 = '';
|
|
459
459
|
} else {
|
|
460
460
|
throw $p;
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
var firstChunkText = tmp_2;
|
|
466
|
-
if (!this.
|
|
466
|
+
if (!this.l5c_1) {
|
|
467
467
|
var lastCharIndex = -1;
|
|
468
468
|
var inductionVariable = 0;
|
|
469
469
|
var last = firstChunkText.length;
|
|
@@ -479,23 +479,23 @@
|
|
|
479
479
|
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
480
480
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
481
481
|
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
482
|
-
this.
|
|
482
|
+
this.l5c_1 = true;
|
|
483
483
|
break $l$loop;
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
if (this.
|
|
488
|
+
if (this.l5c_1) {
|
|
489
489
|
var tmp_4 = this;
|
|
490
|
-
tmp_4.
|
|
490
|
+
tmp_4.h5c_1 = new Skip('binary', this.d5c_1);
|
|
491
491
|
this.d9_1 = 4;
|
|
492
492
|
continue $sm;
|
|
493
493
|
} else {
|
|
494
|
-
this.
|
|
495
|
-
this.
|
|
496
|
-
writeFully(this.
|
|
494
|
+
this.i5c_1 = new Buffer();
|
|
495
|
+
this.j5c_1 = this.i5c_1;
|
|
496
|
+
writeFully(this.j5c_1, this.k5c_1, 0, firstReadSize);
|
|
497
497
|
this.d9_1 = 3;
|
|
498
|
-
suspendResult = readBuffer(this.
|
|
498
|
+
suspendResult = readBuffer(this.g5c_1, this);
|
|
499
499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
500
500
|
return suspendResult;
|
|
501
501
|
}
|
|
@@ -504,19 +504,19 @@
|
|
|
504
504
|
|
|
505
505
|
case 3:
|
|
506
506
|
var ARGUMENT = suspendResult;
|
|
507
|
-
this.
|
|
508
|
-
var ARGUMENT_0 = this.
|
|
507
|
+
this.j5c_1.bs(ARGUMENT);
|
|
508
|
+
var ARGUMENT_0 = this.i5c_1;
|
|
509
509
|
var tmp_5 = this;
|
|
510
|
-
var tmp2_safe_receiver = this.
|
|
510
|
+
var tmp2_safe_receiver = this.e5c_1;
|
|
511
511
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
512
|
-
tmp_5.
|
|
512
|
+
tmp_5.h5c_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp3_elvis_lhs);
|
|
513
513
|
this.d9_1 = 4;
|
|
514
514
|
continue $sm;
|
|
515
515
|
case 4:
|
|
516
|
-
return this.
|
|
516
|
+
return this.h5c_1;
|
|
517
517
|
case 5:
|
|
518
518
|
var ARGUMENT_1 = suspendResult;
|
|
519
|
-
var tmp0_elvis_lhs = charset(this.
|
|
519
|
+
var tmp0_elvis_lhs = charset(this.e5c_1);
|
|
520
520
|
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp0_elvis_lhs);
|
|
521
521
|
case 6:
|
|
522
522
|
throw this.g9_1;
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
};
|
|
535
535
|
function BinaryLogBodyFilter$1() {
|
|
536
536
|
}
|
|
537
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
537
|
+
protoOf(BinaryLogBodyFilter$1).l5b = function (contentLength, contentType, headers, body, $completion) {
|
|
538
538
|
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
539
539
|
tmp.f9_1 = Unit_instance;
|
|
540
540
|
tmp.g9_1 = null;
|
|
@@ -565,9 +565,9 @@
|
|
|
565
565
|
}
|
|
566
566
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
567
567
|
Enum.call(this, name, ordinal);
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
568
|
+
this.p5c_1 = info;
|
|
569
|
+
this.q5c_1 = headers;
|
|
570
|
+
this.r5c_1 = body;
|
|
571
571
|
}
|
|
572
572
|
function LogLevel_ALL_getInstance() {
|
|
573
573
|
LogLevel_initEntries();
|
|
@@ -591,27 +591,27 @@
|
|
|
591
591
|
}
|
|
592
592
|
function LoggedContent(originalContent, channel) {
|
|
593
593
|
ReadChannelContent.call(this);
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
594
|
+
this.t5c_1 = originalContent;
|
|
595
|
+
this.u5c_1 = channel;
|
|
596
|
+
this.v5c_1 = this.t5c_1.k38();
|
|
597
|
+
this.w5c_1 = this.t5c_1.m38();
|
|
598
|
+
this.x5c_1 = this.t5c_1.l38();
|
|
599
|
+
this.y5c_1 = this.t5c_1.m32();
|
|
600
600
|
}
|
|
601
|
-
protoOf(LoggedContent).
|
|
602
|
-
return this.
|
|
601
|
+
protoOf(LoggedContent).k38 = function () {
|
|
602
|
+
return this.v5c_1;
|
|
603
603
|
};
|
|
604
|
-
protoOf(LoggedContent).
|
|
605
|
-
return this.
|
|
604
|
+
protoOf(LoggedContent).m38 = function () {
|
|
605
|
+
return this.w5c_1;
|
|
606
606
|
};
|
|
607
|
-
protoOf(LoggedContent).
|
|
608
|
-
return this.
|
|
607
|
+
protoOf(LoggedContent).l38 = function () {
|
|
608
|
+
return this.x5c_1;
|
|
609
609
|
};
|
|
610
|
-
protoOf(LoggedContent).
|
|
611
|
-
return this.
|
|
610
|
+
protoOf(LoggedContent).m32 = function () {
|
|
611
|
+
return this.y5c_1;
|
|
612
612
|
};
|
|
613
|
-
protoOf(LoggedContent).
|
|
614
|
-
return this.
|
|
613
|
+
protoOf(LoggedContent).q38 = function () {
|
|
614
|
+
return this.u5c_1;
|
|
615
615
|
};
|
|
616
616
|
function Companion() {
|
|
617
617
|
}
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
}
|
|
625
625
|
function SimpleLogger() {
|
|
626
626
|
}
|
|
627
|
-
protoOf(SimpleLogger).
|
|
627
|
+
protoOf(SimpleLogger).k5a = function (message) {
|
|
628
628
|
println('HttpClient: ' + message);
|
|
629
629
|
};
|
|
630
630
|
var SimpleLogger_instance;
|
|
@@ -649,20 +649,20 @@
|
|
|
649
649
|
function LoggingConfig() {
|
|
650
650
|
var tmp = this;
|
|
651
651
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
652
|
-
tmp.
|
|
652
|
+
tmp.z5c_1 = ArrayList_init_$Create$();
|
|
653
653
|
var tmp_0 = this;
|
|
654
654
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
655
|
-
tmp_0.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
655
|
+
tmp_0.a5d_1 = ArrayList_init_$Create$();
|
|
656
|
+
this.b5d_1 = null;
|
|
657
|
+
this.c5d_1 = LoggingFormat_Default_getInstance();
|
|
658
|
+
this.d5d_1 = LogLevel_HEADERS_getInstance();
|
|
659
|
+
this.e5d_1 = get_BinaryLogBodyFilter();
|
|
660
660
|
}
|
|
661
|
-
protoOf(LoggingConfig).
|
|
662
|
-
this.
|
|
661
|
+
protoOf(LoggingConfig).f5d = function (value) {
|
|
662
|
+
this.b5d_1 = value;
|
|
663
663
|
};
|
|
664
|
-
protoOf(LoggingConfig).
|
|
665
|
-
var tmp0_elvis_lhs = this.
|
|
664
|
+
protoOf(LoggingConfig).g5d = function () {
|
|
665
|
+
var tmp0_elvis_lhs = this.b5d_1;
|
|
666
666
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
667
667
|
};
|
|
668
668
|
var LoggingFormat_Default_instance;
|
|
@@ -686,10 +686,10 @@
|
|
|
686
686
|
}
|
|
687
687
|
var tmp;
|
|
688
688
|
if (content instanceof ByteArrayContent) {
|
|
689
|
-
tmp = fromInt(content.
|
|
689
|
+
tmp = fromInt(content.n38().length);
|
|
690
690
|
} else {
|
|
691
691
|
if (content instanceof ContentWrapper) {
|
|
692
|
-
tmp = computeRequestBodySize(content.
|
|
692
|
+
tmp = computeRequestBodySize(content.w38());
|
|
693
693
|
} else {
|
|
694
694
|
if (content instanceof NoContent) {
|
|
695
695
|
tmp = 0n;
|
|
@@ -707,27 +707,27 @@
|
|
|
707
707
|
return tmp;
|
|
708
708
|
}
|
|
709
709
|
function Context(context) {
|
|
710
|
-
this.
|
|
710
|
+
this.h5d_1 = context;
|
|
711
711
|
}
|
|
712
|
-
protoOf(Context).
|
|
713
|
-
return this.
|
|
712
|
+
protoOf(Context).i5d = function (content, $completion) {
|
|
713
|
+
return this.h5d_1.z2s(content, $completion);
|
|
714
714
|
};
|
|
715
|
-
protoOf(Context).
|
|
716
|
-
return this.
|
|
715
|
+
protoOf(Context).j5d = function ($completion) {
|
|
716
|
+
return this.h5d_1.a2t($completion);
|
|
717
717
|
};
|
|
718
718
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
719
|
-
this.
|
|
719
|
+
this.s5d_1 = $handler;
|
|
720
720
|
CoroutineImpl.call(this, resultContinuation);
|
|
721
721
|
}
|
|
722
|
-
protoOf(SendHook$install$slambda).
|
|
723
|
-
var tmp = this.
|
|
722
|
+
protoOf(SendHook$install$slambda).d3r = function ($this$intercept, it, $completion) {
|
|
723
|
+
var tmp = this.e3r($this$intercept, it, $completion);
|
|
724
724
|
tmp.f9_1 = Unit_instance;
|
|
725
725
|
tmp.g9_1 = null;
|
|
726
726
|
return tmp.l9();
|
|
727
727
|
};
|
|
728
728
|
protoOf(SendHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
729
729
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
730
|
-
return this.
|
|
730
|
+
return this.d3r(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
731
731
|
};
|
|
732
732
|
protoOf(SendHook$install$slambda).l9 = function () {
|
|
733
733
|
var suspendResult = this.f9_1;
|
|
@@ -738,7 +738,7 @@
|
|
|
738
738
|
case 0:
|
|
739
739
|
this.e9_1 = 2;
|
|
740
740
|
this.d9_1 = 1;
|
|
741
|
-
suspendResult = this.
|
|
741
|
+
suspendResult = this.s5d_1(new Context(this.t5d_1), this.t5d_1.v2t_1, this);
|
|
742
742
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
743
743
|
return suspendResult;
|
|
744
744
|
}
|
|
@@ -760,50 +760,50 @@
|
|
|
760
760
|
}
|
|
761
761
|
while (true);
|
|
762
762
|
};
|
|
763
|
-
protoOf(SendHook$install$slambda).
|
|
764
|
-
var i = new SendHook$install$slambda(this.
|
|
765
|
-
i.
|
|
766
|
-
i.
|
|
763
|
+
protoOf(SendHook$install$slambda).e3r = function ($this$intercept, it, completion) {
|
|
764
|
+
var i = new SendHook$install$slambda(this.s5d_1, completion);
|
|
765
|
+
i.t5d_1 = $this$intercept;
|
|
766
|
+
i.u5d_1 = it;
|
|
767
767
|
return i;
|
|
768
768
|
};
|
|
769
769
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
770
770
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
771
771
|
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
772
|
-
return i.
|
|
772
|
+
return i.d3r($this$intercept, it, $completion);
|
|
773
773
|
}, 2);
|
|
774
774
|
}
|
|
775
775
|
function SendHook() {
|
|
776
776
|
}
|
|
777
|
-
protoOf(SendHook).
|
|
778
|
-
var tmp = Phases_getInstance().
|
|
779
|
-
client.
|
|
777
|
+
protoOf(SendHook).v5d = function (client, handler) {
|
|
778
|
+
var tmp = Phases_getInstance().u3s_1;
|
|
779
|
+
client.h3q_1.z2t(tmp, SendHook$install$slambda_0(handler, null));
|
|
780
780
|
};
|
|
781
|
-
protoOf(SendHook).
|
|
782
|
-
return this.
|
|
781
|
+
protoOf(SendHook).q3z = function (client, handler) {
|
|
782
|
+
return this.v5d(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
783
783
|
};
|
|
784
784
|
var SendHook_instance;
|
|
785
785
|
function SendHook_getInstance() {
|
|
786
786
|
return SendHook_instance;
|
|
787
787
|
}
|
|
788
788
|
function Context_0(context) {
|
|
789
|
-
this.
|
|
789
|
+
this.w5d_1 = context;
|
|
790
790
|
}
|
|
791
|
-
protoOf(Context_0).
|
|
792
|
-
return this.
|
|
791
|
+
protoOf(Context_0).r4o = function (response, $completion) {
|
|
792
|
+
return this.w5d_1.z2s(response, $completion);
|
|
793
793
|
};
|
|
794
794
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
795
|
-
this.
|
|
795
|
+
this.f5e_1 = $handler;
|
|
796
796
|
CoroutineImpl.call(this, resultContinuation);
|
|
797
797
|
}
|
|
798
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
799
|
-
var tmp = this.
|
|
798
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).c40 = function ($this$intercept, it, $completion) {
|
|
799
|
+
var tmp = this.d40($this$intercept, it, $completion);
|
|
800
800
|
tmp.f9_1 = Unit_instance;
|
|
801
801
|
tmp.g9_1 = null;
|
|
802
802
|
return tmp.l9();
|
|
803
803
|
};
|
|
804
804
|
protoOf(ResponseAfterEncodingHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
805
805
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
806
|
-
return this.
|
|
806
|
+
return this.c40(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
807
807
|
};
|
|
808
808
|
protoOf(ResponseAfterEncodingHook$install$slambda).l9 = function () {
|
|
809
809
|
var suspendResult = this.f9_1;
|
|
@@ -814,7 +814,7 @@
|
|
|
814
814
|
case 0:
|
|
815
815
|
this.e9_1 = 2;
|
|
816
816
|
this.d9_1 = 1;
|
|
817
|
-
suspendResult = this.
|
|
817
|
+
suspendResult = this.f5e_1(new Context_0(this.g5e_1), this.g5e_1.y2s(), this);
|
|
818
818
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
819
819
|
return suspendResult;
|
|
820
820
|
}
|
|
@@ -836,51 +836,51 @@
|
|
|
836
836
|
}
|
|
837
837
|
while (true);
|
|
838
838
|
};
|
|
839
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
840
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
841
|
-
i.
|
|
842
|
-
i.
|
|
839
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).d40 = function ($this$intercept, it, completion) {
|
|
840
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.f5e_1, completion);
|
|
841
|
+
i.g5e_1 = $this$intercept;
|
|
842
|
+
i.h5e_1 = it;
|
|
843
843
|
return i;
|
|
844
844
|
};
|
|
845
845
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
846
846
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
847
847
|
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
848
|
-
return i.
|
|
848
|
+
return i.c40($this$intercept, it, $completion);
|
|
849
849
|
}, 2);
|
|
850
850
|
}
|
|
851
851
|
function ResponseAfterEncodingHook() {
|
|
852
852
|
}
|
|
853
|
-
protoOf(ResponseAfterEncodingHook).
|
|
853
|
+
protoOf(ResponseAfterEncodingHook).i5e = function (client, handler) {
|
|
854
854
|
var afterState = new PipelinePhase('AfterState');
|
|
855
|
-
client.
|
|
856
|
-
client.
|
|
855
|
+
client.i3q_1.w2t(Phases_getInstance_0().g40_1, afterState);
|
|
856
|
+
client.i3q_1.z2t(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
857
857
|
};
|
|
858
|
-
protoOf(ResponseAfterEncodingHook).
|
|
859
|
-
return this.
|
|
858
|
+
protoOf(ResponseAfterEncodingHook).q3z = function (client, handler) {
|
|
859
|
+
return this.i5e(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
860
860
|
};
|
|
861
861
|
var ResponseAfterEncodingHook_instance;
|
|
862
862
|
function ResponseAfterEncodingHook_getInstance() {
|
|
863
863
|
return ResponseAfterEncodingHook_instance;
|
|
864
864
|
}
|
|
865
865
|
function Context_1(context) {
|
|
866
|
-
this.
|
|
866
|
+
this.j5e_1 = context;
|
|
867
867
|
}
|
|
868
|
-
protoOf(Context_1).
|
|
869
|
-
return this.
|
|
868
|
+
protoOf(Context_1).k5e = function ($completion) {
|
|
869
|
+
return this.j5e_1.a2t($completion);
|
|
870
870
|
};
|
|
871
871
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
872
|
-
this.
|
|
872
|
+
this.t5e_1 = $handler;
|
|
873
873
|
CoroutineImpl.call(this, resultContinuation);
|
|
874
874
|
}
|
|
875
|
-
protoOf(ResponseHook$install$slambda).
|
|
876
|
-
var tmp = this.
|
|
875
|
+
protoOf(ResponseHook$install$slambda).c40 = function ($this$intercept, it, $completion) {
|
|
876
|
+
var tmp = this.d40($this$intercept, it, $completion);
|
|
877
877
|
tmp.f9_1 = Unit_instance;
|
|
878
878
|
tmp.g9_1 = null;
|
|
879
879
|
return tmp.l9();
|
|
880
880
|
};
|
|
881
881
|
protoOf(ResponseHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
882
882
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
883
|
-
return this.
|
|
883
|
+
return this.c40(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
884
884
|
};
|
|
885
885
|
protoOf(ResponseHook$install$slambda).l9 = function () {
|
|
886
886
|
var suspendResult = this.f9_1;
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
case 0:
|
|
892
892
|
this.e9_1 = 2;
|
|
893
893
|
this.d9_1 = 1;
|
|
894
|
-
suspendResult = this.
|
|
894
|
+
suspendResult = this.t5e_1(new Context_1(this.u5e_1), this.u5e_1.y2s(), this);
|
|
895
895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
896
896
|
return suspendResult;
|
|
897
897
|
}
|
|
@@ -913,50 +913,50 @@
|
|
|
913
913
|
}
|
|
914
914
|
while (true);
|
|
915
915
|
};
|
|
916
|
-
protoOf(ResponseHook$install$slambda).
|
|
917
|
-
var i = new ResponseHook$install$slambda(this.
|
|
918
|
-
i.
|
|
919
|
-
i.
|
|
916
|
+
protoOf(ResponseHook$install$slambda).d40 = function ($this$intercept, it, completion) {
|
|
917
|
+
var i = new ResponseHook$install$slambda(this.t5e_1, completion);
|
|
918
|
+
i.u5e_1 = $this$intercept;
|
|
919
|
+
i.v5e_1 = it;
|
|
920
920
|
return i;
|
|
921
921
|
};
|
|
922
922
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
923
923
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
924
924
|
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
925
|
-
return i.
|
|
925
|
+
return i.c40($this$intercept, it, $completion);
|
|
926
926
|
}, 2);
|
|
927
927
|
}
|
|
928
928
|
function ResponseHook() {
|
|
929
929
|
}
|
|
930
|
-
protoOf(ResponseHook).
|
|
931
|
-
var tmp = Phases_getInstance_0().
|
|
932
|
-
client.
|
|
930
|
+
protoOf(ResponseHook).w5e = function (client, handler) {
|
|
931
|
+
var tmp = Phases_getInstance_0().g40_1;
|
|
932
|
+
client.i3q_1.z2t(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
933
933
|
};
|
|
934
|
-
protoOf(ResponseHook).
|
|
935
|
-
return this.
|
|
934
|
+
protoOf(ResponseHook).q3z = function (client, handler) {
|
|
935
|
+
return this.w5e(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
936
936
|
};
|
|
937
937
|
var ResponseHook_instance;
|
|
938
938
|
function ResponseHook_getInstance() {
|
|
939
939
|
return ResponseHook_instance;
|
|
940
940
|
}
|
|
941
941
|
function Context_2(context) {
|
|
942
|
-
this.
|
|
942
|
+
this.x5e_1 = context;
|
|
943
943
|
}
|
|
944
|
-
protoOf(Context_2).
|
|
945
|
-
return this.
|
|
944
|
+
protoOf(Context_2).y5e = function ($completion) {
|
|
945
|
+
return this.x5e_1.a2t($completion);
|
|
946
946
|
};
|
|
947
947
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
948
|
-
this.
|
|
948
|
+
this.h5f_1 = $handler;
|
|
949
949
|
CoroutineImpl.call(this, resultContinuation);
|
|
950
950
|
}
|
|
951
|
-
protoOf(ReceiveHook$install$slambda).
|
|
952
|
-
var tmp = this.
|
|
951
|
+
protoOf(ReceiveHook$install$slambda).y3r = function ($this$intercept, it, $completion) {
|
|
952
|
+
var tmp = this.z3r($this$intercept, it, $completion);
|
|
953
953
|
tmp.f9_1 = Unit_instance;
|
|
954
954
|
tmp.g9_1 = null;
|
|
955
955
|
return tmp.l9();
|
|
956
956
|
};
|
|
957
957
|
protoOf(ReceiveHook$install$slambda).z9 = function (p1, p2, $completion) {
|
|
958
958
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
959
|
-
return this.
|
|
959
|
+
return this.y3r(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
960
960
|
};
|
|
961
961
|
protoOf(ReceiveHook$install$slambda).l9 = function () {
|
|
962
962
|
var suspendResult = this.f9_1;
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
case 0:
|
|
968
968
|
this.e9_1 = 2;
|
|
969
969
|
this.d9_1 = 1;
|
|
970
|
-
suspendResult = this.
|
|
970
|
+
suspendResult = this.h5f_1(new Context_2(this.i5f_1), this.i5f_1.v2t_1, this);
|
|
971
971
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
972
972
|
return suspendResult;
|
|
973
973
|
}
|
|
@@ -989,26 +989,26 @@
|
|
|
989
989
|
}
|
|
990
990
|
while (true);
|
|
991
991
|
};
|
|
992
|
-
protoOf(ReceiveHook$install$slambda).
|
|
993
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
994
|
-
i.
|
|
995
|
-
i.
|
|
992
|
+
protoOf(ReceiveHook$install$slambda).z3r = function ($this$intercept, it, completion) {
|
|
993
|
+
var i = new ReceiveHook$install$slambda(this.h5f_1, completion);
|
|
994
|
+
i.i5f_1 = $this$intercept;
|
|
995
|
+
i.j5f_1 = it;
|
|
996
996
|
return i;
|
|
997
997
|
};
|
|
998
998
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
999
999
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1000
1000
|
return constructCallableReference(function ($this$intercept, it, $completion) {
|
|
1001
|
-
return i.
|
|
1001
|
+
return i.y3r($this$intercept, it, $completion);
|
|
1002
1002
|
}, 2);
|
|
1003
1003
|
}
|
|
1004
1004
|
function ReceiveHook() {
|
|
1005
1005
|
}
|
|
1006
|
-
protoOf(ReceiveHook).
|
|
1007
|
-
var tmp = Phases_getInstance_1().
|
|
1008
|
-
client.
|
|
1006
|
+
protoOf(ReceiveHook).k5f = function (client, handler) {
|
|
1007
|
+
var tmp = Phases_getInstance_1().i3t_1;
|
|
1008
|
+
client.g3q_1.z2t(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1009
1009
|
};
|
|
1010
|
-
protoOf(ReceiveHook).
|
|
1011
|
-
return this.
|
|
1010
|
+
protoOf(ReceiveHook).q3z = function (client, handler) {
|
|
1011
|
+
return this.k5f(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1012
1012
|
};
|
|
1013
1013
|
var ReceiveHook_instance;
|
|
1014
1014
|
function ReceiveHook_getInstance() {
|
|
@@ -1021,27 +1021,27 @@
|
|
|
1021
1021
|
}
|
|
1022
1022
|
function Logging$lambda($this$createClientPlugin) {
|
|
1023
1023
|
_init_properties_Logging_kt__66pui5();
|
|
1024
|
-
var logger = $this$createClientPlugin.
|
|
1025
|
-
var level = $this$createClientPlugin.
|
|
1026
|
-
var filters = $this$createClientPlugin.
|
|
1027
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
1028
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
1029
|
-
var bodyFilter = $this$createClientPlugin.
|
|
1024
|
+
var logger = $this$createClientPlugin.k40_1.g5d();
|
|
1025
|
+
var level = $this$createClientPlugin.k40_1.d5d_1;
|
|
1026
|
+
var filters = $this$createClientPlugin.k40_1.z5c_1;
|
|
1027
|
+
var sanitizedHeaders = $this$createClientPlugin.k40_1.a5d_1;
|
|
1028
|
+
var okHttpFormat = $this$createClientPlugin.k40_1.c5d_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1029
|
+
var bodyFilter = $this$createClientPlugin.k40_1.e5d_1;
|
|
1030
1030
|
var tmp = SendHook_instance;
|
|
1031
|
-
$this$createClientPlugin.
|
|
1031
|
+
$this$createClientPlugin.n40(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1032
1032
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1033
|
-
$this$createClientPlugin.
|
|
1033
|
+
$this$createClientPlugin.n40(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1034
1034
|
var tmp_1 = ResponseHook_instance;
|
|
1035
|
-
$this$createClientPlugin.
|
|
1035
|
+
$this$createClientPlugin.n40(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1036
1036
|
var tmp_2 = ReceiveHook_instance;
|
|
1037
|
-
$this$createClientPlugin.
|
|
1037
|
+
$this$createClientPlugin.n40(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, logger, null));
|
|
1038
1038
|
if (okHttpFormat)
|
|
1039
1039
|
return Unit_instance;
|
|
1040
|
-
if (!level.
|
|
1040
|
+
if (!level.r5c_1)
|
|
1041
1041
|
return Unit_instance;
|
|
1042
1042
|
var tmp_3 = get_ResponseObserver();
|
|
1043
|
-
var responseObserver = tmp_3.
|
|
1044
|
-
get_ResponseObserver().
|
|
1043
|
+
var responseObserver = tmp_3.p3t(Logging$lambda$lambda(level));
|
|
1044
|
+
get_ResponseObserver().q3t(responseObserver, $this$createClientPlugin.j40_1);
|
|
1045
1045
|
return Unit_instance;
|
|
1046
1046
|
}
|
|
1047
1047
|
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
@@ -1049,8 +1049,8 @@
|
|
|
1049
1049
|
return it;
|
|
1050
1050
|
}
|
|
1051
1051
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1052
|
+
this.t5f_1 = $content;
|
|
1053
|
+
this.u5f_1 = $channel;
|
|
1054
1054
|
CoroutineImpl.call(this, resultContinuation);
|
|
1055
1055
|
}
|
|
1056
1056
|
protoOf(Logging$lambda$logOutgoingContent$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -1071,14 +1071,14 @@
|
|
|
1071
1071
|
case 0:
|
|
1072
1072
|
this.e9_1 = 2;
|
|
1073
1073
|
this.d9_1 = 1;
|
|
1074
|
-
suspendResult = this.
|
|
1074
|
+
suspendResult = this.t5f_1.s38(this.u5f_1, this);
|
|
1075
1075
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1076
1076
|
return suspendResult;
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
continue $sm;
|
|
1080
1080
|
case 1:
|
|
1081
|
-
this.
|
|
1081
|
+
this.u5f_1.o4();
|
|
1082
1082
|
return Unit_instance;
|
|
1083
1083
|
case 2:
|
|
1084
1084
|
throw this.g9_1;
|
|
@@ -1095,8 +1095,8 @@
|
|
|
1095
1095
|
while (true);
|
|
1096
1096
|
};
|
|
1097
1097
|
protoOf(Logging$lambda$logOutgoingContent$slambda).d1y = function ($this$launch, completion) {
|
|
1098
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1099
|
-
i.
|
|
1098
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.t5f_1, this.u5f_1, completion);
|
|
1099
|
+
i.v5f_1 = $this$launch;
|
|
1100
1100
|
return i;
|
|
1101
1101
|
};
|
|
1102
1102
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
@@ -1107,7 +1107,7 @@
|
|
|
1107
1107
|
}
|
|
1108
1108
|
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1109
1109
|
_init_properties_Logging_kt__66pui5();
|
|
1110
|
-
return GZipEncoder_getInstance().
|
|
1110
|
+
return GZipEncoder_getInstance().r2p(channel);
|
|
1111
1111
|
}
|
|
1112
1112
|
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1113
1113
|
return function ($this$replaceResponse) {
|
|
@@ -1115,10 +1115,10 @@
|
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1120
|
-
this.
|
|
1121
|
-
this.
|
|
1118
|
+
this.e5g_1 = $channel;
|
|
1119
|
+
this.f5g_1 = $charset;
|
|
1120
|
+
this.g5g_1 = $requestLog;
|
|
1121
|
+
this.h5g_1 = $logger;
|
|
1122
1122
|
CoroutineImpl.call(this, resultContinuation);
|
|
1123
1123
|
}
|
|
1124
1124
|
protoOf(Logging$lambda$logRequestBody$slambda).c1y = function ($this$launch, $completion) {
|
|
@@ -1142,8 +1142,8 @@
|
|
|
1142
1142
|
continue $sm;
|
|
1143
1143
|
case 1:
|
|
1144
1144
|
this.e9_1 = 6;
|
|
1145
|
-
var tmp0 = this.
|
|
1146
|
-
this.
|
|
1145
|
+
var tmp0 = this.e5g_1;
|
|
1146
|
+
this.l5g_1 = this.f5g_1;
|
|
1147
1147
|
this.e9_1 = 3;
|
|
1148
1148
|
this.d9_1 = 2;
|
|
1149
1149
|
suspendResult = readRemaining(tmp0, this);
|
|
@@ -1154,7 +1154,7 @@
|
|
|
1154
1154
|
continue $sm;
|
|
1155
1155
|
case 2:
|
|
1156
1156
|
var ARGUMENT = suspendResult;
|
|
1157
|
-
this.
|
|
1157
|
+
this.k5g_1 = readText(ARGUMENT, this.l5g_1);
|
|
1158
1158
|
this.e9_1 = 6;
|
|
1159
1159
|
this.d9_1 = 4;
|
|
1160
1160
|
continue $sm;
|
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
if (tmp_0 instanceof Error) {
|
|
1165
1165
|
var cause = this.g9_1;
|
|
1166
1166
|
var tmp_1 = this;
|
|
1167
|
-
tmp_1.
|
|
1167
|
+
tmp_1.k5g_1 = null;
|
|
1168
1168
|
this.d9_1 = 4;
|
|
1169
1169
|
continue $sm;
|
|
1170
1170
|
} else {
|
|
@@ -1173,27 +1173,27 @@
|
|
|
1173
1173
|
|
|
1174
1174
|
case 4:
|
|
1175
1175
|
this.e9_1 = 6;
|
|
1176
|
-
var tmp0_elvis_lhs = this.
|
|
1176
|
+
var tmp0_elvis_lhs = this.k5g_1;
|
|
1177
1177
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1178
|
-
var tmp0_0 = this.
|
|
1178
|
+
var tmp0_0 = this.g5g_1;
|
|
1179
1179
|
var value = 'BODY START';
|
|
1180
1180
|
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1181
|
+
this.g5g_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1182
|
+
this.j5g_1 = this.g5g_1.q('BODY END');
|
|
1183
1183
|
this.e9_1 = 7;
|
|
1184
1184
|
this.d9_1 = 5;
|
|
1185
1185
|
continue $sm;
|
|
1186
1186
|
case 5:
|
|
1187
|
-
this.
|
|
1187
|
+
this.j5g_1;
|
|
1188
1188
|
this.e9_1 = 7;
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1189
|
+
this.h5g_1.e5b(this.g5g_1.toString());
|
|
1190
|
+
this.h5g_1.i5b();
|
|
1191
1191
|
return Unit_instance;
|
|
1192
1192
|
case 6:
|
|
1193
1193
|
this.e9_1 = 7;
|
|
1194
1194
|
var t = this.g9_1;
|
|
1195
|
-
this.
|
|
1196
|
-
this.
|
|
1195
|
+
this.h5g_1.e5b(this.g5g_1.toString());
|
|
1196
|
+
this.h5g_1.i5b();
|
|
1197
1197
|
throw t;
|
|
1198
1198
|
case 7:
|
|
1199
1199
|
throw this.g9_1;
|
|
@@ -1210,8 +1210,8 @@
|
|
|
1210
1210
|
while (true);
|
|
1211
1211
|
};
|
|
1212
1212
|
protoOf(Logging$lambda$logRequestBody$slambda).d1y = function ($this$launch, completion) {
|
|
1213
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1214
|
-
i.
|
|
1213
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.e5g_1, this.f5g_1, this.g5g_1, this.h5g_1, completion);
|
|
1214
|
+
i.i5g_1 = $this$launch;
|
|
1215
1215
|
return i;
|
|
1216
1216
|
};
|
|
1217
1217
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
@@ -1304,10 +1304,10 @@
|
|
|
1304
1304
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1305
1305
|
var requestLog = StringBuilder_init_$Create$();
|
|
1306
1306
|
// Inline function 'kotlin.text.appendLine' call
|
|
1307
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
1307
|
+
var value = 'BODY Content-Type: ' + toString_0(content.k38());
|
|
1308
1308
|
// Inline function 'kotlin.text.appendLine' call
|
|
1309
1309
|
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1310
|
-
var tmp0_safe_receiver = content.
|
|
1310
|
+
var tmp0_safe_receiver = content.k38();
|
|
1311
1311
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1312
1312
|
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp1_elvis_lhs;
|
|
1313
1313
|
var channel = new ByteChannel();
|
|
@@ -1317,34 +1317,34 @@
|
|
|
1317
1317
|
return observe(content, channel, $completion);
|
|
1318
1318
|
}
|
|
1319
1319
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
1320
|
-
if (level.
|
|
1321
|
-
logger.
|
|
1320
|
+
if (level.p5c_1) {
|
|
1321
|
+
logger.k5a('REQUEST ' + Url(context.k3s_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
1324
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1325
|
-
var tmp = request.
|
|
1325
|
+
var tmp = request.n3s_1;
|
|
1326
1326
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1327
1327
|
var callLogger = new HttpClientCallLogger(logger);
|
|
1328
|
-
request.
|
|
1328
|
+
request.p3s_1.t2l(get_ClientCallLogger(), callLogger);
|
|
1329
1329
|
// Inline function 'kotlin.text.buildString' call
|
|
1330
1330
|
// Inline function 'kotlin.apply' call
|
|
1331
1331
|
var this_0 = StringBuilder_init_$Create$();
|
|
1332
|
-
if (level.
|
|
1332
|
+
if (level.p5c_1) {
|
|
1333
1333
|
// Inline function 'kotlin.text.appendLine' call
|
|
1334
|
-
var value = 'REQUEST: ' + Url(request.
|
|
1334
|
+
var value = 'REQUEST: ' + Url(request.k3s_1).toString();
|
|
1335
1335
|
// Inline function 'kotlin.text.appendLine' call
|
|
1336
1336
|
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1337
1337
|
// Inline function 'kotlin.text.appendLine' call
|
|
1338
|
-
var value_0 = 'METHOD: ' + request.
|
|
1338
|
+
var value_0 = 'METHOD: ' + request.l3s_1.toString();
|
|
1339
1339
|
// Inline function 'kotlin.text.appendLine' call
|
|
1340
1340
|
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1341
1341
|
}
|
|
1342
|
-
if (level.
|
|
1342
|
+
if (level.q5c_1) {
|
|
1343
1343
|
// Inline function 'kotlin.text.appendLine' call
|
|
1344
1344
|
var value_1 = 'COMMON HEADERS';
|
|
1345
1345
|
// Inline function 'kotlin.text.appendLine' call
|
|
1346
1346
|
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1347
|
-
logHeaders(this_0, request.
|
|
1347
|
+
logHeaders(this_0, request.m3s_1.e2q(), sanitizedHeaders);
|
|
1348
1348
|
// Inline function 'kotlin.text.appendLine' call
|
|
1349
1349
|
var value_2 = 'CONTENT HEADERS';
|
|
1350
1350
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -1355,7 +1355,7 @@
|
|
|
1355
1355
|
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1356
1356
|
while (_iterator__ex2g4s.u()) {
|
|
1357
1357
|
var element = _iterator__ex2g4s.v();
|
|
1358
|
-
if (element.
|
|
1358
|
+
if (element.l5j_1('Content-Length')) {
|
|
1359
1359
|
tmp$ret$11 = element;
|
|
1360
1360
|
break $l$block;
|
|
1361
1361
|
}
|
|
@@ -1363,14 +1363,14 @@
|
|
|
1363
1363
|
tmp$ret$11 = null;
|
|
1364
1364
|
}
|
|
1365
1365
|
var tmp0_safe_receiver = tmp$ret$11;
|
|
1366
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1366
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k5j_1;
|
|
1367
1367
|
var tmp$ret$13;
|
|
1368
1368
|
$l$block_0: {
|
|
1369
1369
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1370
1370
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1371
1371
|
while (_iterator__ex2g4s_0.u()) {
|
|
1372
1372
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1373
|
-
if (element_0.
|
|
1373
|
+
if (element_0.l5j_1('Content-Type')) {
|
|
1374
1374
|
tmp$ret$13 = element_0;
|
|
1375
1375
|
break $l$block_0;
|
|
1376
1376
|
}
|
|
@@ -1378,65 +1378,65 @@
|
|
|
1378
1378
|
tmp$ret$13 = null;
|
|
1379
1379
|
}
|
|
1380
1380
|
var tmp1_safe_receiver = tmp$ret$13;
|
|
1381
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1382
|
-
var tmp2_safe_receiver = content.
|
|
1381
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k5j_1;
|
|
1382
|
+
var tmp2_safe_receiver = content.m38();
|
|
1383
1383
|
if (tmp2_safe_receiver == null)
|
|
1384
1384
|
null;
|
|
1385
1385
|
else {
|
|
1386
1386
|
// Inline function 'kotlin.let' call
|
|
1387
1387
|
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1388
1388
|
}
|
|
1389
|
-
var tmp3_safe_receiver = content.
|
|
1389
|
+
var tmp3_safe_receiver = content.k38();
|
|
1390
1390
|
if (tmp3_safe_receiver == null)
|
|
1391
1391
|
null;
|
|
1392
1392
|
else {
|
|
1393
1393
|
// Inline function 'kotlin.let' call
|
|
1394
1394
|
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1395
1395
|
}
|
|
1396
|
-
logHeaders(this_0, content.
|
|
1396
|
+
logHeaders(this_0, content.m32().e2q(), sanitizedHeaders);
|
|
1397
1397
|
}
|
|
1398
1398
|
var message = this_0.toString();
|
|
1399
1399
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1400
1400
|
if (charSequenceLength(message) > 0) {
|
|
1401
|
-
callLogger.
|
|
1401
|
+
callLogger.e5b(message);
|
|
1402
1402
|
}
|
|
1403
1403
|
var tmp_0;
|
|
1404
1404
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1405
1405
|
if (charSequenceLength(message) === 0) {
|
|
1406
1406
|
tmp_0 = true;
|
|
1407
1407
|
} else {
|
|
1408
|
-
tmp_0 = !level.
|
|
1408
|
+
tmp_0 = !level.r5c_1;
|
|
1409
1409
|
}
|
|
1410
1410
|
if (tmp_0) {
|
|
1411
|
-
callLogger.
|
|
1411
|
+
callLogger.i5b();
|
|
1412
1412
|
return null;
|
|
1413
1413
|
}
|
|
1414
1414
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1415
1415
|
}
|
|
1416
1416
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1417
|
-
if (!level.
|
|
1417
|
+
if (!level.p5c_1)
|
|
1418
1418
|
return Unit_instance;
|
|
1419
|
-
log.q('RESPONSE ' + request.
|
|
1419
|
+
log.q('RESPONSE ' + request.b3u().toString() + ' failed with exception: ' + cause.toString());
|
|
1420
1420
|
}
|
|
1421
1421
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1422
|
+
this.u5j_1 = $okHttpFormat;
|
|
1423
|
+
this.v5j_1 = $logger;
|
|
1424
|
+
this.w5j_1 = $filters;
|
|
1425
|
+
this.x5j_1 = $sanitizedHeaders;
|
|
1426
|
+
this.y5j_1 = $level;
|
|
1427
|
+
this.z5j_1 = $this_createClientPlugin;
|
|
1428
|
+
this.a5k_1 = $bodyFilter;
|
|
1429
1429
|
CoroutineImpl.call(this, resultContinuation);
|
|
1430
1430
|
}
|
|
1431
|
-
protoOf(Logging$lambda$slambda).
|
|
1432
|
-
var tmp = this.
|
|
1431
|
+
protoOf(Logging$lambda$slambda).j5k = function ($this$on, request, $completion) {
|
|
1432
|
+
var tmp = this.k5k($this$on, request, $completion);
|
|
1433
1433
|
tmp.f9_1 = Unit_instance;
|
|
1434
1434
|
tmp.g9_1 = null;
|
|
1435
1435
|
return tmp.l9();
|
|
1436
1436
|
};
|
|
1437
1437
|
protoOf(Logging$lambda$slambda).z9 = function (p1, p2, $completion) {
|
|
1438
1438
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1439
|
-
return this.
|
|
1439
|
+
return this.j5k(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1440
1440
|
};
|
|
1441
1441
|
protoOf(Logging$lambda$slambda).l9 = function () {
|
|
1442
1442
|
var suspendResult = this.f9_1;
|
|
@@ -1446,16 +1446,16 @@
|
|
|
1446
1446
|
switch (tmp) {
|
|
1447
1447
|
case 0:
|
|
1448
1448
|
this.e9_1 = 16;
|
|
1449
|
-
if (!invoke$shouldBeLogged(this.
|
|
1450
|
-
this.
|
|
1449
|
+
if (!invoke$shouldBeLogged(this.w5j_1, this.c5k_1)) {
|
|
1450
|
+
this.c5k_1.p3s_1.t2l(get_DisableLogging(), Unit_instance);
|
|
1451
1451
|
return Unit_instance;
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
|
-
if (this.
|
|
1454
|
+
if (this.u5j_1) {
|
|
1455
1455
|
var tmp_0 = this;
|
|
1456
|
-
tmp_0.
|
|
1456
|
+
tmp_0.f5k_1 = ArrayList_init_$Create$();
|
|
1457
1457
|
this.d9_1 = 10;
|
|
1458
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1458
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.x5j_1, this.y5j_1, this.z5j_1, this.a5k_1, this.c5k_1, this.f5k_1, this);
|
|
1459
1459
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1460
1460
|
return suspendResult;
|
|
1461
1461
|
}
|
|
@@ -1468,14 +1468,14 @@
|
|
|
1468
1468
|
case 1:
|
|
1469
1469
|
this.e9_1 = 3;
|
|
1470
1470
|
this.d9_1 = 2;
|
|
1471
|
-
suspendResult = invoke$logRequest(this.
|
|
1471
|
+
suspendResult = invoke$logRequest(this.v5j_1, this.y5j_1, this.x5j_1, this.c5k_1, this);
|
|
1472
1472
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1473
1473
|
return suspendResult;
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
1476
|
continue $sm;
|
|
1477
1477
|
case 2:
|
|
1478
|
-
this.
|
|
1478
|
+
this.i5k_1 = suspendResult;
|
|
1479
1479
|
this.e9_1 = 16;
|
|
1480
1480
|
this.d9_1 = 4;
|
|
1481
1481
|
continue $sm;
|
|
@@ -1485,7 +1485,7 @@
|
|
|
1485
1485
|
if (tmp_1 instanceof Error) {
|
|
1486
1486
|
var _unused_var__etf5q3 = this.g9_1;
|
|
1487
1487
|
var tmp_2 = this;
|
|
1488
|
-
tmp_2.
|
|
1488
|
+
tmp_2.i5k_1 = null;
|
|
1489
1489
|
this.d9_1 = 4;
|
|
1490
1490
|
continue $sm;
|
|
1491
1491
|
} else {
|
|
@@ -1494,23 +1494,23 @@
|
|
|
1494
1494
|
|
|
1495
1495
|
case 4:
|
|
1496
1496
|
this.e9_1 = 16;
|
|
1497
|
-
this.
|
|
1498
|
-
this.
|
|
1497
|
+
this.h5k_1 = this.i5k_1;
|
|
1498
|
+
this.g5k_1 = Unit_instance;
|
|
1499
1499
|
this.d9_1 = 5;
|
|
1500
1500
|
continue $sm;
|
|
1501
1501
|
case 5:
|
|
1502
1502
|
this.e9_1 = 8;
|
|
1503
1503
|
this.e9_1 = 7;
|
|
1504
1504
|
this.d9_1 = 6;
|
|
1505
|
-
var tmp0_elvis_lhs = this.
|
|
1506
|
-
suspendResult = this.
|
|
1505
|
+
var tmp0_elvis_lhs = this.h5k_1;
|
|
1506
|
+
suspendResult = this.b5k_1.i5d(tmp0_elvis_lhs == null ? this.c5k_1.n3s_1 : tmp0_elvis_lhs, this);
|
|
1507
1507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1508
1508
|
return suspendResult;
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
continue $sm;
|
|
1512
1512
|
case 6:
|
|
1513
|
-
this.
|
|
1513
|
+
this.g5k_1 = suspendResult;
|
|
1514
1514
|
this.e9_1 = 16;
|
|
1515
1515
|
this.d9_1 = 9;
|
|
1516
1516
|
continue $sm;
|
|
@@ -1520,7 +1520,7 @@
|
|
|
1520
1520
|
if (tmp_3 instanceof Error) {
|
|
1521
1521
|
var cause = this.g9_1;
|
|
1522
1522
|
var tmp_4 = this;
|
|
1523
|
-
invoke$logRequestException(this.
|
|
1523
|
+
invoke$logRequestException(this.y5j_1, this.v5j_1, this.c5k_1, cause);
|
|
1524
1524
|
throw cause;
|
|
1525
1525
|
} else {
|
|
1526
1526
|
throw this.g9_1;
|
|
@@ -1531,26 +1531,26 @@
|
|
|
1531
1531
|
var t = this.g9_1;
|
|
1532
1532
|
throw t;
|
|
1533
1533
|
case 9:
|
|
1534
|
-
this.
|
|
1534
|
+
this.g5k_1;
|
|
1535
1535
|
this.e9_1 = 16;
|
|
1536
1536
|
return Unit_instance;
|
|
1537
1537
|
case 10:
|
|
1538
1538
|
var content = suspendResult;
|
|
1539
|
-
if (this.
|
|
1540
|
-
this.
|
|
1539
|
+
if (this.f5k_1.l1() > 0) {
|
|
1540
|
+
this.v5j_1.k5a(joinToString(this.f5k_1, '\n'));
|
|
1541
1541
|
}
|
|
1542
1542
|
|
|
1543
1543
|
this.e9_1 = 14;
|
|
1544
1544
|
if (!(content == null)) {
|
|
1545
1545
|
this.d9_1 = 12;
|
|
1546
|
-
suspendResult = this.
|
|
1546
|
+
suspendResult = this.b5k_1.i5d(content, this);
|
|
1547
1547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1548
1548
|
return suspendResult;
|
|
1549
1549
|
}
|
|
1550
1550
|
continue $sm;
|
|
1551
1551
|
} else {
|
|
1552
1552
|
this.d9_1 = 11;
|
|
1553
|
-
suspendResult = this.
|
|
1553
|
+
suspendResult = this.b5k_1.j5d(this);
|
|
1554
1554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1555
1555
|
return suspendResult;
|
|
1556
1556
|
}
|
|
@@ -1558,15 +1558,15 @@
|
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
1560
|
case 11:
|
|
1561
|
-
this.
|
|
1561
|
+
this.e5k_1 = suspendResult;
|
|
1562
1562
|
this.d9_1 = 13;
|
|
1563
1563
|
continue $sm;
|
|
1564
1564
|
case 12:
|
|
1565
|
-
this.
|
|
1565
|
+
this.e5k_1 = suspendResult;
|
|
1566
1566
|
this.d9_1 = 13;
|
|
1567
1567
|
continue $sm;
|
|
1568
1568
|
case 13:
|
|
1569
|
-
this.
|
|
1569
|
+
this.d5k_1 = this.e5k_1;
|
|
1570
1570
|
this.e9_1 = 16;
|
|
1571
1571
|
this.d9_1 = 15;
|
|
1572
1572
|
continue $sm;
|
|
@@ -1576,7 +1576,7 @@
|
|
|
1576
1576
|
if (tmp_5 instanceof Error) {
|
|
1577
1577
|
var cause_0 = this.g9_1;
|
|
1578
1578
|
var tmp_6 = this;
|
|
1579
|
-
this.
|
|
1579
|
+
this.v5j_1.k5a('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1580
1580
|
throw cause_0;
|
|
1581
1581
|
} else {
|
|
1582
1582
|
throw this.g9_1;
|
|
@@ -1599,35 +1599,35 @@
|
|
|
1599
1599
|
}
|
|
1600
1600
|
while (true);
|
|
1601
1601
|
};
|
|
1602
|
-
protoOf(Logging$lambda$slambda).
|
|
1603
|
-
var i = new Logging$lambda$slambda(this.
|
|
1604
|
-
i.
|
|
1605
|
-
i.
|
|
1602
|
+
protoOf(Logging$lambda$slambda).k5k = function ($this$on, request, completion) {
|
|
1603
|
+
var i = new Logging$lambda$slambda(this.u5j_1, this.v5j_1, this.w5j_1, this.x5j_1, this.y5j_1, this.z5j_1, this.a5k_1, completion);
|
|
1604
|
+
i.b5k_1 = $this$on;
|
|
1605
|
+
i.c5k_1 = request;
|
|
1606
1606
|
return i;
|
|
1607
1607
|
};
|
|
1608
1608
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1609
1609
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1610
1610
|
return constructCallableReference(function ($this$on, request, $completion) {
|
|
1611
|
-
return i.
|
|
1611
|
+
return i.j5k($this$on, request, $completion);
|
|
1612
1612
|
}, 2);
|
|
1613
1613
|
}
|
|
1614
1614
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1615
|
+
this.t5k_1 = $okHttpFormat;
|
|
1616
|
+
this.u5k_1 = $logger;
|
|
1617
|
+
this.v5k_1 = $sanitizedHeaders;
|
|
1618
|
+
this.w5k_1 = $level;
|
|
1619
|
+
this.x5k_1 = $bodyFilter;
|
|
1620
1620
|
CoroutineImpl.call(this, resultContinuation);
|
|
1621
1621
|
}
|
|
1622
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1623
|
-
var tmp = this.
|
|
1622
|
+
protoOf(Logging$lambda$slambda_1).b5l = function ($this$on, response, $completion) {
|
|
1623
|
+
var tmp = this.c5l($this$on, response, $completion);
|
|
1624
1624
|
tmp.f9_1 = Unit_instance;
|
|
1625
1625
|
tmp.g9_1 = null;
|
|
1626
1626
|
return tmp.l9();
|
|
1627
1627
|
};
|
|
1628
1628
|
protoOf(Logging$lambda$slambda_1).z9 = function (p1, p2, $completion) {
|
|
1629
1629
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1630
|
-
return this.
|
|
1630
|
+
return this.b5l(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1631
1631
|
};
|
|
1632
1632
|
protoOf(Logging$lambda$slambda_1).l9 = function () {
|
|
1633
1633
|
var suspendResult = this.f9_1;
|
|
@@ -1637,11 +1637,11 @@
|
|
|
1637
1637
|
switch (tmp) {
|
|
1638
1638
|
case 0:
|
|
1639
1639
|
this.e9_1 = 5;
|
|
1640
|
-
if (this.
|
|
1640
|
+
if (this.t5k_1) {
|
|
1641
1641
|
var tmp_0 = this;
|
|
1642
|
-
tmp_0.
|
|
1642
|
+
tmp_0.a5l_1 = ArrayList_init_$Create$();
|
|
1643
1643
|
this.d9_1 = 1;
|
|
1644
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1644
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.v5k_1, this.w5k_1, this.x5k_1, this.z5k_1, this.a5l_1, this);
|
|
1645
1645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1646
1646
|
return suspendResult;
|
|
1647
1647
|
}
|
|
@@ -1653,13 +1653,13 @@
|
|
|
1653
1653
|
|
|
1654
1654
|
case 1:
|
|
1655
1655
|
var newResponse = suspendResult;
|
|
1656
|
-
if (this.
|
|
1657
|
-
this.
|
|
1656
|
+
if (this.a5l_1.l1() > 0) {
|
|
1657
|
+
this.u5k_1.k5a(joinToString(this.a5l_1, '\n'));
|
|
1658
1658
|
}
|
|
1659
1659
|
|
|
1660
|
-
if (!equals(newResponse, this.
|
|
1660
|
+
if (!equals(newResponse, this.z5k_1)) {
|
|
1661
1661
|
this.d9_1 = 2;
|
|
1662
|
-
suspendResult = this.
|
|
1662
|
+
suspendResult = this.y5k_1.r4o(newResponse, this);
|
|
1663
1663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1664
1664
|
return suspendResult;
|
|
1665
1665
|
}
|
|
@@ -1691,33 +1691,33 @@
|
|
|
1691
1691
|
}
|
|
1692
1692
|
while (true);
|
|
1693
1693
|
};
|
|
1694
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1695
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1696
|
-
i.
|
|
1697
|
-
i.
|
|
1694
|
+
protoOf(Logging$lambda$slambda_1).c5l = function ($this$on, response, completion) {
|
|
1695
|
+
var i = new Logging$lambda$slambda_1(this.t5k_1, this.u5k_1, this.v5k_1, this.w5k_1, this.x5k_1, completion);
|
|
1696
|
+
i.y5k_1 = $this$on;
|
|
1697
|
+
i.z5k_1 = response;
|
|
1698
1698
|
return i;
|
|
1699
1699
|
};
|
|
1700
1700
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1701
1701
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1702
1702
|
return constructCallableReference(function ($this$on, response, $completion) {
|
|
1703
|
-
return i.
|
|
1703
|
+
return i.b5l($this$on, response, $completion);
|
|
1704
1704
|
}, 2);
|
|
1705
1705
|
}
|
|
1706
1706
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1707
|
-
this.
|
|
1708
|
-
this.
|
|
1709
|
-
this.
|
|
1707
|
+
this.l5l_1 = $okHttpFormat;
|
|
1708
|
+
this.m5l_1 = $level;
|
|
1709
|
+
this.n5l_1 = $sanitizedHeaders;
|
|
1710
1710
|
CoroutineImpl.call(this, resultContinuation);
|
|
1711
1711
|
}
|
|
1712
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1713
|
-
var tmp = this.
|
|
1712
|
+
protoOf(Logging$lambda$slambda_3).w5l = function ($this$on, response, $completion) {
|
|
1713
|
+
var tmp = this.x5l($this$on, response, $completion);
|
|
1714
1714
|
tmp.f9_1 = Unit_instance;
|
|
1715
1715
|
tmp.g9_1 = null;
|
|
1716
1716
|
return tmp.l9();
|
|
1717
1717
|
};
|
|
1718
1718
|
protoOf(Logging$lambda$slambda_3).z9 = function (p1, p2, $completion) {
|
|
1719
1719
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1720
|
-
return this.
|
|
1720
|
+
return this.w5l(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1721
1721
|
};
|
|
1722
1722
|
protoOf(Logging$lambda$slambda_3).l9 = function () {
|
|
1723
1723
|
var suspendResult = this.f9_1;
|
|
@@ -1727,28 +1727,28 @@
|
|
|
1727
1727
|
switch (tmp) {
|
|
1728
1728
|
case 0:
|
|
1729
1729
|
this.e9_1 = 14;
|
|
1730
|
-
if (this.
|
|
1730
|
+
if (this.l5l_1)
|
|
1731
1731
|
return Unit_instance;
|
|
1732
|
-
if (this.
|
|
1732
|
+
if (this.m5l_1.equals(LogLevel_NONE_getInstance()) || this.p5l_1.z3t().t3t().s2l(get_DisableLogging()))
|
|
1733
1733
|
return Unit_instance;
|
|
1734
|
-
this.
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1734
|
+
this.r5l_1 = this.p5l_1.z3t().t3t().q2l(get_ClientCallLogger());
|
|
1735
|
+
this.t5l_1 = StringBuilder_init_$Create$();
|
|
1736
|
+
this.s5l_1 = false;
|
|
1737
1737
|
this.d9_1 = 1;
|
|
1738
1738
|
continue $sm;
|
|
1739
1739
|
case 1:
|
|
1740
1740
|
this.e9_1 = 4;
|
|
1741
1741
|
this.e9_1 = 3;
|
|
1742
|
-
logResponseHeader(this.
|
|
1742
|
+
logResponseHeader(this.t5l_1, this.p5l_1.z3t().k3r(), this.m5l_1, this.n5l_1);
|
|
1743
1743
|
this.d9_1 = 2;
|
|
1744
|
-
suspendResult = this.
|
|
1744
|
+
suspendResult = this.o5l_1.k5e(this);
|
|
1745
1745
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1746
1746
|
return suspendResult;
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
1749
|
continue $sm;
|
|
1750
1750
|
case 2:
|
|
1751
|
-
this.
|
|
1751
|
+
this.u5l_1 = suspendResult;
|
|
1752
1752
|
this.e9_1 = 14;
|
|
1753
1753
|
this.d9_1 = 9;
|
|
1754
1754
|
continue $sm;
|
|
@@ -1758,8 +1758,8 @@
|
|
|
1758
1758
|
if (tmp_0 instanceof Error) {
|
|
1759
1759
|
var cause = this.g9_1;
|
|
1760
1760
|
var tmp_1 = this;
|
|
1761
|
-
invoke$logResponseException(this.
|
|
1762
|
-
this.
|
|
1761
|
+
invoke$logResponseException(this.m5l_1, this.t5l_1, this.p5l_1.z3t().s3t(), cause);
|
|
1762
|
+
this.s5l_1 = true;
|
|
1763
1763
|
throw cause;
|
|
1764
1764
|
} else {
|
|
1765
1765
|
throw this.g9_1;
|
|
@@ -1767,19 +1767,19 @@
|
|
|
1767
1767
|
|
|
1768
1768
|
case 4:
|
|
1769
1769
|
this.e9_1 = 14;
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
if (this.
|
|
1770
|
+
this.v5l_1 = this.g9_1;
|
|
1771
|
+
this.r5l_1.f5b(this.t5l_1.toString());
|
|
1772
|
+
if (this.s5l_1 || !this.m5l_1.r5c_1) {
|
|
1773
1773
|
this.d9_1 = 7;
|
|
1774
|
-
suspendResult = this.
|
|
1774
|
+
suspendResult = this.r5l_1.j5b(this);
|
|
1775
1775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1776
1776
|
return suspendResult;
|
|
1777
1777
|
}
|
|
1778
1778
|
continue $sm;
|
|
1779
1779
|
} else {
|
|
1780
|
-
if (this.
|
|
1780
|
+
if (this.m5l_1.r5c_1 && get_isSaved(this.p5l_1)) {
|
|
1781
1781
|
this.d9_1 = 5;
|
|
1782
|
-
suspendResult = logResponseBody(this.
|
|
1782
|
+
suspendResult = logResponseBody(this.r5l_1, this.p5l_1, this);
|
|
1783
1783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1784
1784
|
return suspendResult;
|
|
1785
1785
|
}
|
|
@@ -1792,7 +1792,7 @@
|
|
|
1792
1792
|
|
|
1793
1793
|
case 5:
|
|
1794
1794
|
this.d9_1 = 6;
|
|
1795
|
-
suspendResult = this.
|
|
1795
|
+
suspendResult = this.r5l_1.j5b(this);
|
|
1796
1796
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1797
1797
|
return suspendResult;
|
|
1798
1798
|
}
|
|
@@ -1805,22 +1805,22 @@
|
|
|
1805
1805
|
this.d9_1 = 8;
|
|
1806
1806
|
continue $sm;
|
|
1807
1807
|
case 8:
|
|
1808
|
-
throw this.
|
|
1808
|
+
throw this.v5l_1;
|
|
1809
1809
|
case 9:
|
|
1810
|
-
this.
|
|
1810
|
+
this.q5l_1 = this.u5l_1;
|
|
1811
1811
|
this.e9_1 = 14;
|
|
1812
|
-
this.
|
|
1813
|
-
if (this.
|
|
1812
|
+
this.r5l_1.f5b(this.t5l_1.toString());
|
|
1813
|
+
if (this.s5l_1 || !this.m5l_1.r5c_1) {
|
|
1814
1814
|
this.d9_1 = 12;
|
|
1815
|
-
suspendResult = this.
|
|
1815
|
+
suspendResult = this.r5l_1.j5b(this);
|
|
1816
1816
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1817
1817
|
return suspendResult;
|
|
1818
1818
|
}
|
|
1819
1819
|
continue $sm;
|
|
1820
1820
|
} else {
|
|
1821
|
-
if (this.
|
|
1821
|
+
if (this.m5l_1.r5c_1 && get_isSaved(this.p5l_1)) {
|
|
1822
1822
|
this.d9_1 = 10;
|
|
1823
|
-
suspendResult = logResponseBody(this.
|
|
1823
|
+
suspendResult = logResponseBody(this.r5l_1, this.p5l_1, this);
|
|
1824
1824
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1825
1825
|
return suspendResult;
|
|
1826
1826
|
}
|
|
@@ -1833,7 +1833,7 @@
|
|
|
1833
1833
|
|
|
1834
1834
|
case 10:
|
|
1835
1835
|
this.d9_1 = 11;
|
|
1836
|
-
suspendResult = this.
|
|
1836
|
+
suspendResult = this.r5l_1.j5b(this);
|
|
1837
1837
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1838
1838
|
return suspendResult;
|
|
1839
1839
|
}
|
|
@@ -1861,33 +1861,33 @@
|
|
|
1861
1861
|
}
|
|
1862
1862
|
while (true);
|
|
1863
1863
|
};
|
|
1864
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1865
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1866
|
-
i.
|
|
1867
|
-
i.
|
|
1864
|
+
protoOf(Logging$lambda$slambda_3).x5l = function ($this$on, response, completion) {
|
|
1865
|
+
var i = new Logging$lambda$slambda_3(this.l5l_1, this.m5l_1, this.n5l_1, completion);
|
|
1866
|
+
i.o5l_1 = $this$on;
|
|
1867
|
+
i.p5l_1 = response;
|
|
1868
1868
|
return i;
|
|
1869
1869
|
};
|
|
1870
1870
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1871
1871
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1872
1872
|
return constructCallableReference(function ($this$on, response, $completion) {
|
|
1873
|
-
return i.
|
|
1873
|
+
return i.w5l($this$on, response, $completion);
|
|
1874
1874
|
}, 2);
|
|
1875
1875
|
}
|
|
1876
1876
|
function Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation) {
|
|
1877
|
-
this.
|
|
1878
|
-
this.
|
|
1879
|
-
this.
|
|
1877
|
+
this.g5m_1 = $okHttpFormat;
|
|
1878
|
+
this.h5m_1 = $level;
|
|
1879
|
+
this.i5m_1 = $logger;
|
|
1880
1880
|
CoroutineImpl.call(this, resultContinuation);
|
|
1881
1881
|
}
|
|
1882
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1883
|
-
var tmp = this.
|
|
1882
|
+
protoOf(Logging$lambda$slambda_5).o5m = function ($this$on, call, $completion) {
|
|
1883
|
+
var tmp = this.p5m($this$on, call, $completion);
|
|
1884
1884
|
tmp.f9_1 = Unit_instance;
|
|
1885
1885
|
tmp.g9_1 = null;
|
|
1886
1886
|
return tmp.l9();
|
|
1887
1887
|
};
|
|
1888
1888
|
protoOf(Logging$lambda$slambda_5).z9 = function (p1, p2, $completion) {
|
|
1889
1889
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1890
|
-
return this.
|
|
1890
|
+
return this.o5m(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1891
1891
|
};
|
|
1892
1892
|
protoOf(Logging$lambda$slambda_5).l9 = function () {
|
|
1893
1893
|
var suspendResult = this.f9_1;
|
|
@@ -1897,22 +1897,22 @@
|
|
|
1897
1897
|
switch (tmp) {
|
|
1898
1898
|
case 0:
|
|
1899
1899
|
this.e9_1 = 6;
|
|
1900
|
-
if (this.
|
|
1900
|
+
if (this.g5m_1)
|
|
1901
1901
|
return Unit_instance;
|
|
1902
|
-
if (this.
|
|
1902
|
+
if (this.h5m_1.equals(LogLevel_NONE_getInstance()) || this.k5m_1.t3t().s2l(get_DisableLogging())) {
|
|
1903
1903
|
return Unit_instance;
|
|
1904
1904
|
}
|
|
1905
1905
|
|
|
1906
1906
|
this.e9_1 = 2;
|
|
1907
1907
|
this.d9_1 = 1;
|
|
1908
|
-
suspendResult = this.
|
|
1908
|
+
suspendResult = this.j5m_1.y5e(this);
|
|
1909
1909
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1910
1910
|
return suspendResult;
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
1913
|
continue $sm;
|
|
1914
1914
|
case 1:
|
|
1915
|
-
this.
|
|
1915
|
+
this.l5m_1 = suspendResult;
|
|
1916
1916
|
this.e9_1 = 6;
|
|
1917
1917
|
this.d9_1 = 5;
|
|
1918
1918
|
continue $sm;
|
|
@@ -1920,22 +1920,22 @@
|
|
|
1920
1920
|
this.e9_1 = 6;
|
|
1921
1921
|
var tmp_0 = this.g9_1;
|
|
1922
1922
|
if (tmp_0 instanceof Error) {
|
|
1923
|
-
this.
|
|
1923
|
+
this.m5m_1 = this.g9_1;
|
|
1924
1924
|
var log = StringBuilder_init_$Create$();
|
|
1925
1925
|
var tmp_1 = this;
|
|
1926
|
-
var tmp0_elvis_lhs = this.
|
|
1926
|
+
var tmp0_elvis_lhs = this.k5m_1.t3t().r2l(get_ClientCallLogger());
|
|
1927
1927
|
var tmp_2;
|
|
1928
1928
|
if (tmp0_elvis_lhs == null) {
|
|
1929
|
-
var this_0 = new HttpClientCallLogger(this.
|
|
1930
|
-
this_0.
|
|
1929
|
+
var this_0 = new HttpClientCallLogger(this.i5m_1);
|
|
1930
|
+
this_0.i5b();
|
|
1931
1931
|
tmp_2 = this_0;
|
|
1932
1932
|
} else {
|
|
1933
1933
|
tmp_2 = tmp0_elvis_lhs;
|
|
1934
1934
|
}
|
|
1935
|
-
tmp_1.
|
|
1936
|
-
invoke$logResponseException(this.
|
|
1935
|
+
tmp_1.n5m_1 = tmp_2;
|
|
1936
|
+
invoke$logResponseException(this.h5m_1, log, this.k5m_1.s3t(), this.m5m_1);
|
|
1937
1937
|
this.d9_1 = 3;
|
|
1938
|
-
suspendResult = this.
|
|
1938
|
+
suspendResult = this.n5m_1.g5b(log.toString(), this);
|
|
1939
1939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1940
1940
|
return suspendResult;
|
|
1941
1941
|
}
|
|
@@ -1946,7 +1946,7 @@
|
|
|
1946
1946
|
|
|
1947
1947
|
case 3:
|
|
1948
1948
|
this.d9_1 = 4;
|
|
1949
|
-
suspendResult = this.
|
|
1949
|
+
suspendResult = this.n5m_1.j5b(this);
|
|
1950
1950
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1951
1951
|
return suspendResult;
|
|
1952
1952
|
}
|
|
@@ -1954,7 +1954,7 @@
|
|
|
1954
1954
|
continue $sm;
|
|
1955
1955
|
case 4:
|
|
1956
1956
|
var tmp_3 = this;
|
|
1957
|
-
throw this.
|
|
1957
|
+
throw this.m5m_1;
|
|
1958
1958
|
case 5:
|
|
1959
1959
|
this.e9_1 = 6;
|
|
1960
1960
|
return Unit_instance;
|
|
@@ -1972,34 +1972,34 @@
|
|
|
1972
1972
|
}
|
|
1973
1973
|
while (true);
|
|
1974
1974
|
};
|
|
1975
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1976
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1977
|
-
i.
|
|
1978
|
-
i.
|
|
1975
|
+
protoOf(Logging$lambda$slambda_5).p5m = function ($this$on, call, completion) {
|
|
1976
|
+
var i = new Logging$lambda$slambda_5(this.g5m_1, this.h5m_1, this.i5m_1, completion);
|
|
1977
|
+
i.j5m_1 = $this$on;
|
|
1978
|
+
i.k5m_1 = call;
|
|
1979
1979
|
return i;
|
|
1980
1980
|
};
|
|
1981
1981
|
function Logging$lambda$slambda_6($okHttpFormat, $level, $logger, resultContinuation) {
|
|
1982
1982
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, $logger, resultContinuation);
|
|
1983
1983
|
return constructCallableReference(function ($this$on, call, $completion) {
|
|
1984
|
-
return i.
|
|
1984
|
+
return i.o5m($this$on, call, $completion);
|
|
1985
1985
|
}, 2);
|
|
1986
1986
|
}
|
|
1987
1987
|
function Logging$lambda$lambda$lambda(it) {
|
|
1988
1988
|
_init_properties_Logging_kt__66pui5();
|
|
1989
|
-
return !get_isSaved(it.
|
|
1989
|
+
return !get_isSaved(it.k3r());
|
|
1990
1990
|
}
|
|
1991
1991
|
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1992
|
-
this.
|
|
1992
|
+
this.y5m_1 = $level;
|
|
1993
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
1994
1994
|
}
|
|
1995
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
1996
|
-
var tmp = this.
|
|
1995
|
+
protoOf(Logging$lambda$lambda$slambda).x42 = function (response, $completion) {
|
|
1996
|
+
var tmp = this.k41(response, $completion);
|
|
1997
1997
|
tmp.f9_1 = Unit_instance;
|
|
1998
1998
|
tmp.g9_1 = null;
|
|
1999
1999
|
return tmp.l9();
|
|
2000
2000
|
};
|
|
2001
2001
|
protoOf(Logging$lambda$lambda$slambda).y9 = function (p1, $completion) {
|
|
2002
|
-
return this.
|
|
2002
|
+
return this.x42(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2003
2003
|
};
|
|
2004
2004
|
protoOf(Logging$lambda$lambda$slambda).l9 = function () {
|
|
2005
2005
|
var suspendResult = this.f9_1;
|
|
@@ -2009,11 +2009,11 @@
|
|
|
2009
2009
|
switch (tmp) {
|
|
2010
2010
|
case 0:
|
|
2011
2011
|
this.e9_1 = 3;
|
|
2012
|
-
if (this.
|
|
2012
|
+
if (this.y5m_1.equals(LogLevel_NONE_getInstance()) || this.z5m_1.z3t().t3t().s2l(get_DisableLogging()))
|
|
2013
2013
|
return Unit_instance;
|
|
2014
|
-
this.
|
|
2014
|
+
this.a5n_1 = this.z5m_1.z3t().t3t().q2l(get_ClientCallLogger());
|
|
2015
2015
|
this.d9_1 = 1;
|
|
2016
|
-
suspendResult = logResponseBody(this.
|
|
2016
|
+
suspendResult = logResponseBody(this.a5n_1, this.z5m_1, this);
|
|
2017
2017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2018
2018
|
return suspendResult;
|
|
2019
2019
|
}
|
|
@@ -2021,7 +2021,7 @@
|
|
|
2021
2021
|
continue $sm;
|
|
2022
2022
|
case 1:
|
|
2023
2023
|
this.d9_1 = 2;
|
|
2024
|
-
suspendResult = this.
|
|
2024
|
+
suspendResult = this.a5n_1.j5b(this);
|
|
2025
2025
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2026
2026
|
return suspendResult;
|
|
2027
2027
|
}
|
|
@@ -2043,34 +2043,34 @@
|
|
|
2043
2043
|
}
|
|
2044
2044
|
while (true);
|
|
2045
2045
|
};
|
|
2046
|
-
protoOf(Logging$lambda$lambda$slambda).
|
|
2047
|
-
var i = new Logging$lambda$lambda$slambda(this.
|
|
2048
|
-
i.
|
|
2046
|
+
protoOf(Logging$lambda$lambda$slambda).k41 = function (response, completion) {
|
|
2047
|
+
var i = new Logging$lambda$lambda$slambda(this.y5m_1, completion);
|
|
2048
|
+
i.z5m_1 = response;
|
|
2049
2049
|
return i;
|
|
2050
2050
|
};
|
|
2051
2051
|
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2052
2052
|
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2053
2053
|
return constructCallableReference(function (response, $completion) {
|
|
2054
|
-
return i.
|
|
2054
|
+
return i.x42(response, $completion);
|
|
2055
2055
|
}, 1);
|
|
2056
2056
|
}
|
|
2057
2057
|
function Logging$lambda$lambda($level) {
|
|
2058
2058
|
return function ($this$prepare) {
|
|
2059
|
-
$this$prepare.
|
|
2060
|
-
$this$prepare.
|
|
2059
|
+
$this$prepare.p4o(Logging$lambda$lambda$lambda);
|
|
2060
|
+
$this$prepare.o4o(Logging$lambda$lambda$slambda_0($level, null));
|
|
2061
2061
|
return Unit_instance;
|
|
2062
2062
|
};
|
|
2063
2063
|
}
|
|
2064
2064
|
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2065
2065
|
CoroutineImpl.call(this, resultContinuation);
|
|
2066
|
-
this.
|
|
2067
|
-
this.
|
|
2068
|
-
this.
|
|
2069
|
-
this.
|
|
2070
|
-
this.
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2066
|
+
this.u5g_1 = bodyFilter;
|
|
2067
|
+
this.v5g_1 = url;
|
|
2068
|
+
this.w5g_1 = content;
|
|
2069
|
+
this.x5g_1 = contentLength;
|
|
2070
|
+
this.y5g_1 = headers;
|
|
2071
|
+
this.z5g_1 = method;
|
|
2072
|
+
this.a5h_1 = logLines;
|
|
2073
|
+
this.b5h_1 = body;
|
|
2074
2074
|
}
|
|
2075
2075
|
protoOf($invoke$logRequestBodyCOROUTINE$).l9 = function () {
|
|
2076
2076
|
var suspendResult = this.f9_1;
|
|
@@ -2081,7 +2081,7 @@
|
|
|
2081
2081
|
case 0:
|
|
2082
2082
|
this.e9_1 = 2;
|
|
2083
2083
|
this.d9_1 = 1;
|
|
2084
|
-
suspendResult = this.
|
|
2084
|
+
suspendResult = this.u5g_1.k5b(this.v5g_1, this.x5g_1, this.w5g_1.k38(), this.y5g_1, this.b5h_1, this);
|
|
2085
2085
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2086
2086
|
return suspendResult;
|
|
2087
2087
|
}
|
|
@@ -2090,29 +2090,29 @@
|
|
|
2090
2090
|
case 1:
|
|
2091
2091
|
var filteredBody = suspendResult;
|
|
2092
2092
|
if (filteredBody instanceof Empty) {
|
|
2093
|
-
this.
|
|
2093
|
+
this.a5h_1.j1('--> END ' + this.z5g_1.x32_1 + ' (0-byte body)');
|
|
2094
2094
|
} else {
|
|
2095
2095
|
if (filteredBody instanceof Skip) {
|
|
2096
2096
|
var this_0 = StringBuilder_init_$Create$();
|
|
2097
|
-
this_0.q('--> END ' + this.
|
|
2098
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2097
|
+
this_0.q('--> END ' + this.z5g_1.x32_1 + ' (');
|
|
2098
|
+
var tmp0_safe_receiver = filteredBody.o5b_1;
|
|
2099
2099
|
if (tmp0_safe_receiver == null)
|
|
2100
2100
|
null;
|
|
2101
2101
|
else {
|
|
2102
2102
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2103
2103
|
}
|
|
2104
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2104
|
+
var tmp1_safe_receiver = filteredBody.p5b_1;
|
|
2105
2105
|
if (tmp1_safe_receiver == null)
|
|
2106
2106
|
null;
|
|
2107
2107
|
else {
|
|
2108
2108
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2109
2109
|
}
|
|
2110
2110
|
this_0.q('body omitted)');
|
|
2111
|
-
this.
|
|
2111
|
+
this.a5h_1.j1(this_0.toString());
|
|
2112
2112
|
} else {
|
|
2113
2113
|
if (isInterface(filteredBody, Content)) {
|
|
2114
|
-
this.
|
|
2115
|
-
this.
|
|
2114
|
+
this.a5h_1.j1(filteredBody.q5b());
|
|
2115
|
+
this.a5h_1.j1('--> END ' + this.z5g_1.x32_1 + ' (' + toString_0(filteredBody.n5b()) + '-byte body)');
|
|
2116
2116
|
} else {
|
|
2117
2117
|
noWhenBranchMatchedException();
|
|
2118
2118
|
}
|
|
@@ -2136,14 +2136,14 @@
|
|
|
2136
2136
|
};
|
|
2137
2137
|
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2138
2138
|
CoroutineImpl.call(this, resultContinuation);
|
|
2139
|
-
this.
|
|
2140
|
-
this.
|
|
2141
|
-
this.
|
|
2142
|
-
this.
|
|
2143
|
-
this.
|
|
2144
|
-
this.
|
|
2145
|
-
this.
|
|
2146
|
-
this.
|
|
2139
|
+
this.k5h_1 = $this_createClientPlugin;
|
|
2140
|
+
this.l5h_1 = bodyFilter;
|
|
2141
|
+
this.m5h_1 = url;
|
|
2142
|
+
this.n5h_1 = content;
|
|
2143
|
+
this.o5h_1 = method;
|
|
2144
|
+
this.p5h_1 = headers;
|
|
2145
|
+
this.q5h_1 = logLines;
|
|
2146
|
+
this.r5h_1 = process;
|
|
2147
2147
|
}
|
|
2148
2148
|
protoOf($invoke$logOutgoingContentCOROUTINE$).l9 = function () {
|
|
2149
2149
|
var suspendResult = this.f9_1;
|
|
@@ -2153,10 +2153,10 @@
|
|
|
2153
2153
|
switch (tmp) {
|
|
2154
2154
|
case 0:
|
|
2155
2155
|
this.e9_1 = 7;
|
|
2156
|
-
var tmp0_subject = this.
|
|
2156
|
+
var tmp0_subject = this.n5h_1;
|
|
2157
2157
|
if (tmp0_subject instanceof ObservableContent) {
|
|
2158
2158
|
this.d9_1 = 5;
|
|
2159
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2159
|
+
suspendResult = invoke$logOutgoingContent(this.k5h_1, this.l5h_1, this.m5h_1, this.n5h_1.k3w_1, this.o5h_1, this.p5h_1, this.q5h_1, this.r5h_1, this);
|
|
2160
2160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2161
2161
|
return suspendResult;
|
|
2162
2162
|
}
|
|
@@ -2164,41 +2164,41 @@
|
|
|
2164
2164
|
} else {
|
|
2165
2165
|
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2166
2166
|
var tmp_0 = this;
|
|
2167
|
-
var _iterator__ex2g4s = this.
|
|
2167
|
+
var _iterator__ex2g4s = this.n5h_1.c5n_1.t();
|
|
2168
2168
|
while (_iterator__ex2g4s.u()) {
|
|
2169
2169
|
var part = _iterator__ex2g4s.v();
|
|
2170
|
-
this.
|
|
2171
|
-
var _iterator__ex2g4s_0 = part.
|
|
2170
|
+
this.q5h_1.j1('--' + this.n5h_1.d5n_1);
|
|
2171
|
+
var _iterator__ex2g4s_0 = part.e5n_1.e2q().t();
|
|
2172
2172
|
while (_iterator__ex2g4s_0.u()) {
|
|
2173
2173
|
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2174
2174
|
var key = _destruct__k2r9zo.r1();
|
|
2175
2175
|
var values = _destruct__k2r9zo.s1();
|
|
2176
|
-
this.
|
|
2176
|
+
this.q5h_1.j1(key + ': ' + joinToString(values, '; '));
|
|
2177
2177
|
}
|
|
2178
2178
|
if (part instanceof FormItem) {
|
|
2179
|
-
this.
|
|
2180
|
-
this.
|
|
2181
|
-
this.
|
|
2179
|
+
this.q5h_1.j1('Content-Length: ' + part.g5n_1.length);
|
|
2180
|
+
this.q5h_1.j1('');
|
|
2181
|
+
this.q5h_1.j1(part.g5n_1);
|
|
2182
2182
|
} else {
|
|
2183
|
-
this.
|
|
2184
|
-
var contentLength = part.
|
|
2183
|
+
this.q5h_1.j1('');
|
|
2184
|
+
var contentLength = part.e5n_1.n2p('Content-Length');
|
|
2185
2185
|
if (!(contentLength == null)) {
|
|
2186
|
-
this.
|
|
2186
|
+
this.q5h_1.j1('binary ' + contentLength + '-byte body omitted');
|
|
2187
2187
|
} else {
|
|
2188
|
-
this.
|
|
2188
|
+
this.q5h_1.j1('binary body omitted');
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
2191
|
}
|
|
2192
|
-
this.
|
|
2193
|
-
this.
|
|
2194
|
-
tmp_0.
|
|
2192
|
+
this.q5h_1.j1('--' + this.n5h_1.d5n_1 + '--');
|
|
2193
|
+
this.q5h_1.j1('--> END ' + this.o5h_1.x32_1);
|
|
2194
|
+
tmp_0.s5h_1 = null;
|
|
2195
2195
|
this.d9_1 = 6;
|
|
2196
2196
|
continue $sm;
|
|
2197
2197
|
} else {
|
|
2198
2198
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2199
|
-
var bytes = this.
|
|
2199
|
+
var bytes = this.n5h_1.n38();
|
|
2200
2200
|
this.d9_1 = 4;
|
|
2201
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2201
|
+
suspendResult = invoke$logRequestBody(this.l5h_1, this.m5h_1, this.n5h_1, fromInt(bytes.length), this.p5h_1, this.o5h_1, this.q5h_1, ByteReadChannel(bytes), this);
|
|
2202
2202
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2203
2203
|
return suspendResult;
|
|
2204
2204
|
}
|
|
@@ -2206,7 +2206,7 @@
|
|
|
2206
2206
|
} else {
|
|
2207
2207
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
2208
2208
|
this.d9_1 = 3;
|
|
2209
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2209
|
+
suspendResult = invoke$logOutgoingContent(this.k5h_1, this.l5h_1, this.m5h_1, this.n5h_1.w38(), this.o5h_1, this.p5h_1, this.q5h_1, this.r5h_1, this);
|
|
2210
2210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2211
2211
|
return suspendResult;
|
|
2212
2212
|
}
|
|
@@ -2214,24 +2214,24 @@
|
|
|
2214
2214
|
} else {
|
|
2215
2215
|
if (tmp0_subject instanceof NoContent) {
|
|
2216
2216
|
var tmp_1 = this;
|
|
2217
|
-
this.
|
|
2218
|
-
tmp_1.
|
|
2217
|
+
this.q5h_1.j1('--> END ' + this.o5h_1.x32_1);
|
|
2218
|
+
tmp_1.s5h_1 = null;
|
|
2219
2219
|
this.d9_1 = 6;
|
|
2220
2220
|
continue $sm;
|
|
2221
2221
|
} else {
|
|
2222
2222
|
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2223
2223
|
var tmp_2 = this;
|
|
2224
|
-
this.
|
|
2225
|
-
tmp_2.
|
|
2224
|
+
this.q5h_1.j1('--> END ' + this.o5h_1.x32_1);
|
|
2225
|
+
tmp_2.s5h_1 = null;
|
|
2226
2226
|
this.d9_1 = 6;
|
|
2227
2227
|
continue $sm;
|
|
2228
2228
|
} else {
|
|
2229
2229
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2230
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2231
|
-
this.
|
|
2230
|
+
var _destruct__k2r9zo_0 = split(this.n5h_1.q38(), this.k5h_1.j40_1);
|
|
2231
|
+
this.t5h_1 = _destruct__k2r9zo_0.jg();
|
|
2232
2232
|
var newChannel = _destruct__k2r9zo_0.kg();
|
|
2233
2233
|
this.d9_1 = 2;
|
|
2234
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2234
|
+
suspendResult = invoke$logRequestBody(this.l5h_1, this.m5h_1, this.n5h_1, this.n5h_1.m38(), this.p5h_1, this.o5h_1, this.q5h_1, newChannel, this);
|
|
2235
2235
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2236
2236
|
return suspendResult;
|
|
2237
2237
|
}
|
|
@@ -2239,12 +2239,12 @@
|
|
|
2239
2239
|
} else {
|
|
2240
2240
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2241
2241
|
var channel = new ByteChannel();
|
|
2242
|
-
launch(this.
|
|
2243
|
-
var _destruct__k2r9zo_1 = split(channel, this.
|
|
2244
|
-
this.
|
|
2242
|
+
launch(this.k5h_1.j40_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.n5h_1, channel, null));
|
|
2243
|
+
var _destruct__k2r9zo_1 = split(channel, this.k5h_1.j40_1);
|
|
2244
|
+
this.u5h_1 = _destruct__k2r9zo_1.jg();
|
|
2245
2245
|
var newChannel_0 = _destruct__k2r9zo_1.kg();
|
|
2246
2246
|
this.d9_1 = 1;
|
|
2247
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2247
|
+
suspendResult = invoke$logRequestBody(this.l5h_1, this.m5h_1, this.n5h_1, this.n5h_1.m38(), this.p5h_1, this.o5h_1, this.q5h_1, newChannel_0, this);
|
|
2248
2248
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2249
2249
|
return suspendResult;
|
|
2250
2250
|
}
|
|
@@ -2263,27 +2263,27 @@
|
|
|
2263
2263
|
|
|
2264
2264
|
break;
|
|
2265
2265
|
case 1:
|
|
2266
|
-
this.
|
|
2266
|
+
this.s5h_1 = new LoggedContent(this.n5h_1, this.u5h_1);
|
|
2267
2267
|
this.d9_1 = 6;
|
|
2268
2268
|
continue $sm;
|
|
2269
2269
|
case 2:
|
|
2270
|
-
this.
|
|
2270
|
+
this.s5h_1 = new LoggedContent(this.n5h_1, this.t5h_1);
|
|
2271
2271
|
this.d9_1 = 6;
|
|
2272
2272
|
continue $sm;
|
|
2273
2273
|
case 3:
|
|
2274
|
-
this.
|
|
2274
|
+
this.s5h_1 = suspendResult;
|
|
2275
2275
|
this.d9_1 = 6;
|
|
2276
2276
|
continue $sm;
|
|
2277
2277
|
case 4:
|
|
2278
|
-
this.
|
|
2278
|
+
this.s5h_1 = null;
|
|
2279
2279
|
this.d9_1 = 6;
|
|
2280
2280
|
continue $sm;
|
|
2281
2281
|
case 5:
|
|
2282
|
-
this.
|
|
2282
|
+
this.s5h_1 = suspendResult;
|
|
2283
2283
|
this.d9_1 = 6;
|
|
2284
2284
|
continue $sm;
|
|
2285
2285
|
case 6:
|
|
2286
|
-
return this.
|
|
2286
|
+
return this.s5h_1;
|
|
2287
2287
|
case 7:
|
|
2288
2288
|
throw this.g9_1;
|
|
2289
2289
|
}
|
|
@@ -2300,12 +2300,12 @@
|
|
|
2300
2300
|
};
|
|
2301
2301
|
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2302
2302
|
CoroutineImpl.call(this, resultContinuation);
|
|
2303
|
-
this.
|
|
2304
|
-
this.
|
|
2305
|
-
this.
|
|
2306
|
-
this.
|
|
2307
|
-
this.
|
|
2308
|
-
this.
|
|
2303
|
+
this.d5i_1 = sanitizedHeaders;
|
|
2304
|
+
this.e5i_1 = level;
|
|
2305
|
+
this.f5i_1 = $this_createClientPlugin;
|
|
2306
|
+
this.g5i_1 = bodyFilter;
|
|
2307
|
+
this.h5i_1 = request;
|
|
2308
|
+
this.i5i_1 = logLines;
|
|
2309
2309
|
}
|
|
2310
2310
|
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).l9 = function () {
|
|
2311
2311
|
var suspendResult = this.f9_1;
|
|
@@ -2315,22 +2315,22 @@
|
|
|
2315
2315
|
switch (tmp) {
|
|
2316
2316
|
case 0:
|
|
2317
2317
|
this.e9_1 = 4;
|
|
2318
|
-
if (invoke$isNone(this.
|
|
2318
|
+
if (invoke$isNone(this.e5i_1))
|
|
2319
2319
|
return null;
|
|
2320
|
-
var uri = takeFrom(new URLBuilder(), this.
|
|
2321
|
-
var body = this.
|
|
2320
|
+
var uri = takeFrom(new URLBuilder(), this.h5i_1.k3s_1).g2y().toString();
|
|
2321
|
+
var body = this.h5i_1.n3s_1;
|
|
2322
2322
|
var this_0 = new HeadersBuilder();
|
|
2323
2323
|
var tmp_0;
|
|
2324
2324
|
var tmp_1;
|
|
2325
2325
|
var tmp_2;
|
|
2326
2326
|
if (body instanceof OutgoingContent) {
|
|
2327
|
-
tmp_2 = !this.
|
|
2327
|
+
tmp_2 = !this.h5i_1.l3s_1.equals(Companion_getInstance().n32_1);
|
|
2328
2328
|
} else {
|
|
2329
2329
|
tmp_2 = false;
|
|
2330
2330
|
}
|
|
2331
2331
|
|
|
2332
2332
|
if (tmp_2) {
|
|
2333
|
-
tmp_1 = !this.
|
|
2333
|
+
tmp_1 = !this.h5i_1.l3s_1.equals(Companion_getInstance().s32_1);
|
|
2334
2334
|
} else {
|
|
2335
2335
|
tmp_1 = false;
|
|
2336
2336
|
}
|
|
@@ -2342,13 +2342,13 @@
|
|
|
2342
2342
|
}
|
|
2343
2343
|
|
|
2344
2344
|
if (tmp_0) {
|
|
2345
|
-
var tmp0_safe_receiver = body.
|
|
2345
|
+
var tmp0_safe_receiver = body.k38();
|
|
2346
2346
|
if (tmp0_safe_receiver == null)
|
|
2347
2347
|
null;
|
|
2348
2348
|
else {
|
|
2349
2349
|
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2350
2350
|
}
|
|
2351
|
-
var tmp1_safe_receiver = body.
|
|
2351
|
+
var tmp1_safe_receiver = body.m38();
|
|
2352
2352
|
if (tmp1_safe_receiver == null)
|
|
2353
2353
|
null;
|
|
2354
2354
|
else {
|
|
@@ -2356,16 +2356,16 @@
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
2358
|
|
|
2359
|
-
appendAll(this_0, this.
|
|
2360
|
-
var headers = this_0.
|
|
2361
|
-
var tmp0_safe_receiver_0 = headers.
|
|
2359
|
+
appendAll(this_0, this.h5i_1.m3s_1);
|
|
2360
|
+
var headers = this_0.g2y();
|
|
2361
|
+
var tmp0_safe_receiver_0 = headers.n2p('Content-Length');
|
|
2362
2362
|
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2363
2363
|
var tmp_3;
|
|
2364
|
-
if (this.
|
|
2365
|
-
tmp_3 = '--> ' + this.
|
|
2364
|
+
if (this.h5i_1.l3s_1.equals(Companion_getInstance().n32_1) || this.h5i_1.l3s_1.equals(Companion_getInstance().s32_1) || ((invoke$isHeaders(this.e5i_1) || invoke$isBody(this.e5i_1)) && !(contentLength == null)) || (invoke$isHeaders(this.e5i_1) && contentLength == null) || headers.z2o('Content-Encoding')) {
|
|
2365
|
+
tmp_3 = '--> ' + this.h5i_1.l3s_1.x32_1 + ' ' + uri;
|
|
2366
2366
|
} else {
|
|
2367
|
-
if (invoke$isInfo(this.
|
|
2368
|
-
tmp_3 = '--> ' + this.
|
|
2367
|
+
if (invoke$isInfo(this.e5i_1) && !(contentLength == null)) {
|
|
2368
|
+
tmp_3 = '--> ' + this.h5i_1.l3s_1.x32_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2369
2369
|
} else {
|
|
2370
2370
|
var tmp_4;
|
|
2371
2371
|
if (body instanceof WriteChannelContent) {
|
|
@@ -2374,32 +2374,32 @@
|
|
|
2374
2374
|
tmp_4 = body instanceof ReadChannelContent;
|
|
2375
2375
|
}
|
|
2376
2376
|
if (tmp_4) {
|
|
2377
|
-
tmp_3 = '--> ' + this.
|
|
2377
|
+
tmp_3 = '--> ' + this.h5i_1.l3s_1.x32_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2378
2378
|
} else {
|
|
2379
|
-
var size = computeRequestBodySize(this.
|
|
2380
|
-
tmp_3 = '--> ' + this.
|
|
2379
|
+
var size = computeRequestBodySize(this.h5i_1.n3s_1);
|
|
2380
|
+
tmp_3 = '--> ' + this.h5i_1.l3s_1.x32_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
2384
|
|
|
2385
2385
|
var startLine = tmp_3;
|
|
2386
|
-
this.
|
|
2387
|
-
if (!invoke$isHeaders(this.
|
|
2386
|
+
this.i5i_1.j1(startLine);
|
|
2387
|
+
if (!invoke$isHeaders(this.e5i_1) && !invoke$isBody(this.e5i_1)) {
|
|
2388
2388
|
return null;
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
|
-
var _iterator__ex2g4s = headers.
|
|
2391
|
+
var _iterator__ex2g4s = headers.e2q().t();
|
|
2392
2392
|
while (_iterator__ex2g4s.u()) {
|
|
2393
2393
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2394
2394
|
var name = _destruct__k2r9zo.r1();
|
|
2395
2395
|
var values = _destruct__k2r9zo.s1();
|
|
2396
|
-
var tmp0 = this.
|
|
2396
|
+
var tmp0 = this.d5i_1;
|
|
2397
2397
|
var tmp$ret$0 = Unit_instance;
|
|
2398
2398
|
l$ret$1: do {
|
|
2399
2399
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2400
2400
|
while (_iterator__ex2g4s_0.u()) {
|
|
2401
2401
|
var element = _iterator__ex2g4s_0.v();
|
|
2402
|
-
if (element.
|
|
2402
|
+
if (element.l5j_1(name)) {
|
|
2403
2403
|
tmp$ret$0 = element;
|
|
2404
2404
|
break l$ret$1;
|
|
2405
2405
|
}
|
|
@@ -2408,35 +2408,35 @@
|
|
|
2408
2408
|
}
|
|
2409
2409
|
while (false);
|
|
2410
2410
|
if (tmp$ret$0 == null) {
|
|
2411
|
-
this.
|
|
2411
|
+
this.i5i_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2412
2412
|
} else {
|
|
2413
|
-
this.
|
|
2413
|
+
this.i5i_1.j1(name + ': \u2588\u2588');
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
2416
|
|
|
2417
|
-
if (!invoke$isBody(this.
|
|
2418
|
-
this.
|
|
2417
|
+
if (!invoke$isBody(this.e5i_1) || this.h5i_1.l3s_1.equals(Companion_getInstance().n32_1) || this.h5i_1.l3s_1.equals(Companion_getInstance().s32_1)) {
|
|
2418
|
+
this.i5i_1.j1('--> END ' + this.h5i_1.l3s_1.x32_1);
|
|
2419
2419
|
return null;
|
|
2420
2420
|
}
|
|
2421
2421
|
|
|
2422
|
-
this.
|
|
2422
|
+
this.i5i_1.j1('');
|
|
2423
2423
|
if (!(body instanceof OutgoingContent)) {
|
|
2424
|
-
this.
|
|
2424
|
+
this.i5i_1.j1('--> END ' + this.h5i_1.l3s_1.x32_1);
|
|
2425
2425
|
return null;
|
|
2426
2426
|
}
|
|
2427
2427
|
|
|
2428
|
-
if (this.
|
|
2428
|
+
if (this.h5i_1.m3s_1.n2p('Content-Encoding') === 'gzip') {
|
|
2429
2429
|
this.d9_1 = 2;
|
|
2430
|
-
var tmp_5 = this.
|
|
2431
|
-
var tmp_6 = this.
|
|
2432
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2430
|
+
var tmp_5 = this.h5i_1.k3s_1.g2y();
|
|
2431
|
+
var tmp_6 = this.h5i_1.l3s_1;
|
|
2432
|
+
suspendResult = invoke$logOutgoingContent(this.f5i_1, this.g5i_1, tmp_5, body, tmp_6, headers, this.i5i_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2433
2433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2434
2434
|
return suspendResult;
|
|
2435
2435
|
}
|
|
2436
2436
|
continue $sm;
|
|
2437
2437
|
} else {
|
|
2438
2438
|
this.d9_1 = 1;
|
|
2439
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2439
|
+
suspendResult = invoke$logOutgoingContent(this.f5i_1, this.g5i_1, this.h5i_1.k3s_1.g2y(), body, this.h5i_1.l3s_1, headers, this.i5i_1, VOID, this);
|
|
2440
2440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2441
2441
|
return suspendResult;
|
|
2442
2442
|
}
|
|
@@ -2444,15 +2444,15 @@
|
|
|
2444
2444
|
}
|
|
2445
2445
|
|
|
2446
2446
|
case 1:
|
|
2447
|
-
this.
|
|
2447
|
+
this.j5i_1 = suspendResult;
|
|
2448
2448
|
this.d9_1 = 3;
|
|
2449
2449
|
continue $sm;
|
|
2450
2450
|
case 2:
|
|
2451
|
-
this.
|
|
2451
|
+
this.j5i_1 = suspendResult;
|
|
2452
2452
|
this.d9_1 = 3;
|
|
2453
2453
|
continue $sm;
|
|
2454
2454
|
case 3:
|
|
2455
|
-
var newContent = this.
|
|
2455
|
+
var newContent = this.j5i_1;
|
|
2456
2456
|
return newContent;
|
|
2457
2457
|
case 4:
|
|
2458
2458
|
throw this.g9_1;
|
|
@@ -2470,10 +2470,10 @@
|
|
|
2470
2470
|
};
|
|
2471
2471
|
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2472
2472
|
CoroutineImpl.call(this, resultContinuation);
|
|
2473
|
-
this.
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
this.
|
|
2473
|
+
this.s5i_1 = bodyFilter;
|
|
2474
|
+
this.t5i_1 = response;
|
|
2475
|
+
this.u5i_1 = body;
|
|
2476
|
+
this.v5i_1 = logLines;
|
|
2477
2477
|
}
|
|
2478
2478
|
protoOf($invoke$logResponseBodyCOROUTINE$).l9 = function () {
|
|
2479
2479
|
var suspendResult = this.f9_1;
|
|
@@ -2483,9 +2483,9 @@
|
|
|
2483
2483
|
switch (tmp) {
|
|
2484
2484
|
case 0:
|
|
2485
2485
|
this.e9_1 = 2;
|
|
2486
|
-
this.
|
|
2486
|
+
this.v5i_1.j1('');
|
|
2487
2487
|
this.d9_1 = 1;
|
|
2488
|
-
suspendResult = this.
|
|
2488
|
+
suspendResult = this.s5i_1.m5b(this.t5i_1.z3t().s3t().b3u(), contentLength(this.t5i_1), contentType(this.t5i_1), this.t5i_1.m32(), this.u5i_1, this);
|
|
2489
2489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2490
2490
|
return suspendResult;
|
|
2491
2491
|
}
|
|
@@ -2493,33 +2493,33 @@
|
|
|
2493
2493
|
continue $sm;
|
|
2494
2494
|
case 1:
|
|
2495
2495
|
var filteredBody = suspendResult;
|
|
2496
|
-
var duration = subtract(this.
|
|
2496
|
+
var duration = subtract(this.t5i_1.l3u().t2r_1, this.t5i_1.k3u().t2r_1);
|
|
2497
2497
|
if (filteredBody instanceof Empty) {
|
|
2498
|
-
this.
|
|
2498
|
+
this.v5i_1.j1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2499
2499
|
} else {
|
|
2500
2500
|
if (filteredBody instanceof Skip) {
|
|
2501
2501
|
var this_0 = StringBuilder_init_$Create$();
|
|
2502
2502
|
this_0.q('<-- END HTTP (');
|
|
2503
2503
|
this_0.vc(duration);
|
|
2504
2504
|
this_0.q('ms, ');
|
|
2505
|
-
var tmp0_safe_receiver = filteredBody.
|
|
2505
|
+
var tmp0_safe_receiver = filteredBody.o5b_1;
|
|
2506
2506
|
if (tmp0_safe_receiver == null)
|
|
2507
2507
|
null;
|
|
2508
2508
|
else {
|
|
2509
2509
|
this_0.q(tmp0_safe_receiver + ' ');
|
|
2510
2510
|
}
|
|
2511
|
-
var tmp1_safe_receiver = filteredBody.
|
|
2511
|
+
var tmp1_safe_receiver = filteredBody.p5b_1;
|
|
2512
2512
|
if (tmp1_safe_receiver == null)
|
|
2513
2513
|
null;
|
|
2514
2514
|
else {
|
|
2515
2515
|
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2516
2516
|
}
|
|
2517
2517
|
this_0.q('body omitted)');
|
|
2518
|
-
this.
|
|
2518
|
+
this.v5i_1.j1(this_0.toString());
|
|
2519
2519
|
} else {
|
|
2520
2520
|
if (isInterface(filteredBody, Content)) {
|
|
2521
|
-
this.
|
|
2522
|
-
this.
|
|
2521
|
+
this.v5i_1.j1(filteredBody.q5b());
|
|
2522
|
+
this.v5i_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.n5b()) + '-byte body)');
|
|
2523
2523
|
} else {
|
|
2524
2524
|
noWhenBranchMatchedException();
|
|
2525
2525
|
}
|
|
@@ -2543,11 +2543,11 @@
|
|
|
2543
2543
|
};
|
|
2544
2544
|
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2545
2545
|
CoroutineImpl.call(this, resultContinuation);
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
this.
|
|
2550
|
-
this.
|
|
2546
|
+
this.e5j_1 = sanitizedHeaders;
|
|
2547
|
+
this.f5j_1 = level;
|
|
2548
|
+
this.g5j_1 = bodyFilter;
|
|
2549
|
+
this.h5j_1 = response;
|
|
2550
|
+
this.i5j_1 = logLines;
|
|
2551
2551
|
}
|
|
2552
2552
|
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).l9 = function () {
|
|
2553
2553
|
var suspendResult = this.f9_1;
|
|
@@ -2557,30 +2557,30 @@
|
|
|
2557
2557
|
switch (tmp) {
|
|
2558
2558
|
case 0:
|
|
2559
2559
|
this.e9_1 = 4;
|
|
2560
|
-
if (invoke$isNone(this.
|
|
2561
|
-
return this.
|
|
2562
|
-
var tmp0_safe_receiver = this.
|
|
2560
|
+
if (invoke$isNone(this.f5j_1))
|
|
2561
|
+
return this.h5j_1;
|
|
2562
|
+
var tmp0_safe_receiver = this.h5j_1.m32().n2p('Content-Length');
|
|
2563
2563
|
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2564
|
-
var request = get_request(this.
|
|
2565
|
-
var duration = subtract(this.
|
|
2566
|
-
var startLine = this.
|
|
2567
|
-
this.
|
|
2568
|
-
if (!invoke$isHeaders(this.
|
|
2569
|
-
return this.
|
|
2564
|
+
var request = get_request(this.h5j_1);
|
|
2565
|
+
var duration = subtract(this.h5j_1.l3u().t2r_1, this.h5j_1.k3u().t2r_1);
|
|
2566
|
+
var startLine = this.h5j_1.m32().n2p('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.f5j_1) || invoke$isHeaders(this.f5j_1)) ? '<-- ' + this.h5j_1.l38().toString() + ' ' + request.b3u().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.f5j_1) && !(contentLength == null) ? '<-- ' + this.h5j_1.l38().toString() + ' ' + request.b3u().toString() + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.f5j_1) || (invoke$isInfo(this.f5j_1) && contentLength == null) || (invoke$isHeaders(this.f5j_1) && !(contentLength == null)) || this.h5j_1.m32().n2p('Content-Encoding') === 'gzip' ? '<-- ' + this.h5j_1.l38().toString() + ' ' + request.b3u().toString() + ' (' + duration.toString() + 'ms)' : '<-- ' + this.h5j_1.l38().toString() + ' ' + request.b3u().toString() + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2567
|
+
this.i5j_1.j1(startLine);
|
|
2568
|
+
if (!invoke$isHeaders(this.f5j_1) && !invoke$isBody(this.f5j_1)) {
|
|
2569
|
+
return this.h5j_1;
|
|
2570
2570
|
}
|
|
2571
2571
|
|
|
2572
|
-
var _iterator__ex2g4s = this.
|
|
2572
|
+
var _iterator__ex2g4s = this.h5j_1.m32().e2q().t();
|
|
2573
2573
|
while (_iterator__ex2g4s.u()) {
|
|
2574
2574
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2575
2575
|
var name = _destruct__k2r9zo.r1();
|
|
2576
2576
|
var values = _destruct__k2r9zo.s1();
|
|
2577
|
-
var tmp0 = this.
|
|
2577
|
+
var tmp0 = this.e5j_1;
|
|
2578
2578
|
var tmp$ret$0 = Unit_instance;
|
|
2579
2579
|
l$ret$1: do {
|
|
2580
2580
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2581
2581
|
while (_iterator__ex2g4s_0.u()) {
|
|
2582
2582
|
var element = _iterator__ex2g4s_0.v();
|
|
2583
|
-
if (element.
|
|
2583
|
+
if (element.l5j_1(name)) {
|
|
2584
2584
|
tmp$ret$0 = element;
|
|
2585
2585
|
break l$ret$1;
|
|
2586
2586
|
}
|
|
@@ -2589,30 +2589,30 @@
|
|
|
2589
2589
|
}
|
|
2590
2590
|
while (false);
|
|
2591
2591
|
if (tmp$ret$0 == null) {
|
|
2592
|
-
this.
|
|
2592
|
+
this.i5j_1.j1(name + ': ' + joinToString(values, ', '));
|
|
2593
2593
|
} else {
|
|
2594
|
-
this.
|
|
2594
|
+
this.i5j_1.j1(name + ': \u2588\u2588');
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
|
|
2598
|
-
if (!invoke$isBody(this.
|
|
2599
|
-
this.
|
|
2600
|
-
return this.
|
|
2598
|
+
if (!invoke$isBody(this.f5j_1)) {
|
|
2599
|
+
this.i5j_1.j1('<-- END HTTP');
|
|
2600
|
+
return this.h5j_1;
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
2603
2603
|
if (!(contentLength == null) && contentLength === 0n) {
|
|
2604
|
-
this.
|
|
2605
|
-
return this.
|
|
2604
|
+
this.i5j_1.j1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2605
|
+
return this.h5j_1;
|
|
2606
2606
|
}
|
|
2607
2607
|
|
|
2608
|
-
if (equals(contentType(this.
|
|
2609
|
-
this.
|
|
2610
|
-
return this.
|
|
2608
|
+
if (equals(contentType(this.h5j_1), Text_getInstance().u2x_1)) {
|
|
2609
|
+
this.i5j_1.j1('<-- END HTTP (streaming)');
|
|
2610
|
+
return this.h5j_1;
|
|
2611
2611
|
}
|
|
2612
2612
|
|
|
2613
|
-
if (get_isSaved(this.
|
|
2613
|
+
if (get_isSaved(this.h5j_1)) {
|
|
2614
2614
|
this.d9_1 = 3;
|
|
2615
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2615
|
+
suspendResult = invoke$logResponseBody(this.g5j_1, this.h5j_1, this.h5j_1.i3u(), this.i5j_1, this);
|
|
2616
2616
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2617
2617
|
return suspendResult;
|
|
2618
2618
|
}
|
|
@@ -2623,22 +2623,22 @@
|
|
|
2623
2623
|
}
|
|
2624
2624
|
|
|
2625
2625
|
case 1:
|
|
2626
|
-
var _destruct__k2r9zo_0 = split(this.
|
|
2627
|
-
this.
|
|
2626
|
+
var _destruct__k2r9zo_0 = split(this.h5j_1.i3u(), this.h5j_1);
|
|
2627
|
+
this.j5j_1 = _destruct__k2r9zo_0.jg();
|
|
2628
2628
|
var newChannel = _destruct__k2r9zo_0.kg();
|
|
2629
2629
|
this.d9_1 = 2;
|
|
2630
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2630
|
+
suspendResult = invoke$logResponseBody(this.g5j_1, this.h5j_1, newChannel, this.i5j_1, this);
|
|
2631
2631
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2632
2632
|
return suspendResult;
|
|
2633
2633
|
}
|
|
2634
2634
|
|
|
2635
2635
|
continue $sm;
|
|
2636
2636
|
case 2:
|
|
2637
|
-
var tmp_0 = this.
|
|
2638
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.
|
|
2639
|
-
return call.
|
|
2637
|
+
var tmp_0 = this.h5j_1.z3t();
|
|
2638
|
+
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.j5j_1));
|
|
2639
|
+
return call.k3r();
|
|
2640
2640
|
case 3:
|
|
2641
|
-
return this.
|
|
2641
|
+
return this.h5j_1;
|
|
2642
2642
|
case 4:
|
|
2643
2643
|
throw this.g9_1;
|
|
2644
2644
|
}
|
|
@@ -2732,7 +2732,7 @@
|
|
|
2732
2732
|
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2733
2733
|
while (_iterator__ex2g4s_0.u()) {
|
|
2734
2734
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
2735
|
-
if (element_0.
|
|
2735
|
+
if (element_0.l5j_1(key)) {
|
|
2736
2736
|
tmp$ret$6 = element_0;
|
|
2737
2737
|
break $l$block;
|
|
2738
2738
|
}
|
|
@@ -2740,7 +2740,7 @@
|
|
|
2740
2740
|
tmp$ret$6 = null;
|
|
2741
2741
|
}
|
|
2742
2742
|
var tmp0_safe_receiver = tmp$ret$6;
|
|
2743
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2743
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k5j_1;
|
|
2744
2744
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
@@ -2752,26 +2752,26 @@
|
|
|
2752
2752
|
}
|
|
2753
2753
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2754
2754
|
// Inline function 'kotlin.with' call
|
|
2755
|
-
if (level.
|
|
2755
|
+
if (level.p5c_1) {
|
|
2756
2756
|
// Inline function 'kotlin.text.appendLine' call
|
|
2757
|
-
var value = 'RESPONSE: ' + response.
|
|
2757
|
+
var value = 'RESPONSE: ' + response.l38().toString();
|
|
2758
2758
|
// Inline function 'kotlin.text.appendLine' call
|
|
2759
2759
|
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2760
2760
|
// Inline function 'kotlin.text.appendLine' call
|
|
2761
|
-
var value_0 = 'METHOD: ' + response.
|
|
2761
|
+
var value_0 = 'METHOD: ' + response.z3t().s3t().a3u().toString();
|
|
2762
2762
|
// Inline function 'kotlin.text.appendLine' call
|
|
2763
2763
|
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2764
2764
|
// Inline function 'kotlin.text.appendLine' call
|
|
2765
|
-
var value_1 = 'FROM: ' + response.
|
|
2765
|
+
var value_1 = 'FROM: ' + response.z3t().s3t().b3u().toString();
|
|
2766
2766
|
// Inline function 'kotlin.text.appendLine' call
|
|
2767
2767
|
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2768
2768
|
}
|
|
2769
|
-
if (level.
|
|
2769
|
+
if (level.q5c_1) {
|
|
2770
2770
|
// Inline function 'kotlin.text.appendLine' call
|
|
2771
2771
|
var value_2 = 'COMMON HEADERS';
|
|
2772
2772
|
// Inline function 'kotlin.text.appendLine' call
|
|
2773
2773
|
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2774
|
-
logHeaders(log, response.
|
|
2774
|
+
logHeaders(log, response.m32().e2q(), sanitizedHeaders);
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
2777
|
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
@@ -2787,16 +2787,16 @@
|
|
|
2787
2787
|
return tmp.l9();
|
|
2788
2788
|
}
|
|
2789
2789
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2790
|
-
this.
|
|
2790
|
+
this.g5o_1 = function_0;
|
|
2791
2791
|
}
|
|
2792
2792
|
protoOf(sam$kotlin_Comparator$0).ee = function (a, b) {
|
|
2793
|
-
return this.
|
|
2793
|
+
return this.g5o_1(a, b);
|
|
2794
2794
|
};
|
|
2795
2795
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2796
2796
|
return this.ee(a, b);
|
|
2797
2797
|
};
|
|
2798
2798
|
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2799
|
-
return this.
|
|
2799
|
+
return this.g5o_1;
|
|
2800
2800
|
};
|
|
2801
2801
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2802
2802
|
var tmp;
|
|
@@ -2824,8 +2824,8 @@
|
|
|
2824
2824
|
}
|
|
2825
2825
|
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2826
2826
|
CoroutineImpl.call(this, resultContinuation);
|
|
2827
|
-
this.
|
|
2828
|
-
this.
|
|
2827
|
+
this.p5n_1 = _this__u8e3s4;
|
|
2828
|
+
this.q5n_1 = response;
|
|
2829
2829
|
}
|
|
2830
2830
|
protoOf($logResponseBodyCOROUTINE$_0).l9 = function () {
|
|
2831
2831
|
var suspendResult = this.f9_1;
|
|
@@ -2835,14 +2835,14 @@
|
|
|
2835
2835
|
switch (tmp) {
|
|
2836
2836
|
case 0:
|
|
2837
2837
|
this.e9_1 = 8;
|
|
2838
|
-
this.
|
|
2838
|
+
this.r5n_1 = StringBuilder_init_$Create$();
|
|
2839
2839
|
this.d9_1 = 1;
|
|
2840
2840
|
continue $sm;
|
|
2841
2841
|
case 1:
|
|
2842
2842
|
this.e9_1 = 4;
|
|
2843
2843
|
this.e9_1 = 3;
|
|
2844
2844
|
this.d9_1 = 2;
|
|
2845
|
-
suspendResult = appendResponseBody(this.
|
|
2845
|
+
suspendResult = appendResponseBody(this.r5n_1, contentType(this.q5n_1), this.q5n_1.i3u(), this);
|
|
2846
2846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2847
2847
|
return suspendResult;
|
|
2848
2848
|
}
|
|
@@ -2866,22 +2866,22 @@
|
|
|
2866
2866
|
|
|
2867
2867
|
case 4:
|
|
2868
2868
|
this.e9_1 = 8;
|
|
2869
|
-
this.
|
|
2869
|
+
this.s5n_1 = this.g9_1;
|
|
2870
2870
|
this.d9_1 = 5;
|
|
2871
|
-
var this_0 = this.
|
|
2872
|
-
suspendResult = this.
|
|
2871
|
+
var this_0 = this.r5n_1.toString();
|
|
2872
|
+
suspendResult = this.p5n_1.h5b(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2873
2873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2874
2874
|
return suspendResult;
|
|
2875
2875
|
}
|
|
2876
2876
|
|
|
2877
2877
|
continue $sm;
|
|
2878
2878
|
case 5:
|
|
2879
|
-
throw this.
|
|
2879
|
+
throw this.s5n_1;
|
|
2880
2880
|
case 6:
|
|
2881
2881
|
this.e9_1 = 8;
|
|
2882
2882
|
this.d9_1 = 7;
|
|
2883
|
-
var this_1 = this.
|
|
2884
|
-
suspendResult = this.
|
|
2883
|
+
var this_1 = this.r5n_1.toString();
|
|
2884
|
+
suspendResult = this.p5n_1.h5b(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2885
2885
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2886
2886
|
return suspendResult;
|
|
2887
2887
|
}
|
|
@@ -2905,9 +2905,9 @@
|
|
|
2905
2905
|
};
|
|
2906
2906
|
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2907
2907
|
CoroutineImpl.call(this, resultContinuation);
|
|
2908
|
-
this.
|
|
2909
|
-
this.
|
|
2910
|
-
this.
|
|
2908
|
+
this.b5o_1 = _this__u8e3s4;
|
|
2909
|
+
this.c5o_1 = contentType;
|
|
2910
|
+
this.d5o_1 = content;
|
|
2911
2911
|
}
|
|
2912
2912
|
protoOf($appendResponseBodyCOROUTINE$).l9 = function () {
|
|
2913
2913
|
var suspendResult = this.f9_1;
|
|
@@ -2917,16 +2917,16 @@
|
|
|
2917
2917
|
switch (tmp) {
|
|
2918
2918
|
case 0:
|
|
2919
2919
|
this.e9_1 = 3;
|
|
2920
|
-
var tmp0 = this.
|
|
2921
|
-
var value = 'BODY Content-Type: ' + toString_0(this.
|
|
2920
|
+
var tmp0 = this.b5o_1;
|
|
2921
|
+
var value = 'BODY Content-Type: ' + toString_0(this.c5o_1);
|
|
2922
2922
|
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2923
|
-
var tmp0_0 = this.
|
|
2923
|
+
var tmp0_0 = this.b5o_1;
|
|
2924
2924
|
var value_0 = 'BODY START';
|
|
2925
2925
|
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2926
|
-
var tmp0_1 = this.
|
|
2927
|
-
var tmp0_safe_receiver = this.
|
|
2926
|
+
var tmp0_1 = this.d5o_1;
|
|
2927
|
+
var tmp0_safe_receiver = this.c5o_1;
|
|
2928
2928
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2929
|
-
this.
|
|
2929
|
+
this.f5o_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().c1z_1 : tmp1_elvis_lhs;
|
|
2930
2930
|
this.e9_1 = 2;
|
|
2931
2931
|
this.d9_1 = 1;
|
|
2932
2932
|
suspendResult = readRemaining(tmp0_1, this);
|
|
@@ -2937,7 +2937,7 @@
|
|
|
2937
2937
|
continue $sm;
|
|
2938
2938
|
case 1:
|
|
2939
2939
|
var ARGUMENT = suspendResult;
|
|
2940
|
-
this.
|
|
2940
|
+
this.e5o_1 = readText(ARGUMENT, this.f5o_1);
|
|
2941
2941
|
this.e9_1 = 3;
|
|
2942
2942
|
this.d9_1 = 4;
|
|
2943
2943
|
continue $sm;
|
|
@@ -2947,7 +2947,7 @@
|
|
|
2947
2947
|
if (tmp_0 instanceof Error) {
|
|
2948
2948
|
var cause = this.g9_1;
|
|
2949
2949
|
var tmp_1 = this;
|
|
2950
|
-
tmp_1.
|
|
2950
|
+
tmp_1.e5o_1 = null;
|
|
2951
2951
|
this.d9_1 = 4;
|
|
2952
2952
|
continue $sm;
|
|
2953
2953
|
} else {
|
|
@@ -2958,10 +2958,10 @@
|
|
|
2958
2958
|
throw this.g9_1;
|
|
2959
2959
|
case 4:
|
|
2960
2960
|
this.e9_1 = 3;
|
|
2961
|
-
var tmp2_elvis_lhs = this.
|
|
2961
|
+
var tmp2_elvis_lhs = this.e5o_1;
|
|
2962
2962
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2963
|
-
this.
|
|
2964
|
-
this.
|
|
2963
|
+
this.b5o_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
2964
|
+
this.b5o_1.q('BODY END');
|
|
2965
2965
|
return Unit_instance;
|
|
2966
2966
|
}
|
|
2967
2967
|
} catch ($p) {
|
|
@@ -2987,17 +2987,17 @@
|
|
|
2987
2987
|
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).x1q_1;
|
|
2988
2988
|
}
|
|
2989
2989
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2990
|
-
this.
|
|
2990
|
+
this.b5p_1 = $this_toReadChannel;
|
|
2991
2991
|
CoroutineImpl.call(this, resultContinuation);
|
|
2992
2992
|
}
|
|
2993
|
-
protoOf(toReadChannel$slambda).
|
|
2994
|
-
var tmp = this.
|
|
2993
|
+
protoOf(toReadChannel$slambda).r3d = function ($this$writer, $completion) {
|
|
2994
|
+
var tmp = this.s3d($this$writer, $completion);
|
|
2995
2995
|
tmp.f9_1 = Unit_instance;
|
|
2996
2996
|
tmp.g9_1 = null;
|
|
2997
2997
|
return tmp.l9();
|
|
2998
2998
|
};
|
|
2999
2999
|
protoOf(toReadChannel$slambda).y9 = function (p1, $completion) {
|
|
3000
|
-
return this.
|
|
3000
|
+
return this.r3d(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3001
3001
|
};
|
|
3002
3002
|
protoOf(toReadChannel$slambda).l9 = function () {
|
|
3003
3003
|
var suspendResult = this.f9_1;
|
|
@@ -3008,7 +3008,7 @@
|
|
|
3008
3008
|
case 0:
|
|
3009
3009
|
this.e9_1 = 2;
|
|
3010
3010
|
this.d9_1 = 1;
|
|
3011
|
-
suspendResult = this.
|
|
3011
|
+
suspendResult = this.b5p_1.s38(this.c5p_1.y1w_1, this);
|
|
3012
3012
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3013
3013
|
return suspendResult;
|
|
3014
3014
|
}
|
|
@@ -3030,21 +3030,21 @@
|
|
|
3030
3030
|
}
|
|
3031
3031
|
while (true);
|
|
3032
3032
|
};
|
|
3033
|
-
protoOf(toReadChannel$slambda).
|
|
3034
|
-
var i = new toReadChannel$slambda(this.
|
|
3035
|
-
i.
|
|
3033
|
+
protoOf(toReadChannel$slambda).s3d = function ($this$writer, completion) {
|
|
3034
|
+
var i = new toReadChannel$slambda(this.b5p_1, completion);
|
|
3035
|
+
i.c5p_1 = $this$writer;
|
|
3036
3036
|
return i;
|
|
3037
3037
|
};
|
|
3038
3038
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3039
3039
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3040
3040
|
return constructCallableReference(function ($this$writer, $completion) {
|
|
3041
|
-
return i.
|
|
3041
|
+
return i.r3d($this$writer, $completion);
|
|
3042
3042
|
}, 1);
|
|
3043
3043
|
}
|
|
3044
3044
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3045
3045
|
CoroutineImpl.call(this, resultContinuation);
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3046
|
+
this.p5o_1 = _this__u8e3s4;
|
|
3047
|
+
this.q5o_1 = log;
|
|
3048
3048
|
}
|
|
3049
3049
|
protoOf($observeCOROUTINE$).l9 = function () {
|
|
3050
3050
|
var suspendResult = this.f9_1;
|
|
@@ -3054,10 +3054,10 @@
|
|
|
3054
3054
|
switch (tmp) {
|
|
3055
3055
|
case 0:
|
|
3056
3056
|
this.e9_1 = 6;
|
|
3057
|
-
var tmp0_subject = this.
|
|
3057
|
+
var tmp0_subject = this.p5o_1;
|
|
3058
3058
|
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3059
3059
|
this.d9_1 = 3;
|
|
3060
|
-
suspendResult = writeFully_0(this.
|
|
3060
|
+
suspendResult = writeFully_0(this.q5o_1, this.p5o_1.n38(), VOID, VOID, this);
|
|
3061
3061
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3062
3062
|
return suspendResult;
|
|
3063
3063
|
}
|
|
@@ -3066,25 +3066,25 @@
|
|
|
3066
3066
|
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3067
3067
|
var tmp_0 = this;
|
|
3068
3068
|
var responseChannel = new ByteChannel();
|
|
3069
|
-
var content = this.
|
|
3070
|
-
copyToBoth(content, this.
|
|
3071
|
-
tmp_0.
|
|
3069
|
+
var content = this.p5o_1.q38();
|
|
3070
|
+
copyToBoth(content, this.q5o_1, responseChannel);
|
|
3071
|
+
tmp_0.r5o_1 = new LoggedContent(this.p5o_1, responseChannel);
|
|
3072
3072
|
this.d9_1 = 5;
|
|
3073
3073
|
continue $sm;
|
|
3074
3074
|
} else {
|
|
3075
3075
|
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3076
3076
|
var tmp_1 = this;
|
|
3077
3077
|
var responseChannel_0 = new ByteChannel();
|
|
3078
|
-
var content_0 = toReadChannel(this.
|
|
3079
|
-
copyToBoth(content_0, this.
|
|
3080
|
-
tmp_1.
|
|
3078
|
+
var content_0 = toReadChannel(this.p5o_1);
|
|
3079
|
+
copyToBoth(content_0, this.q5o_1, responseChannel_0);
|
|
3080
|
+
tmp_1.r5o_1 = new LoggedContent(this.p5o_1, responseChannel_0);
|
|
3081
3081
|
this.d9_1 = 5;
|
|
3082
3082
|
continue $sm;
|
|
3083
3083
|
} else {
|
|
3084
3084
|
if (tmp0_subject instanceof ContentWrapper) {
|
|
3085
|
-
this.
|
|
3085
|
+
this.s5o_1 = this.p5o_1;
|
|
3086
3086
|
this.d9_1 = 2;
|
|
3087
|
-
suspendResult = observe(this.
|
|
3087
|
+
suspendResult = observe(this.p5o_1.w38(), this.q5o_1, this);
|
|
3088
3088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3089
3089
|
return suspendResult;
|
|
3090
3090
|
}
|
|
@@ -3098,7 +3098,7 @@
|
|
|
3098
3098
|
}
|
|
3099
3099
|
if (tmp_2) {
|
|
3100
3100
|
this.d9_1 = 1;
|
|
3101
|
-
suspendResult = this.
|
|
3101
|
+
suspendResult = this.q5o_1.e1p(this);
|
|
3102
3102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3103
3103
|
return suspendResult;
|
|
3104
3104
|
}
|
|
@@ -3114,28 +3114,28 @@
|
|
|
3114
3114
|
|
|
3115
3115
|
break;
|
|
3116
3116
|
case 1:
|
|
3117
|
-
this.
|
|
3117
|
+
this.r5o_1 = this.p5o_1;
|
|
3118
3118
|
this.d9_1 = 5;
|
|
3119
3119
|
continue $sm;
|
|
3120
3120
|
case 2:
|
|
3121
3121
|
var ARGUMENT = suspendResult;
|
|
3122
|
-
this.
|
|
3122
|
+
this.r5o_1 = this.s5o_1.x38(ARGUMENT);
|
|
3123
3123
|
this.d9_1 = 5;
|
|
3124
3124
|
continue $sm;
|
|
3125
3125
|
case 3:
|
|
3126
3126
|
this.d9_1 = 4;
|
|
3127
|
-
suspendResult = this.
|
|
3127
|
+
suspendResult = this.q5o_1.e1p(this);
|
|
3128
3128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3129
3129
|
return suspendResult;
|
|
3130
3130
|
}
|
|
3131
3131
|
|
|
3132
3132
|
continue $sm;
|
|
3133
3133
|
case 4:
|
|
3134
|
-
this.
|
|
3134
|
+
this.r5o_1 = this.p5o_1;
|
|
3135
3135
|
this.d9_1 = 5;
|
|
3136
3136
|
continue $sm;
|
|
3137
3137
|
case 5:
|
|
3138
|
-
return this.
|
|
3138
|
+
return this.r5o_1;
|
|
3139
3139
|
case 6:
|
|
3140
3140
|
throw this.g9_1;
|
|
3141
3141
|
}
|
|
@@ -3175,9 +3175,9 @@
|
|
|
3175
3175
|
return get_SIMPLE(_this__u8e3s4);
|
|
3176
3176
|
}
|
|
3177
3177
|
//region block: post-declaration
|
|
3178
|
-
protoOf(Empty).
|
|
3179
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3180
|
-
protoOf(BinaryLogBodyFilter$1).
|
|
3178
|
+
protoOf(Empty).n5b = get_byteSize;
|
|
3179
|
+
protoOf(BinaryLogBodyFilter$1).k5b = filterRequest;
|
|
3180
|
+
protoOf(BinaryLogBodyFilter$1).m5b = filterResponse;
|
|
3181
3181
|
protoOf(MDCContextElement).q9 = get;
|
|
3182
3182
|
protoOf(MDCContextElement).fh = fold;
|
|
3183
3183
|
protoOf(MDCContextElement).eh = minusKey;
|