@doordeck/doordeck-headless-sdk 0.113.0 → 0.115.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 +52 -51
- package/kotlin/Kermit-kermit.js +3 -3
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1900 -1682
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +6 -6
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +13 -13
- package/kotlin/doordeck-sdk.d.ts +1578 -292
- package/kotlin/doordeck-sdk.js +911 -1027
- package/kotlin/kotlin-kotlin-stdlib.js +584 -713
- package/kotlin/kotlinx-atomicfu.js +5 -5
- package/kotlin/kotlinx-coroutines-core.js +246 -243
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core.js +104 -104
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +126 -117
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1216 -1214
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js → ktor-ktor-client-auth.js} +283 -286
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js → ktor-ktor-client-content-negotiation.js} +169 -169
- package/kotlin/{ktor-ktor-client-ktor-client-core.js → ktor-ktor-client-core.js} +2515 -2518
- package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js → ktor-ktor-client-logging.js} +926 -831
- package/kotlin/{ktor-ktor-shared-ktor-events.js → ktor-ktor-events.js} +9 -9
- package/kotlin/{ktor-ktor-http-ktor-http-cio.js → ktor-ktor-http-cio.js} +371 -370
- package/kotlin/ktor-ktor-http.js +867 -952
- package/kotlin/ktor-ktor-io.js +389 -411
- package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js → ktor-ktor-serialization-kotlinx-json.js} +7 -7
- package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js → ktor-ktor-serialization-kotlinx.js} +150 -150
- package/kotlin/{ktor-ktor-shared-ktor-serialization.js → ktor-ktor-serialization.js} +75 -75
- package/kotlin/ktor-ktor-utils.js +117 -92
- package/kotlin/{ktor-ktor-shared-ktor-websockets.js → ktor-ktor-websockets.js} +52 -52
- package/package.json +3 -3
- /package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js → ktor-ktor-client-encoding.js} +0 -0
- /package/kotlin/{ktor-ktor-shared-ktor-sse.js → ktor-ktor-sse.js} +0 -0
- /package/kotlin/{ktor-ktor-shared-ktor-websocket-serialization.js → ktor-ktor-websocket-serialization.js} +0 -0
|
@@ -3,106 +3,107 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var CoroutineImpl = kotlin_kotlin.$_$.v9;
|
|
5
5
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
|
|
6
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
7
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
8
|
-
var trim = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
7
|
+
var isCharSequence = kotlin_kotlin.$_$.eb;
|
|
8
|
+
var trim = kotlin_kotlin.$_$.ye;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.zb;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.vb;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
|
|
13
|
+
var charSequenceLength = kotlin_kotlin.$_$.ia;
|
|
14
14
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
15
15
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
|
|
16
16
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
17
17
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
|
|
18
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ta;
|
|
19
19
|
var VOID = kotlin_kotlin.$_$.h;
|
|
20
|
-
var Enum = kotlin_kotlin.$_$.
|
|
20
|
+
var Enum = kotlin_kotlin.$_$.kf;
|
|
21
21
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
22
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
|
|
23
23
|
var println = kotlin_kotlin.$_$.y9;
|
|
24
24
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
25
25
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
26
26
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
27
27
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
28
|
-
var Long = kotlin_kotlin.$_$.
|
|
28
|
+
var Long = kotlin_kotlin.$_$.pf;
|
|
29
29
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.s;
|
|
30
30
|
var NoContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
31
31
|
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.q;
|
|
32
|
-
var toLong = kotlin_kotlin.$_$.
|
|
32
|
+
var toLong = kotlin_kotlin.$_$.xb;
|
|
33
33
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
34
34
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
35
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
35
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ya;
|
|
36
36
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
37
|
-
var isSuspendFunction = kotlin_kotlin.$_$.
|
|
38
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
37
|
+
var isSuspendFunction = kotlin_kotlin.$_$.lb;
|
|
38
|
+
var initMetadataForObject = kotlin_kotlin.$_$.za;
|
|
39
39
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
40
40
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
41
41
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
42
42
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.f1;
|
|
43
43
|
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
44
|
-
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.
|
|
44
|
+
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
45
45
|
var Collection = kotlin_kotlin.$_$.m5;
|
|
46
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
47
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
48
|
-
var charset = kotlin_io_ktor_ktor_http.$_$.
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.ib;
|
|
47
|
+
var toString_0 = kotlin_kotlin.$_$.yg;
|
|
48
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
49
49
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
50
|
-
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
50
|
+
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
51
51
|
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
52
52
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
53
53
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
54
|
-
var Url = kotlin_io_ktor_ktor_http.$_$.
|
|
54
|
+
var Url = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
55
55
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
56
56
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.z;
|
|
57
57
|
var joinToString = kotlin_kotlin.$_$.p7;
|
|
58
|
-
var equals = kotlin_kotlin.$_$.
|
|
58
|
+
var equals = kotlin_kotlin.$_$.ma;
|
|
59
|
+
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.x;
|
|
59
60
|
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
60
|
-
var contentType = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
61
61
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
|
|
62
62
|
var writeFully = kotlin_io_ktor_ktor_io.$_$.l;
|
|
63
63
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.b;
|
|
64
64
|
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.a;
|
|
65
65
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
66
|
-
var readText = kotlin_io_ktor_ktor_io.$_$.
|
|
67
|
-
var Triple = kotlin_kotlin.$_$.
|
|
66
|
+
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
67
|
+
var Triple = kotlin_kotlin.$_$.xf;
|
|
68
68
|
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
69
69
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
70
|
-
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.
|
|
70
|
+
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
71
71
|
var decode = kotlin_io_ktor_ktor_io.$_$.s;
|
|
72
|
-
var
|
|
72
|
+
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.r;
|
|
73
|
+
var charCodeAt = kotlin_kotlin.$_$.ga;
|
|
73
74
|
var async = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
74
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
75
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ug;
|
|
75
76
|
var split = kotlin_io_ktor_ktor_utils.$_$.h1;
|
|
76
77
|
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
77
|
-
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
78
|
-
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.
|
|
79
|
-
var takeFrom = kotlin_io_ktor_ktor_http.$_$.
|
|
80
|
-
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.
|
|
78
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
79
|
+
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
80
|
+
var takeFrom = kotlin_io_ktor_ktor_http.$_$.v1;
|
|
81
|
+
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.z;
|
|
81
82
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.h;
|
|
82
83
|
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.j1;
|
|
83
84
|
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.a1;
|
|
84
85
|
var appendAll = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
85
|
-
var toLongOrNull = kotlin_kotlin.$_$.
|
|
86
|
-
var contentLength = kotlin_io_ktor_ktor_http.$_$.
|
|
86
|
+
var toLongOrNull = kotlin_kotlin.$_$.oe;
|
|
87
|
+
var contentLength = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
88
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
|
|
87
89
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.i1;
|
|
88
90
|
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
89
|
-
var
|
|
90
|
-
var wrapWithContent = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
91
|
+
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
91
92
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
92
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
93
|
+
var arrayOf = kotlin_kotlin.$_$.jg;
|
|
93
94
|
var createKType = kotlin_kotlin.$_$.c;
|
|
94
95
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
95
96
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
96
|
-
var Unit = kotlin_kotlin.$_$.
|
|
97
|
-
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.
|
|
97
|
+
var Unit = kotlin_kotlin.$_$.gg;
|
|
98
|
+
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
98
99
|
var toList = kotlin_kotlin.$_$.t8;
|
|
99
100
|
var sortedWith = kotlin_kotlin.$_$.o8;
|
|
100
101
|
var FunctionAdapter = kotlin_kotlin.$_$.z9;
|
|
101
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
102
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
102
|
+
var Comparator = kotlin_kotlin.$_$.hf;
|
|
103
|
+
var hashCode = kotlin_kotlin.$_$.sa;
|
|
103
104
|
var compareValues = kotlin_kotlin.$_$.d9;
|
|
104
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
105
|
-
var WriterScope = kotlin_io_ktor_ktor_io.$_$.
|
|
105
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
106
|
+
var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
|
|
106
107
|
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.b1;
|
|
107
108
|
var get = kotlin_kotlin.$_$.r9;
|
|
108
109
|
var fold = kotlin_kotlin.$_$.q9;
|
|
@@ -111,9 +112,9 @@
|
|
|
111
112
|
var Element = kotlin_kotlin.$_$.t9;
|
|
112
113
|
//endregion
|
|
113
114
|
//region block: pre-declaration
|
|
114
|
-
initMetadataForCoroutine($logResponseExceptionCOROUTINE
|
|
115
|
-
initMetadataForCoroutine($logResponseBodyCOROUTINE
|
|
116
|
-
initMetadataForCoroutine($closeResponseLogCOROUTINE
|
|
115
|
+
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
116
|
+
initMetadataForCoroutine($logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
117
|
+
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
117
118
|
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
118
119
|
initMetadataForClass(LogLevel, 'LogLevel', VOID, Enum);
|
|
119
120
|
initMetadataForClass(LoggedContent, 'LoggedContent', VOID, ReadChannelContent);
|
|
@@ -137,29 +138,30 @@
|
|
|
137
138
|
initMetadataForLambda(Logging$lambda$slambda_1, CoroutineImpl, VOID, [2]);
|
|
138
139
|
initMetadataForLambda(Logging$lambda$slambda_3, CoroutineImpl, VOID, [2]);
|
|
139
140
|
initMetadataForLambda(Logging$lambda$slambda_5, CoroutineImpl, VOID, [2]);
|
|
140
|
-
initMetadataForLambda(Logging$lambda$
|
|
141
|
+
initMetadataForLambda(Logging$lambda$lambda$slambda, CoroutineImpl, VOID, [1]);
|
|
141
142
|
initMetadataForLambda(Logging$lambda$detectIfBinary$slambda, CoroutineImpl, VOID, [1]);
|
|
142
143
|
initMetadataForLambda(Logging$lambda$logOutgoingContent$slambda, CoroutineImpl, VOID, [1]);
|
|
143
144
|
initMetadataForLambda(Logging$lambda$logRequestBody$slambda, CoroutineImpl, VOID, [1]);
|
|
144
|
-
initMetadataForCoroutine($invoke$detectIfBinaryCOROUTINE
|
|
145
|
-
initMetadataForCoroutine($invoke$logRequestBodyCOROUTINE
|
|
146
|
-
initMetadataForCoroutine($invoke$logOutgoingContentCOROUTINE
|
|
147
|
-
initMetadataForCoroutine($invoke$logRequestOkHttpFormatCOROUTINE
|
|
148
|
-
initMetadataForCoroutine($invoke$logResponseBodyCOROUTINE
|
|
149
|
-
initMetadataForCoroutine($invoke$logResponseOkHttpFormatCOROUTINE
|
|
145
|
+
initMetadataForCoroutine($invoke$detectIfBinaryCOROUTINE$, CoroutineImpl);
|
|
146
|
+
initMetadataForCoroutine($invoke$logRequestBodyCOROUTINE$, CoroutineImpl);
|
|
147
|
+
initMetadataForCoroutine($invoke$logOutgoingContentCOROUTINE$, CoroutineImpl);
|
|
148
|
+
initMetadataForCoroutine($invoke$logRequestOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
149
|
+
initMetadataForCoroutine($invoke$logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
150
|
+
initMetadataForCoroutine($invoke$logResponseOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
150
151
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
151
|
-
initMetadataForCoroutine($logResponseBodyCOROUTINE$
|
|
152
|
+
initMetadataForCoroutine($logResponseBodyCOROUTINE$_0, CoroutineImpl);
|
|
153
|
+
initMetadataForCoroutine($appendResponseBodyCOROUTINE$, CoroutineImpl);
|
|
152
154
|
initMetadataForLambda(toReadChannel$slambda, CoroutineImpl, VOID, [1]);
|
|
153
|
-
initMetadataForCoroutine($observeCOROUTINE
|
|
155
|
+
initMetadataForCoroutine($observeCOROUTINE$, CoroutineImpl);
|
|
154
156
|
initMetadataForObject(MDCContextKey, 'MDCContextKey');
|
|
155
157
|
initMetadataForObject(MDCContextElement, 'MDCContextElement', VOID, VOID, [Element]);
|
|
156
158
|
//endregion
|
|
157
|
-
function $logResponseExceptionCOROUTINE$
|
|
159
|
+
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
160
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
+
this.f4z_1 = _this__u8e3s4;
|
|
162
|
+
this.g4z_1 = message;
|
|
161
163
|
}
|
|
162
|
-
protoOf($logResponseExceptionCOROUTINE$
|
|
164
|
+
protoOf($logResponseExceptionCOROUTINE$).o9 = function () {
|
|
163
165
|
var suspendResult = this.i9_1;
|
|
164
166
|
$sm: do
|
|
165
167
|
try {
|
|
@@ -168,15 +170,15 @@
|
|
|
168
170
|
case 0:
|
|
169
171
|
this.h9_1 = 2;
|
|
170
172
|
this.g9_1 = 1;
|
|
171
|
-
suspendResult = this.
|
|
173
|
+
suspendResult = this.f4z_1.k4z_1.zw(this);
|
|
172
174
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
175
|
return suspendResult;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
continue $sm;
|
|
177
179
|
case 1:
|
|
178
|
-
var this_0 = this.
|
|
179
|
-
this.
|
|
180
|
+
var this_0 = this.g4z_1;
|
|
181
|
+
this.f4z_1.h4z_1.o4z(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
180
182
|
return Unit_instance;
|
|
181
183
|
case 2:
|
|
182
184
|
throw this.j9_1;
|
|
@@ -192,12 +194,12 @@
|
|
|
192
194
|
}
|
|
193
195
|
while (true);
|
|
194
196
|
};
|
|
195
|
-
function $logResponseBodyCOROUTINE$
|
|
197
|
+
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
196
198
|
CoroutineImpl.call(this, resultContinuation);
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
199
|
+
this.x4z_1 = _this__u8e3s4;
|
|
200
|
+
this.y4z_1 = message;
|
|
199
201
|
}
|
|
200
|
-
protoOf($logResponseBodyCOROUTINE$
|
|
202
|
+
protoOf($logResponseBodyCOROUTINE$).o9 = function () {
|
|
201
203
|
var suspendResult = this.i9_1;
|
|
202
204
|
$sm: do
|
|
203
205
|
try {
|
|
@@ -206,14 +208,14 @@
|
|
|
206
208
|
case 0:
|
|
207
209
|
this.h9_1 = 2;
|
|
208
210
|
this.g9_1 = 1;
|
|
209
|
-
suspendResult = this.
|
|
211
|
+
suspendResult = this.x4z_1.l4z_1.zw(this);
|
|
210
212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
213
|
return suspendResult;
|
|
212
214
|
}
|
|
213
215
|
|
|
214
216
|
continue $sm;
|
|
215
217
|
case 1:
|
|
216
|
-
this.
|
|
218
|
+
this.x4z_1.j4z_1.r8(this.y4z_1);
|
|
217
219
|
return Unit_instance;
|
|
218
220
|
case 2:
|
|
219
221
|
throw this.j9_1;
|
|
@@ -229,11 +231,11 @@
|
|
|
229
231
|
}
|
|
230
232
|
while (true);
|
|
231
233
|
};
|
|
232
|
-
function $closeResponseLogCOROUTINE$
|
|
234
|
+
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
233
235
|
CoroutineImpl.call(this, resultContinuation);
|
|
234
|
-
this.
|
|
236
|
+
this.h50_1 = _this__u8e3s4;
|
|
235
237
|
}
|
|
236
|
-
protoOf($closeResponseLogCOROUTINE$
|
|
238
|
+
protoOf($closeResponseLogCOROUTINE$).o9 = function () {
|
|
237
239
|
var suspendResult = this.i9_1;
|
|
238
240
|
$sm: do
|
|
239
241
|
try {
|
|
@@ -241,19 +243,19 @@
|
|
|
241
243
|
switch (tmp) {
|
|
242
244
|
case 0:
|
|
243
245
|
this.h9_1 = 2;
|
|
244
|
-
if (!this.
|
|
246
|
+
if (!this.h50_1.n4z_1.atomicfu$compareAndSet(false, true))
|
|
245
247
|
return Unit_instance;
|
|
246
248
|
this.g9_1 = 1;
|
|
247
|
-
suspendResult = this.
|
|
249
|
+
suspendResult = this.h50_1.k4z_1.zw(this);
|
|
248
250
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
249
251
|
return suspendResult;
|
|
250
252
|
}
|
|
251
253
|
|
|
252
254
|
continue $sm;
|
|
253
255
|
case 1:
|
|
254
|
-
var message = toString(trim(this.
|
|
256
|
+
var message = toString(trim(this.h50_1.j4z_1));
|
|
255
257
|
if (charSequenceLength(message) > 0) {
|
|
256
|
-
this.
|
|
258
|
+
this.h50_1.h4z_1.o4z(message);
|
|
257
259
|
}
|
|
258
260
|
|
|
259
261
|
return Unit_instance;
|
|
@@ -272,58 +274,58 @@
|
|
|
272
274
|
while (true);
|
|
273
275
|
};
|
|
274
276
|
function HttpClientCallLogger(logger) {
|
|
275
|
-
this.
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
}
|
|
283
|
-
protoOf(HttpClientCallLogger).
|
|
284
|
-
var
|
|
277
|
+
this.h4z_1 = logger;
|
|
278
|
+
this.i4z_1 = StringBuilder_init_$Create$();
|
|
279
|
+
this.j4z_1 = StringBuilder_init_$Create$();
|
|
280
|
+
this.k4z_1 = Job();
|
|
281
|
+
this.l4z_1 = Job();
|
|
282
|
+
this.m4z_1 = atomic$boolean$1(false);
|
|
283
|
+
this.n4z_1 = atomic$boolean$1(false);
|
|
284
|
+
}
|
|
285
|
+
protoOf(HttpClientCallLogger).i50 = function (message) {
|
|
286
|
+
var tmp0 = this.i4z_1;
|
|
285
287
|
// Inline function 'kotlin.text.trim' call
|
|
286
288
|
// Inline function 'kotlin.text.appendLine' call
|
|
287
289
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
288
290
|
// Inline function 'kotlin.text.appendLine' call
|
|
289
|
-
|
|
291
|
+
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
290
292
|
};
|
|
291
|
-
protoOf(HttpClientCallLogger).
|
|
292
|
-
var
|
|
293
|
+
protoOf(HttpClientCallLogger).j50 = function (message) {
|
|
294
|
+
var tmp0 = this.j4z_1;
|
|
293
295
|
// Inline function 'kotlin.text.trim' call
|
|
294
296
|
// Inline function 'kotlin.text.appendLine' call
|
|
295
297
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
296
298
|
// Inline function 'kotlin.text.appendLine' call
|
|
297
|
-
|
|
298
|
-
this.
|
|
299
|
+
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
300
|
+
this.l4z_1.yw();
|
|
299
301
|
};
|
|
300
|
-
protoOf(HttpClientCallLogger).
|
|
301
|
-
var tmp = new $logResponseExceptionCOROUTINE$
|
|
302
|
+
protoOf(HttpClientCallLogger).k50 = function (message, $completion) {
|
|
303
|
+
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
302
304
|
tmp.i9_1 = Unit_instance;
|
|
303
305
|
tmp.j9_1 = null;
|
|
304
306
|
return tmp.o9();
|
|
305
307
|
};
|
|
306
|
-
protoOf(HttpClientCallLogger).
|
|
307
|
-
var tmp = new $logResponseBodyCOROUTINE$
|
|
308
|
+
protoOf(HttpClientCallLogger).l50 = function (message, $completion) {
|
|
309
|
+
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
308
310
|
tmp.i9_1 = Unit_instance;
|
|
309
311
|
tmp.j9_1 = null;
|
|
310
312
|
return tmp.o9();
|
|
311
313
|
};
|
|
312
|
-
protoOf(HttpClientCallLogger).
|
|
313
|
-
if (!this.
|
|
314
|
+
protoOf(HttpClientCallLogger).m50 = function () {
|
|
315
|
+
if (!this.m4z_1.atomicfu$compareAndSet(false, true))
|
|
314
316
|
return Unit_instance;
|
|
315
317
|
try {
|
|
316
|
-
var message = toString(trim(this.
|
|
318
|
+
var message = toString(trim(this.i4z_1));
|
|
317
319
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
318
320
|
if (charSequenceLength(message) > 0) {
|
|
319
|
-
this.
|
|
321
|
+
this.h4z_1.o4z(message);
|
|
320
322
|
}
|
|
321
323
|
}finally {
|
|
322
|
-
this.
|
|
324
|
+
this.k4z_1.yw();
|
|
323
325
|
}
|
|
324
326
|
};
|
|
325
|
-
protoOf(HttpClientCallLogger).
|
|
326
|
-
var tmp = new $closeResponseLogCOROUTINE$
|
|
327
|
+
protoOf(HttpClientCallLogger).n50 = function ($completion) {
|
|
328
|
+
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
327
329
|
tmp.i9_1 = Unit_instance;
|
|
328
330
|
tmp.j9_1 = null;
|
|
329
331
|
return tmp.o9();
|
|
@@ -346,9 +348,9 @@
|
|
|
346
348
|
}
|
|
347
349
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
348
350
|
Enum.call(this, name, ordinal);
|
|
349
|
-
this.
|
|
350
|
-
this.
|
|
351
|
-
this.
|
|
351
|
+
this.q50_1 = info;
|
|
352
|
+
this.r50_1 = headers;
|
|
353
|
+
this.s50_1 = body;
|
|
352
354
|
}
|
|
353
355
|
function LogLevel_ALL_getInstance() {
|
|
354
356
|
LogLevel_initEntries();
|
|
@@ -372,28 +374,28 @@
|
|
|
372
374
|
}
|
|
373
375
|
function LoggedContent(originalContent, channel) {
|
|
374
376
|
ReadChannelContent.call(this);
|
|
375
|
-
this.
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
377
|
+
this.u50_1 = originalContent;
|
|
378
|
+
this.v50_1 = channel;
|
|
379
|
+
this.w50_1 = this.u50_1.a35();
|
|
380
|
+
this.x50_1 = this.u50_1.c35();
|
|
381
|
+
this.y50_1 = this.u50_1.b35();
|
|
382
|
+
this.z50_1 = this.u50_1.f2z();
|
|
381
383
|
}
|
|
382
|
-
protoOf(LoggedContent).
|
|
383
|
-
return this.
|
|
384
|
+
protoOf(LoggedContent).a35 = function () {
|
|
385
|
+
return this.w50_1;
|
|
384
386
|
};
|
|
385
|
-
protoOf(LoggedContent).
|
|
386
|
-
return this.
|
|
387
|
+
protoOf(LoggedContent).c35 = function () {
|
|
388
|
+
return this.x50_1;
|
|
387
389
|
};
|
|
388
|
-
protoOf(LoggedContent).
|
|
389
|
-
return this.
|
|
390
|
+
protoOf(LoggedContent).b35 = function () {
|
|
391
|
+
return this.y50_1;
|
|
390
392
|
};
|
|
391
|
-
protoOf(LoggedContent).
|
|
392
|
-
return this.d51_1;
|
|
393
|
-
};
|
|
394
|
-
protoOf(LoggedContent).d35 = function () {
|
|
393
|
+
protoOf(LoggedContent).f2z = function () {
|
|
395
394
|
return this.z50_1;
|
|
396
395
|
};
|
|
396
|
+
protoOf(LoggedContent).g35 = function () {
|
|
397
|
+
return this.v50_1;
|
|
398
|
+
};
|
|
397
399
|
function Companion() {
|
|
398
400
|
}
|
|
399
401
|
var Companion_instance;
|
|
@@ -405,7 +407,7 @@
|
|
|
405
407
|
}
|
|
406
408
|
function SimpleLogger() {
|
|
407
409
|
}
|
|
408
|
-
protoOf(SimpleLogger).
|
|
410
|
+
protoOf(SimpleLogger).o4z = function (message) {
|
|
409
411
|
println('HttpClient: ' + message);
|
|
410
412
|
};
|
|
411
413
|
function get_ClientCallLogger() {
|
|
@@ -426,19 +428,19 @@
|
|
|
426
428
|
function LoggingConfig() {
|
|
427
429
|
var tmp = this;
|
|
428
430
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
429
|
-
tmp.
|
|
431
|
+
tmp.a51_1 = ArrayList_init_$Create$();
|
|
430
432
|
var tmp_0 = this;
|
|
431
433
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
432
|
-
tmp_0.
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
434
|
+
tmp_0.b51_1 = ArrayList_init_$Create$();
|
|
435
|
+
this.c51_1 = null;
|
|
436
|
+
this.d51_1 = LoggingFormat_Default_getInstance();
|
|
437
|
+
this.e51_1 = LogLevel_HEADERS_getInstance();
|
|
436
438
|
}
|
|
437
|
-
protoOf(LoggingConfig).
|
|
438
|
-
this.
|
|
439
|
+
protoOf(LoggingConfig).f51 = function (value) {
|
|
440
|
+
this.c51_1 = value;
|
|
439
441
|
};
|
|
440
|
-
protoOf(LoggingConfig).
|
|
441
|
-
var tmp0_elvis_lhs = this.
|
|
442
|
+
protoOf(LoggingConfig).g51 = function () {
|
|
443
|
+
var tmp0_elvis_lhs = this.c51_1;
|
|
442
444
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
443
445
|
};
|
|
444
446
|
var LoggingFormat_Default_instance;
|
|
@@ -460,17 +462,17 @@
|
|
|
460
462
|
// Inline function 'kotlin.apply' call
|
|
461
463
|
var this_0 = StringBuilder_init_$Create$();
|
|
462
464
|
// Inline function 'kotlin.text.isEmpty' call
|
|
463
|
-
var this_1 = _this__u8e3s4.
|
|
465
|
+
var this_1 = _this__u8e3s4.f34();
|
|
464
466
|
if (charSequenceLength(this_1) === 0) {
|
|
465
467
|
this_0.r8('/');
|
|
466
468
|
} else {
|
|
467
|
-
this_0.r8(_this__u8e3s4.
|
|
469
|
+
this_0.r8(_this__u8e3s4.f34());
|
|
468
470
|
}
|
|
469
471
|
// Inline function 'kotlin.text.isEmpty' call
|
|
470
|
-
var this_2 = _this__u8e3s4.
|
|
472
|
+
var this_2 = _this__u8e3s4.i34();
|
|
471
473
|
if (!(charSequenceLength(this_2) === 0)) {
|
|
472
474
|
this_0.r8('?');
|
|
473
|
-
this_0.r8(_this__u8e3s4.
|
|
475
|
+
this_0.r8(_this__u8e3s4.i34());
|
|
474
476
|
}
|
|
475
477
|
return this_0.toString();
|
|
476
478
|
}
|
|
@@ -482,10 +484,10 @@
|
|
|
482
484
|
}
|
|
483
485
|
var tmp;
|
|
484
486
|
if (content instanceof ByteArrayContent) {
|
|
485
|
-
tmp = toLong(content.
|
|
487
|
+
tmp = toLong(content.d35().length);
|
|
486
488
|
} else {
|
|
487
489
|
if (content instanceof ContentWrapper) {
|
|
488
|
-
tmp = computeRequestBodySize(content.
|
|
490
|
+
tmp = computeRequestBodySize(content.m35());
|
|
489
491
|
} else {
|
|
490
492
|
if (content instanceof NoContent) {
|
|
491
493
|
tmp = new Long(0, 0);
|
|
@@ -502,27 +504,27 @@
|
|
|
502
504
|
return tmp;
|
|
503
505
|
}
|
|
504
506
|
function Context(context) {
|
|
505
|
-
this.
|
|
507
|
+
this.h51_1 = context;
|
|
506
508
|
}
|
|
507
|
-
protoOf(Context).
|
|
508
|
-
return this.
|
|
509
|
+
protoOf(Context).i51 = function (content, $completion) {
|
|
510
|
+
return this.h51_1.k2q(content, $completion);
|
|
509
511
|
};
|
|
510
|
-
protoOf(Context).
|
|
511
|
-
return this.
|
|
512
|
+
protoOf(Context).j51 = function ($completion) {
|
|
513
|
+
return this.h51_1.l2q($completion);
|
|
512
514
|
};
|
|
513
515
|
function SendHook$install$slambda($handler, resultContinuation) {
|
|
514
|
-
this.
|
|
516
|
+
this.s51_1 = $handler;
|
|
515
517
|
CoroutineImpl.call(this, resultContinuation);
|
|
516
518
|
}
|
|
517
|
-
protoOf(SendHook$install$slambda).
|
|
518
|
-
var tmp = this.
|
|
519
|
+
protoOf(SendHook$install$slambda).q3g = function ($this$intercept, it, $completion) {
|
|
520
|
+
var tmp = this.r3g($this$intercept, it, $completion);
|
|
519
521
|
tmp.i9_1 = Unit_instance;
|
|
520
522
|
tmp.j9_1 = null;
|
|
521
523
|
return tmp.o9();
|
|
522
524
|
};
|
|
523
525
|
protoOf(SendHook$install$slambda).da = function (p1, p2, $completion) {
|
|
524
526
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
525
|
-
return this.
|
|
527
|
+
return this.q3g(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
526
528
|
};
|
|
527
529
|
protoOf(SendHook$install$slambda).o9 = function () {
|
|
528
530
|
var suspendResult = this.i9_1;
|
|
@@ -533,7 +535,7 @@
|
|
|
533
535
|
case 0:
|
|
534
536
|
this.h9_1 = 2;
|
|
535
537
|
this.g9_1 = 1;
|
|
536
|
-
suspendResult = this.
|
|
538
|
+
suspendResult = this.s51_1(new Context(this.t51_1), this.t51_1.g2r_1, this);
|
|
537
539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
538
540
|
return suspendResult;
|
|
539
541
|
}
|
|
@@ -555,52 +557,52 @@
|
|
|
555
557
|
}
|
|
556
558
|
while (true);
|
|
557
559
|
};
|
|
558
|
-
protoOf(SendHook$install$slambda).
|
|
559
|
-
var i = new SendHook$install$slambda(this.
|
|
560
|
-
i.
|
|
561
|
-
i.
|
|
560
|
+
protoOf(SendHook$install$slambda).r3g = function ($this$intercept, it, completion) {
|
|
561
|
+
var i = new SendHook$install$slambda(this.s51_1, completion);
|
|
562
|
+
i.t51_1 = $this$intercept;
|
|
563
|
+
i.u51_1 = it;
|
|
562
564
|
return i;
|
|
563
565
|
};
|
|
564
566
|
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
565
567
|
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
566
568
|
var l = function ($this$intercept, it, $completion) {
|
|
567
|
-
return i.
|
|
569
|
+
return i.q3g($this$intercept, it, $completion);
|
|
568
570
|
};
|
|
569
571
|
l.$arity = 2;
|
|
570
572
|
return l;
|
|
571
573
|
}
|
|
572
574
|
function SendHook() {
|
|
573
575
|
}
|
|
574
|
-
protoOf(SendHook).
|
|
575
|
-
var tmp = Phases_getInstance().
|
|
576
|
-
client.
|
|
576
|
+
protoOf(SendHook).v51 = function (client, handler) {
|
|
577
|
+
var tmp = Phases_getInstance().h3i_1;
|
|
578
|
+
client.y3f_1.k2r(tmp, SendHook$install$slambda_0(handler, null));
|
|
577
579
|
};
|
|
578
|
-
protoOf(SendHook).
|
|
579
|
-
return this.
|
|
580
|
+
protoOf(SendHook).s3p = function (client, handler) {
|
|
581
|
+
return this.v51(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
580
582
|
};
|
|
581
583
|
var SendHook_instance;
|
|
582
584
|
function SendHook_getInstance() {
|
|
583
585
|
return SendHook_instance;
|
|
584
586
|
}
|
|
585
587
|
function Context_0(context) {
|
|
586
|
-
this.
|
|
588
|
+
this.w51_1 = context;
|
|
587
589
|
}
|
|
588
|
-
protoOf(Context_0).
|
|
589
|
-
return this.
|
|
590
|
+
protoOf(Context_0).i4d = function (response, $completion) {
|
|
591
|
+
return this.w51_1.k2q(response, $completion);
|
|
590
592
|
};
|
|
591
593
|
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
592
|
-
this.
|
|
594
|
+
this.f52_1 = $handler;
|
|
593
595
|
CoroutineImpl.call(this, resultContinuation);
|
|
594
596
|
}
|
|
595
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
596
|
-
var tmp = this.
|
|
597
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).f3q = function ($this$intercept, it, $completion) {
|
|
598
|
+
var tmp = this.g3q($this$intercept, it, $completion);
|
|
597
599
|
tmp.i9_1 = Unit_instance;
|
|
598
600
|
tmp.j9_1 = null;
|
|
599
601
|
return tmp.o9();
|
|
600
602
|
};
|
|
601
603
|
protoOf(ResponseAfterEncodingHook$install$slambda).da = function (p1, p2, $completion) {
|
|
602
604
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
603
|
-
return this.
|
|
605
|
+
return this.f3q(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
604
606
|
};
|
|
605
607
|
protoOf(ResponseAfterEncodingHook$install$slambda).o9 = function () {
|
|
606
608
|
var suspendResult = this.i9_1;
|
|
@@ -611,7 +613,7 @@
|
|
|
611
613
|
case 0:
|
|
612
614
|
this.h9_1 = 2;
|
|
613
615
|
this.g9_1 = 1;
|
|
614
|
-
suspendResult = this.
|
|
616
|
+
suspendResult = this.f52_1(new Context_0(this.g52_1), this.g52_1.j2q(), this);
|
|
615
617
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
616
618
|
return suspendResult;
|
|
617
619
|
}
|
|
@@ -633,53 +635,53 @@
|
|
|
633
635
|
}
|
|
634
636
|
while (true);
|
|
635
637
|
};
|
|
636
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).
|
|
637
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.
|
|
638
|
-
i.
|
|
639
|
-
i.
|
|
638
|
+
protoOf(ResponseAfterEncodingHook$install$slambda).g3q = function ($this$intercept, it, completion) {
|
|
639
|
+
var i = new ResponseAfterEncodingHook$install$slambda(this.f52_1, completion);
|
|
640
|
+
i.g52_1 = $this$intercept;
|
|
641
|
+
i.h52_1 = it;
|
|
640
642
|
return i;
|
|
641
643
|
};
|
|
642
644
|
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
643
645
|
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
644
646
|
var l = function ($this$intercept, it, $completion) {
|
|
645
|
-
return i.
|
|
647
|
+
return i.f3q($this$intercept, it, $completion);
|
|
646
648
|
};
|
|
647
649
|
l.$arity = 2;
|
|
648
650
|
return l;
|
|
649
651
|
}
|
|
650
652
|
function ResponseAfterEncodingHook() {
|
|
651
653
|
}
|
|
652
|
-
protoOf(ResponseAfterEncodingHook).
|
|
654
|
+
protoOf(ResponseAfterEncodingHook).i52 = function (client, handler) {
|
|
653
655
|
var afterState = new PipelinePhase('AfterState');
|
|
654
|
-
client.
|
|
655
|
-
client.
|
|
656
|
+
client.z3f_1.h2r(Phases_getInstance_0().j3q_1, afterState);
|
|
657
|
+
client.z3f_1.k2r(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
656
658
|
};
|
|
657
|
-
protoOf(ResponseAfterEncodingHook).
|
|
658
|
-
return this.
|
|
659
|
+
protoOf(ResponseAfterEncodingHook).s3p = function (client, handler) {
|
|
660
|
+
return this.i52(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
659
661
|
};
|
|
660
662
|
var ResponseAfterEncodingHook_instance;
|
|
661
663
|
function ResponseAfterEncodingHook_getInstance() {
|
|
662
664
|
return ResponseAfterEncodingHook_instance;
|
|
663
665
|
}
|
|
664
666
|
function Context_1(context) {
|
|
665
|
-
this.
|
|
667
|
+
this.j52_1 = context;
|
|
666
668
|
}
|
|
667
|
-
protoOf(Context_1).
|
|
668
|
-
return this.
|
|
669
|
+
protoOf(Context_1).k52 = function ($completion) {
|
|
670
|
+
return this.j52_1.l2q($completion);
|
|
669
671
|
};
|
|
670
672
|
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
671
|
-
this.
|
|
673
|
+
this.t52_1 = $handler;
|
|
672
674
|
CoroutineImpl.call(this, resultContinuation);
|
|
673
675
|
}
|
|
674
|
-
protoOf(ResponseHook$install$slambda).
|
|
675
|
-
var tmp = this.
|
|
676
|
+
protoOf(ResponseHook$install$slambda).f3q = function ($this$intercept, it, $completion) {
|
|
677
|
+
var tmp = this.g3q($this$intercept, it, $completion);
|
|
676
678
|
tmp.i9_1 = Unit_instance;
|
|
677
679
|
tmp.j9_1 = null;
|
|
678
680
|
return tmp.o9();
|
|
679
681
|
};
|
|
680
682
|
protoOf(ResponseHook$install$slambda).da = function (p1, p2, $completion) {
|
|
681
683
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
682
|
-
return this.
|
|
684
|
+
return this.f3q(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
683
685
|
};
|
|
684
686
|
protoOf(ResponseHook$install$slambda).o9 = function () {
|
|
685
687
|
var suspendResult = this.i9_1;
|
|
@@ -690,7 +692,7 @@
|
|
|
690
692
|
case 0:
|
|
691
693
|
this.h9_1 = 2;
|
|
692
694
|
this.g9_1 = 1;
|
|
693
|
-
suspendResult = this.
|
|
695
|
+
suspendResult = this.t52_1(new Context_1(this.u52_1), this.u52_1.j2q(), this);
|
|
694
696
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
695
697
|
return suspendResult;
|
|
696
698
|
}
|
|
@@ -712,52 +714,52 @@
|
|
|
712
714
|
}
|
|
713
715
|
while (true);
|
|
714
716
|
};
|
|
715
|
-
protoOf(ResponseHook$install$slambda).
|
|
716
|
-
var i = new ResponseHook$install$slambda(this.
|
|
717
|
-
i.
|
|
718
|
-
i.
|
|
717
|
+
protoOf(ResponseHook$install$slambda).g3q = function ($this$intercept, it, completion) {
|
|
718
|
+
var i = new ResponseHook$install$slambda(this.t52_1, completion);
|
|
719
|
+
i.u52_1 = $this$intercept;
|
|
720
|
+
i.v52_1 = it;
|
|
719
721
|
return i;
|
|
720
722
|
};
|
|
721
723
|
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
722
724
|
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
723
725
|
var l = function ($this$intercept, it, $completion) {
|
|
724
|
-
return i.
|
|
726
|
+
return i.f3q($this$intercept, it, $completion);
|
|
725
727
|
};
|
|
726
728
|
l.$arity = 2;
|
|
727
729
|
return l;
|
|
728
730
|
}
|
|
729
731
|
function ResponseHook() {
|
|
730
732
|
}
|
|
731
|
-
protoOf(ResponseHook).
|
|
732
|
-
var tmp = Phases_getInstance_0().
|
|
733
|
-
client.
|
|
733
|
+
protoOf(ResponseHook).w52 = function (client, handler) {
|
|
734
|
+
var tmp = Phases_getInstance_0().j3q_1;
|
|
735
|
+
client.z3f_1.k2r(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
734
736
|
};
|
|
735
|
-
protoOf(ResponseHook).
|
|
736
|
-
return this.
|
|
737
|
+
protoOf(ResponseHook).s3p = function (client, handler) {
|
|
738
|
+
return this.w52(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
737
739
|
};
|
|
738
740
|
var ResponseHook_instance;
|
|
739
741
|
function ResponseHook_getInstance() {
|
|
740
742
|
return ResponseHook_instance;
|
|
741
743
|
}
|
|
742
744
|
function Context_2(context) {
|
|
743
|
-
this.
|
|
745
|
+
this.x52_1 = context;
|
|
744
746
|
}
|
|
745
|
-
protoOf(Context_2).
|
|
746
|
-
return this.
|
|
747
|
+
protoOf(Context_2).y52 = function ($completion) {
|
|
748
|
+
return this.x52_1.l2q($completion);
|
|
747
749
|
};
|
|
748
750
|
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
749
|
-
this.
|
|
751
|
+
this.h53_1 = $handler;
|
|
750
752
|
CoroutineImpl.call(this, resultContinuation);
|
|
751
753
|
}
|
|
752
|
-
protoOf(ReceiveHook$install$slambda).
|
|
753
|
-
var tmp = this.
|
|
754
|
+
protoOf(ReceiveHook$install$slambda).l3h = function ($this$intercept, it, $completion) {
|
|
755
|
+
var tmp = this.m3h($this$intercept, it, $completion);
|
|
754
756
|
tmp.i9_1 = Unit_instance;
|
|
755
757
|
tmp.j9_1 = null;
|
|
756
758
|
return tmp.o9();
|
|
757
759
|
};
|
|
758
760
|
protoOf(ReceiveHook$install$slambda).da = function (p1, p2, $completion) {
|
|
759
761
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
760
|
-
return this.
|
|
762
|
+
return this.l3h(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
761
763
|
};
|
|
762
764
|
protoOf(ReceiveHook$install$slambda).o9 = function () {
|
|
763
765
|
var suspendResult = this.i9_1;
|
|
@@ -768,7 +770,7 @@
|
|
|
768
770
|
case 0:
|
|
769
771
|
this.h9_1 = 2;
|
|
770
772
|
this.g9_1 = 1;
|
|
771
|
-
suspendResult = this.
|
|
773
|
+
suspendResult = this.h53_1(new Context_2(this.i53_1), this.i53_1.g2r_1, this);
|
|
772
774
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
773
775
|
return suspendResult;
|
|
774
776
|
}
|
|
@@ -790,28 +792,28 @@
|
|
|
790
792
|
}
|
|
791
793
|
while (true);
|
|
792
794
|
};
|
|
793
|
-
protoOf(ReceiveHook$install$slambda).
|
|
794
|
-
var i = new ReceiveHook$install$slambda(this.
|
|
795
|
-
i.
|
|
796
|
-
i.
|
|
795
|
+
protoOf(ReceiveHook$install$slambda).m3h = function ($this$intercept, it, completion) {
|
|
796
|
+
var i = new ReceiveHook$install$slambda(this.h53_1, completion);
|
|
797
|
+
i.i53_1 = $this$intercept;
|
|
798
|
+
i.j53_1 = it;
|
|
797
799
|
return i;
|
|
798
800
|
};
|
|
799
801
|
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
800
802
|
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
801
803
|
var l = function ($this$intercept, it, $completion) {
|
|
802
|
-
return i.
|
|
804
|
+
return i.l3h($this$intercept, it, $completion);
|
|
803
805
|
};
|
|
804
806
|
l.$arity = 2;
|
|
805
807
|
return l;
|
|
806
808
|
}
|
|
807
809
|
function ReceiveHook() {
|
|
808
810
|
}
|
|
809
|
-
protoOf(ReceiveHook).
|
|
810
|
-
var tmp = Phases_getInstance_1().
|
|
811
|
-
client.
|
|
811
|
+
protoOf(ReceiveHook).k53 = function (client, handler) {
|
|
812
|
+
var tmp = Phases_getInstance_1().v3i_1;
|
|
813
|
+
client.x3f_1.k2r(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
812
814
|
};
|
|
813
|
-
protoOf(ReceiveHook).
|
|
814
|
-
return this.
|
|
815
|
+
protoOf(ReceiveHook).s3p = function (client, handler) {
|
|
816
|
+
return this.k53(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
815
817
|
};
|
|
816
818
|
var ReceiveHook_instance;
|
|
817
819
|
function ReceiveHook_getInstance() {
|
|
@@ -826,27 +828,26 @@
|
|
|
826
828
|
}
|
|
827
829
|
function Logging$lambda($this$createClientPlugin) {
|
|
828
830
|
_init_properties_Logging_kt__66pui5();
|
|
829
|
-
var logger = $this$createClientPlugin.
|
|
830
|
-
var level = $this$createClientPlugin.
|
|
831
|
-
var filters = $this$createClientPlugin.
|
|
832
|
-
var sanitizedHeaders = $this$createClientPlugin.
|
|
833
|
-
var okHttpFormat = $this$createClientPlugin.
|
|
831
|
+
var logger = $this$createClientPlugin.n3q_1.g51();
|
|
832
|
+
var level = $this$createClientPlugin.n3q_1.e51_1;
|
|
833
|
+
var filters = $this$createClientPlugin.n3q_1.a51_1;
|
|
834
|
+
var sanitizedHeaders = $this$createClientPlugin.n3q_1.b51_1;
|
|
835
|
+
var okHttpFormat = $this$createClientPlugin.n3q_1.d51_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
834
836
|
var tmp = SendHook_instance;
|
|
835
|
-
$this$createClientPlugin.
|
|
837
|
+
$this$createClientPlugin.q3q(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
836
838
|
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
837
|
-
$this$createClientPlugin.
|
|
839
|
+
$this$createClientPlugin.q3q(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, $this$createClientPlugin, null));
|
|
838
840
|
var tmp_1 = ResponseHook_instance;
|
|
839
|
-
$this$createClientPlugin.
|
|
841
|
+
$this$createClientPlugin.q3q(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
840
842
|
var tmp_2 = ReceiveHook_instance;
|
|
841
|
-
$this$createClientPlugin.
|
|
843
|
+
$this$createClientPlugin.q3q(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
842
844
|
if (okHttpFormat)
|
|
843
845
|
return Unit_instance;
|
|
844
|
-
if (!level.
|
|
846
|
+
if (!level.s50_1)
|
|
845
847
|
return Unit_instance;
|
|
846
|
-
var observer = Logging$lambda$slambda_8(level, null);
|
|
847
848
|
var tmp_3 = get_ResponseObserver();
|
|
848
|
-
var
|
|
849
|
-
|
|
849
|
+
var responseObserver = tmp_3.c3j(Logging$lambda$lambda(level));
|
|
850
|
+
get_ResponseObserver().d3j(responseObserver, $this$createClientPlugin.m3q_1);
|
|
850
851
|
return Unit_instance;
|
|
851
852
|
}
|
|
852
853
|
function invoke$shouldBeLogged(filters, request) {
|
|
@@ -894,13 +895,13 @@
|
|
|
894
895
|
return level.equals(LogLevel_BODY_getInstance()) || level.equals(LogLevel_ALL_getInstance());
|
|
895
896
|
}
|
|
896
897
|
function invoke$detectIfBinary($this_createClientPlugin, body, contentLength, contentType, headers, $completion) {
|
|
897
|
-
var tmp = new $invoke$detectIfBinaryCOROUTINE$
|
|
898
|
+
var tmp = new $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, $completion);
|
|
898
899
|
tmp.i9_1 = Unit_instance;
|
|
899
900
|
tmp.j9_1 = null;
|
|
900
901
|
return tmp.o9();
|
|
901
902
|
}
|
|
902
903
|
function invoke$logRequestBody($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion) {
|
|
903
|
-
var tmp = new $invoke$logRequestBodyCOROUTINE$
|
|
904
|
+
var tmp = new $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, $completion);
|
|
904
905
|
tmp.i9_1 = Unit_instance;
|
|
905
906
|
tmp.j9_1 = null;
|
|
906
907
|
return tmp.o9();
|
|
@@ -913,25 +914,25 @@
|
|
|
913
914
|
tmp = process;
|
|
914
915
|
}
|
|
915
916
|
process = tmp;
|
|
916
|
-
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$
|
|
917
|
+
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, $completion);
|
|
917
918
|
tmp_0.i9_1 = Unit_instance;
|
|
918
919
|
tmp_0.j9_1 = null;
|
|
919
920
|
return tmp_0.o9();
|
|
920
921
|
}
|
|
921
922
|
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion) {
|
|
922
|
-
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$
|
|
923
|
+
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, $completion);
|
|
923
924
|
tmp.i9_1 = Unit_instance;
|
|
924
925
|
tmp.j9_1 = null;
|
|
925
926
|
return tmp.o9();
|
|
926
927
|
}
|
|
927
928
|
function invoke$logResponseBody($this_createClientPlugin, response, body, logLines, $completion) {
|
|
928
|
-
var tmp = new $invoke$logResponseBodyCOROUTINE$
|
|
929
|
+
var tmp = new $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, $completion);
|
|
929
930
|
tmp.i9_1 = Unit_instance;
|
|
930
931
|
tmp.j9_1 = null;
|
|
931
932
|
return tmp.o9();
|
|
932
933
|
}
|
|
933
934
|
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, $completion) {
|
|
934
|
-
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$
|
|
935
|
+
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, $completion);
|
|
935
936
|
tmp.i9_1 = Unit_instance;
|
|
936
937
|
tmp.j9_1 = null;
|
|
937
938
|
return tmp.o9();
|
|
@@ -939,10 +940,10 @@
|
|
|
939
940
|
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
940
941
|
var requestLog = StringBuilder_init_$Create$();
|
|
941
942
|
// Inline function 'kotlin.text.appendLine' call
|
|
942
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
943
|
+
var value = 'BODY Content-Type: ' + toString_0(content.a35());
|
|
943
944
|
// Inline function 'kotlin.text.appendLine' call
|
|
944
945
|
requestLog.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
945
|
-
var tmp0_safe_receiver = content.
|
|
946
|
+
var tmp0_safe_receiver = content.a35();
|
|
946
947
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
947
948
|
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp1_elvis_lhs;
|
|
948
949
|
var channel = new ByteChannel();
|
|
@@ -952,34 +953,34 @@
|
|
|
952
953
|
return observe(content, channel, $completion);
|
|
953
954
|
}
|
|
954
955
|
function invoke$logRequestException(level, logger, context, cause) {
|
|
955
|
-
if (level.
|
|
956
|
-
logger.
|
|
956
|
+
if (level.q50_1) {
|
|
957
|
+
logger.o4z('REQUEST ' + Url(context.x3h_1).toString() + ' failed with exception: ' + cause.toString());
|
|
957
958
|
}
|
|
958
959
|
}
|
|
959
960
|
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
960
|
-
var tmp = request.
|
|
961
|
+
var tmp = request.a3i_1;
|
|
961
962
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
962
963
|
var callLogger = new HttpClientCallLogger(logger);
|
|
963
|
-
request.
|
|
964
|
+
request.c3i_1.q2j(get_ClientCallLogger(), callLogger);
|
|
964
965
|
// Inline function 'kotlin.text.buildString' call
|
|
965
966
|
// Inline function 'kotlin.apply' call
|
|
966
967
|
var this_0 = StringBuilder_init_$Create$();
|
|
967
|
-
if (level.
|
|
968
|
+
if (level.q50_1) {
|
|
968
969
|
// Inline function 'kotlin.text.appendLine' call
|
|
969
|
-
var value = 'REQUEST: ' + Url(request.
|
|
970
|
+
var value = 'REQUEST: ' + Url(request.x3h_1).toString();
|
|
970
971
|
// Inline function 'kotlin.text.appendLine' call
|
|
971
972
|
this_0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
972
973
|
// Inline function 'kotlin.text.appendLine' call
|
|
973
|
-
var value_0 = 'METHOD: ' + request.
|
|
974
|
+
var value_0 = 'METHOD: ' + request.y3h_1.toString();
|
|
974
975
|
// Inline function 'kotlin.text.appendLine' call
|
|
975
976
|
this_0.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
976
977
|
}
|
|
977
|
-
if (level.
|
|
978
|
+
if (level.r50_1) {
|
|
978
979
|
// Inline function 'kotlin.text.appendLine' call
|
|
979
980
|
var value_1 = 'COMMON HEADERS';
|
|
980
981
|
// Inline function 'kotlin.text.appendLine' call
|
|
981
982
|
this_0.r8(value_1).s8(_Char___init__impl__6a9atx(10));
|
|
982
|
-
logHeaders(this_0, request.
|
|
983
|
+
logHeaders(this_0, request.z3h_1.v2n(), sanitizedHeaders);
|
|
983
984
|
// Inline function 'kotlin.text.appendLine' call
|
|
984
985
|
var value_2 = 'CONTENT HEADERS';
|
|
985
986
|
// Inline function 'kotlin.text.appendLine' call
|
|
@@ -990,7 +991,7 @@
|
|
|
990
991
|
var _iterator__ex2g4s = sanitizedHeaders.p();
|
|
991
992
|
while (_iterator__ex2g4s.q()) {
|
|
992
993
|
var element = _iterator__ex2g4s.r();
|
|
993
|
-
if (element.
|
|
994
|
+
if (element.h58_1(HttpHeaders_getInstance().r2v_1)) {
|
|
994
995
|
tmp$ret$9 = element;
|
|
995
996
|
break $l$block;
|
|
996
997
|
}
|
|
@@ -998,14 +999,14 @@
|
|
|
998
999
|
tmp$ret$9 = null;
|
|
999
1000
|
}
|
|
1000
1001
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
1001
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1002
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g58_1;
|
|
1002
1003
|
var tmp$ret$11;
|
|
1003
1004
|
$l$block_0: {
|
|
1004
1005
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1005
1006
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
1006
1007
|
while (_iterator__ex2g4s_0.q()) {
|
|
1007
1008
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
1008
|
-
if (element_0.
|
|
1009
|
+
if (element_0.h58_1(HttpHeaders_getInstance().u2v_1)) {
|
|
1009
1010
|
tmp$ret$11 = element_0;
|
|
1010
1011
|
break $l$block_0;
|
|
1011
1012
|
}
|
|
@@ -1013,66 +1014,66 @@
|
|
|
1013
1014
|
tmp$ret$11 = null;
|
|
1014
1015
|
}
|
|
1015
1016
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
1016
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
1017
|
-
var tmp2_safe_receiver = content.
|
|
1017
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g58_1;
|
|
1018
|
+
var tmp2_safe_receiver = content.c35();
|
|
1018
1019
|
if (tmp2_safe_receiver == null)
|
|
1019
1020
|
null;
|
|
1020
1021
|
else {
|
|
1021
1022
|
// Inline function 'kotlin.let' call
|
|
1022
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
1023
|
+
var tmp_0 = HttpHeaders_getInstance().r2v_1;
|
|
1023
1024
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1024
1025
|
}
|
|
1025
|
-
var tmp3_safe_receiver = content.
|
|
1026
|
+
var tmp3_safe_receiver = content.a35();
|
|
1026
1027
|
if (tmp3_safe_receiver == null)
|
|
1027
1028
|
null;
|
|
1028
1029
|
else {
|
|
1029
1030
|
// Inline function 'kotlin.let' call
|
|
1030
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
1031
|
+
var tmp_1 = HttpHeaders_getInstance().u2v_1;
|
|
1031
1032
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1032
1033
|
}
|
|
1033
|
-
logHeaders(this_0, content.
|
|
1034
|
+
logHeaders(this_0, content.f2z().v2n(), sanitizedHeaders);
|
|
1034
1035
|
}
|
|
1035
1036
|
var message = this_0.toString();
|
|
1036
1037
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1037
1038
|
if (charSequenceLength(message) > 0) {
|
|
1038
|
-
callLogger.
|
|
1039
|
+
callLogger.i50(message);
|
|
1039
1040
|
}
|
|
1040
1041
|
var tmp_2;
|
|
1041
1042
|
// Inline function 'kotlin.text.isEmpty' call
|
|
1042
1043
|
if (charSequenceLength(message) === 0) {
|
|
1043
1044
|
tmp_2 = true;
|
|
1044
1045
|
} else {
|
|
1045
|
-
tmp_2 = !level.
|
|
1046
|
+
tmp_2 = !level.s50_1;
|
|
1046
1047
|
}
|
|
1047
1048
|
if (tmp_2) {
|
|
1048
|
-
callLogger.
|
|
1049
|
+
callLogger.m50();
|
|
1049
1050
|
return null;
|
|
1050
1051
|
}
|
|
1051
1052
|
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1052
1053
|
}
|
|
1053
1054
|
function invoke$logResponseException(level, log, request, cause) {
|
|
1054
|
-
if (!level.
|
|
1055
|
+
if (!level.q50_1)
|
|
1055
1056
|
return Unit_instance;
|
|
1056
|
-
log.r8('RESPONSE ' + request.
|
|
1057
|
+
log.r8('RESPONSE ' + request.o3j().toString() + ' failed with exception: ' + cause.toString());
|
|
1057
1058
|
}
|
|
1058
1059
|
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1060
|
+
this.q58_1 = $okHttpFormat;
|
|
1061
|
+
this.r58_1 = $logger;
|
|
1062
|
+
this.s58_1 = $filters;
|
|
1063
|
+
this.t58_1 = $sanitizedHeaders;
|
|
1064
|
+
this.u58_1 = $level;
|
|
1065
|
+
this.v58_1 = $this_createClientPlugin;
|
|
1065
1066
|
CoroutineImpl.call(this, resultContinuation);
|
|
1066
1067
|
}
|
|
1067
|
-
protoOf(Logging$lambda$slambda).
|
|
1068
|
-
var tmp = this.
|
|
1068
|
+
protoOf(Logging$lambda$slambda).j59 = function ($this$on, request, $completion) {
|
|
1069
|
+
var tmp = this.k59($this$on, request, $completion);
|
|
1069
1070
|
tmp.i9_1 = Unit_instance;
|
|
1070
1071
|
tmp.j9_1 = null;
|
|
1071
1072
|
return tmp.o9();
|
|
1072
1073
|
};
|
|
1073
1074
|
protoOf(Logging$lambda$slambda).da = function (p1, p2, $completion) {
|
|
1074
1075
|
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1075
|
-
return this.
|
|
1076
|
+
return this.j59(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1076
1077
|
};
|
|
1077
1078
|
protoOf(Logging$lambda$slambda).o9 = function () {
|
|
1078
1079
|
var suspendResult = this.i9_1;
|
|
@@ -1082,16 +1083,16 @@
|
|
|
1082
1083
|
switch (tmp) {
|
|
1083
1084
|
case 0:
|
|
1084
1085
|
this.h9_1 = 16;
|
|
1085
|
-
if (!invoke$shouldBeLogged(this.
|
|
1086
|
-
this.
|
|
1086
|
+
if (!invoke$shouldBeLogged(this.s58_1, this.x58_1)) {
|
|
1087
|
+
this.x58_1.c3i_1.q2j(get_DisableLogging(), Unit_instance);
|
|
1087
1088
|
return Unit_instance;
|
|
1088
1089
|
}
|
|
1089
1090
|
|
|
1090
|
-
if (this.
|
|
1091
|
+
if (this.q58_1) {
|
|
1091
1092
|
var tmp_0 = this;
|
|
1092
|
-
tmp_0.
|
|
1093
|
+
tmp_0.y58_1 = ArrayList_init_$Create$();
|
|
1093
1094
|
this.g9_1 = 10;
|
|
1094
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.
|
|
1095
|
+
suspendResult = invoke$logRequestOkHttpFormat(this.t58_1, this.u58_1, this.v58_1, this.x58_1, this.y58_1, this);
|
|
1095
1096
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1096
1097
|
return suspendResult;
|
|
1097
1098
|
}
|
|
@@ -1104,14 +1105,14 @@
|
|
|
1104
1105
|
case 1:
|
|
1105
1106
|
this.h9_1 = 3;
|
|
1106
1107
|
this.g9_1 = 2;
|
|
1107
|
-
suspendResult = invoke$logRequest(this.
|
|
1108
|
+
suspendResult = invoke$logRequest(this.r58_1, this.u58_1, this.t58_1, this.x58_1, this);
|
|
1108
1109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1109
1110
|
return suspendResult;
|
|
1110
1111
|
}
|
|
1111
1112
|
|
|
1112
1113
|
continue $sm;
|
|
1113
1114
|
case 2:
|
|
1114
|
-
this.
|
|
1115
|
+
this.z58_1 = suspendResult;
|
|
1115
1116
|
this.h9_1 = 16;
|
|
1116
1117
|
this.g9_1 = 4;
|
|
1117
1118
|
continue $sm;
|
|
@@ -1119,9 +1120,9 @@
|
|
|
1119
1120
|
this.h9_1 = 16;
|
|
1120
1121
|
var tmp_1 = this.j9_1;
|
|
1121
1122
|
if (tmp_1 instanceof Error) {
|
|
1122
|
-
this.
|
|
1123
|
+
this.a59_1 = this.j9_1;
|
|
1123
1124
|
var tmp_2 = this;
|
|
1124
|
-
tmp_2.
|
|
1125
|
+
tmp_2.z58_1 = null;
|
|
1125
1126
|
this.g9_1 = 4;
|
|
1126
1127
|
continue $sm;
|
|
1127
1128
|
} else {
|
|
@@ -1130,23 +1131,23 @@
|
|
|
1130
1131
|
|
|
1131
1132
|
case 4:
|
|
1132
1133
|
this.h9_1 = 16;
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1134
|
+
this.b59_1 = this.z58_1;
|
|
1135
|
+
this.c59_1 = Unit_instance;
|
|
1135
1136
|
this.g9_1 = 5;
|
|
1136
1137
|
continue $sm;
|
|
1137
1138
|
case 5:
|
|
1138
1139
|
this.h9_1 = 8;
|
|
1139
1140
|
this.h9_1 = 7;
|
|
1140
1141
|
this.g9_1 = 6;
|
|
1141
|
-
var tmp0_elvis_lhs = this.
|
|
1142
|
-
suspendResult = this.
|
|
1142
|
+
var tmp0_elvis_lhs = this.b59_1;
|
|
1143
|
+
suspendResult = this.w58_1.i51(tmp0_elvis_lhs == null ? this.x58_1.a3i_1 : tmp0_elvis_lhs, this);
|
|
1143
1144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1144
1145
|
return suspendResult;
|
|
1145
1146
|
}
|
|
1146
1147
|
|
|
1147
1148
|
continue $sm;
|
|
1148
1149
|
case 6:
|
|
1149
|
-
this.
|
|
1150
|
+
this.c59_1 = suspendResult;
|
|
1150
1151
|
this.h9_1 = 16;
|
|
1151
1152
|
this.g9_1 = 9;
|
|
1152
1153
|
continue $sm;
|
|
@@ -1154,39 +1155,39 @@
|
|
|
1154
1155
|
this.h9_1 = 8;
|
|
1155
1156
|
var tmp_3 = this.j9_1;
|
|
1156
1157
|
if (tmp_3 instanceof Error) {
|
|
1157
|
-
this.
|
|
1158
|
+
this.d59_1 = this.j9_1;
|
|
1158
1159
|
var tmp_4 = this;
|
|
1159
|
-
invoke$logRequestException(this.
|
|
1160
|
-
throw this.
|
|
1160
|
+
invoke$logRequestException(this.u58_1, this.r58_1, this.x58_1, this.d59_1);
|
|
1161
|
+
throw this.d59_1;
|
|
1161
1162
|
} else {
|
|
1162
1163
|
throw this.j9_1;
|
|
1163
1164
|
}
|
|
1164
1165
|
|
|
1165
1166
|
case 8:
|
|
1166
1167
|
this.h9_1 = 16;
|
|
1167
|
-
this.
|
|
1168
|
-
throw this.
|
|
1168
|
+
this.e59_1 = this.j9_1;
|
|
1169
|
+
throw this.e59_1;
|
|
1169
1170
|
case 9:
|
|
1170
|
-
this.
|
|
1171
|
+
this.f59_1 = this.c59_1;
|
|
1171
1172
|
this.h9_1 = 16;
|
|
1172
1173
|
return Unit_instance;
|
|
1173
1174
|
case 10:
|
|
1174
|
-
this.
|
|
1175
|
-
if (this.
|
|
1176
|
-
this.
|
|
1175
|
+
this.g59_1 = suspendResult;
|
|
1176
|
+
if (this.y58_1.s() > 0) {
|
|
1177
|
+
this.r58_1.o4z(joinToString(this.y58_1, '\n'));
|
|
1177
1178
|
}
|
|
1178
1179
|
|
|
1179
1180
|
this.h9_1 = 14;
|
|
1180
|
-
if (!(this.
|
|
1181
|
+
if (!(this.g59_1 == null)) {
|
|
1181
1182
|
this.g9_1 = 12;
|
|
1182
|
-
suspendResult = this.
|
|
1183
|
+
suspendResult = this.w58_1.i51(this.g59_1, this);
|
|
1183
1184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1184
1185
|
return suspendResult;
|
|
1185
1186
|
}
|
|
1186
1187
|
continue $sm;
|
|
1187
1188
|
} else {
|
|
1188
1189
|
this.g9_1 = 11;
|
|
1189
|
-
suspendResult = this.
|
|
1190
|
+
suspendResult = this.w58_1.j51(this);
|
|
1190
1191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1191
1192
|
return suspendResult;
|
|
1192
1193
|
}
|
|
@@ -1194,15 +1195,15 @@
|
|
|
1194
1195
|
}
|
|
1195
1196
|
|
|
1196
1197
|
case 11:
|
|
1197
|
-
this.
|
|
1198
|
+
this.i59_1 = suspendResult;
|
|
1198
1199
|
this.g9_1 = 13;
|
|
1199
1200
|
continue $sm;
|
|
1200
1201
|
case 12:
|
|
1201
|
-
this.
|
|
1202
|
+
this.i59_1 = suspendResult;
|
|
1202
1203
|
this.g9_1 = 13;
|
|
1203
1204
|
continue $sm;
|
|
1204
1205
|
case 13:
|
|
1205
|
-
this.
|
|
1206
|
+
this.h59_1 = this.i59_1;
|
|
1206
1207
|
this.h9_1 = 16;
|
|
1207
1208
|
this.g9_1 = 15;
|
|
1208
1209
|
continue $sm;
|
|
@@ -1212,7 +1213,7 @@
|
|
|
1212
1213
|
if (tmp_5 instanceof Error) {
|
|
1213
1214
|
var cause = this.j9_1;
|
|
1214
1215
|
var tmp_6 = this;
|
|
1215
|
-
this.
|
|
1216
|
+
this.r58_1.o4z('<-- HTTP FAILED: ' + cause.toString());
|
|
1216
1217
|
throw cause;
|
|
1217
1218
|
} else {
|
|
1218
1219
|
throw this.j9_1;
|
|
@@ -1235,37 +1236,37 @@
|
|
|
1235
1236
|
}
|
|
1236
1237
|
while (true);
|
|
1237
1238
|
};
|
|
1238
|
-
protoOf(Logging$lambda$slambda).
|
|
1239
|
-
var i = new Logging$lambda$slambda(this.
|
|
1240
|
-
i.
|
|
1241
|
-
i.
|
|
1239
|
+
protoOf(Logging$lambda$slambda).k59 = function ($this$on, request, completion) {
|
|
1240
|
+
var i = new Logging$lambda$slambda(this.q58_1, this.r58_1, this.s58_1, this.t58_1, this.u58_1, this.v58_1, completion);
|
|
1241
|
+
i.w58_1 = $this$on;
|
|
1242
|
+
i.x58_1 = request;
|
|
1242
1243
|
return i;
|
|
1243
1244
|
};
|
|
1244
1245
|
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1245
1246
|
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1246
1247
|
var l = function ($this$on, request, $completion) {
|
|
1247
|
-
return i.
|
|
1248
|
+
return i.j59($this$on, request, $completion);
|
|
1248
1249
|
};
|
|
1249
1250
|
l.$arity = 2;
|
|
1250
1251
|
return l;
|
|
1251
1252
|
}
|
|
1252
1253
|
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1254
|
+
this.t59_1 = $okHttpFormat;
|
|
1255
|
+
this.u59_1 = $logger;
|
|
1256
|
+
this.v59_1 = $sanitizedHeaders;
|
|
1257
|
+
this.w59_1 = $level;
|
|
1258
|
+
this.x59_1 = $this_createClientPlugin;
|
|
1258
1259
|
CoroutineImpl.call(this, resultContinuation);
|
|
1259
1260
|
}
|
|
1260
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1261
|
-
var tmp = this.
|
|
1261
|
+
protoOf(Logging$lambda$slambda_1).c5a = function ($this$on, response, $completion) {
|
|
1262
|
+
var tmp = this.d5a($this$on, response, $completion);
|
|
1262
1263
|
tmp.i9_1 = Unit_instance;
|
|
1263
1264
|
tmp.j9_1 = null;
|
|
1264
1265
|
return tmp.o9();
|
|
1265
1266
|
};
|
|
1266
1267
|
protoOf(Logging$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
1267
1268
|
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1268
|
-
return this.
|
|
1269
|
+
return this.c5a(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1269
1270
|
};
|
|
1270
1271
|
protoOf(Logging$lambda$slambda_1).o9 = function () {
|
|
1271
1272
|
var suspendResult = this.i9_1;
|
|
@@ -1275,11 +1276,11 @@
|
|
|
1275
1276
|
switch (tmp) {
|
|
1276
1277
|
case 0:
|
|
1277
1278
|
this.h9_1 = 5;
|
|
1278
|
-
if (this.
|
|
1279
|
+
if (this.t59_1) {
|
|
1279
1280
|
var tmp_0 = this;
|
|
1280
|
-
tmp_0.
|
|
1281
|
+
tmp_0.a5a_1 = ArrayList_init_$Create$();
|
|
1281
1282
|
this.g9_1 = 1;
|
|
1282
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.
|
|
1283
|
+
suspendResult = invoke$logResponseOkHttpFormat(this.v59_1, this.w59_1, this.x59_1, this.z59_1, this.a5a_1, this);
|
|
1283
1284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1284
1285
|
return suspendResult;
|
|
1285
1286
|
}
|
|
@@ -1290,14 +1291,14 @@
|
|
|
1290
1291
|
}
|
|
1291
1292
|
|
|
1292
1293
|
case 1:
|
|
1293
|
-
this.
|
|
1294
|
-
if (this.
|
|
1295
|
-
this.
|
|
1294
|
+
this.b5a_1 = suspendResult;
|
|
1295
|
+
if (this.a5a_1.s() > 0) {
|
|
1296
|
+
this.u59_1.o4z(joinToString(this.a5a_1, '\n'));
|
|
1296
1297
|
}
|
|
1297
1298
|
|
|
1298
|
-
if (!equals(this.
|
|
1299
|
+
if (!equals(this.b5a_1, this.z59_1)) {
|
|
1299
1300
|
this.g9_1 = 2;
|
|
1300
|
-
suspendResult = this.
|
|
1301
|
+
suspendResult = this.y59_1.i4d(this.b5a_1, this);
|
|
1301
1302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1302
1303
|
return suspendResult;
|
|
1303
1304
|
}
|
|
@@ -1329,35 +1330,35 @@
|
|
|
1329
1330
|
}
|
|
1330
1331
|
while (true);
|
|
1331
1332
|
};
|
|
1332
|
-
protoOf(Logging$lambda$slambda_1).
|
|
1333
|
-
var i = new Logging$lambda$slambda_1(this.
|
|
1334
|
-
i.
|
|
1335
|
-
i.
|
|
1333
|
+
protoOf(Logging$lambda$slambda_1).d5a = function ($this$on, response, completion) {
|
|
1334
|
+
var i = new Logging$lambda$slambda_1(this.t59_1, this.u59_1, this.v59_1, this.w59_1, this.x59_1, completion);
|
|
1335
|
+
i.y59_1 = $this$on;
|
|
1336
|
+
i.z59_1 = response;
|
|
1336
1337
|
return i;
|
|
1337
1338
|
};
|
|
1338
1339
|
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation) {
|
|
1339
1340
|
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $this_createClientPlugin, resultContinuation);
|
|
1340
1341
|
var l = function ($this$on, response, $completion) {
|
|
1341
|
-
return i.
|
|
1342
|
+
return i.c5a($this$on, response, $completion);
|
|
1342
1343
|
};
|
|
1343
1344
|
l.$arity = 2;
|
|
1344
1345
|
return l;
|
|
1345
1346
|
}
|
|
1346
1347
|
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1348
|
+
this.m5a_1 = $okHttpFormat;
|
|
1349
|
+
this.n5a_1 = $level;
|
|
1350
|
+
this.o5a_1 = $sanitizedHeaders;
|
|
1350
1351
|
CoroutineImpl.call(this, resultContinuation);
|
|
1351
1352
|
}
|
|
1352
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1353
|
-
var tmp = this.
|
|
1353
|
+
protoOf(Logging$lambda$slambda_3).y5a = function ($this$on, response, $completion) {
|
|
1354
|
+
var tmp = this.z5a($this$on, response, $completion);
|
|
1354
1355
|
tmp.i9_1 = Unit_instance;
|
|
1355
1356
|
tmp.j9_1 = null;
|
|
1356
1357
|
return tmp.o9();
|
|
1357
1358
|
};
|
|
1358
1359
|
protoOf(Logging$lambda$slambda_3).da = function (p1, p2, $completion) {
|
|
1359
1360
|
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1360
|
-
return this.
|
|
1361
|
+
return this.y5a(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1361
1362
|
};
|
|
1362
1363
|
protoOf(Logging$lambda$slambda_3).o9 = function () {
|
|
1363
1364
|
var suspendResult = this.i9_1;
|
|
@@ -1366,93 +1367,133 @@
|
|
|
1366
1367
|
var tmp = this.g9_1;
|
|
1367
1368
|
switch (tmp) {
|
|
1368
1369
|
case 0:
|
|
1369
|
-
this.h9_1 =
|
|
1370
|
-
if (this.
|
|
1370
|
+
this.h9_1 = 14;
|
|
1371
|
+
if (this.m5a_1)
|
|
1371
1372
|
return Unit_instance;
|
|
1372
|
-
if (this.
|
|
1373
|
+
if (this.n5a_1.equals(LogLevel_NONE_getInstance()) || this.q5a_1.m3j().g3j().p2j(get_DisableLogging()))
|
|
1373
1374
|
return Unit_instance;
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1375
|
+
this.r5a_1 = this.q5a_1.m3j().g3j().n2j(get_ClientCallLogger());
|
|
1376
|
+
this.s5a_1 = StringBuilder_init_$Create$();
|
|
1377
|
+
this.t5a_1 = false;
|
|
1377
1378
|
this.g9_1 = 1;
|
|
1378
1379
|
continue $sm;
|
|
1379
1380
|
case 1:
|
|
1380
1381
|
this.h9_1 = 4;
|
|
1381
1382
|
this.h9_1 = 3;
|
|
1382
|
-
logResponseHeader(this.
|
|
1383
|
+
logResponseHeader(this.s5a_1, this.q5a_1.m3j().x3g(), this.n5a_1, this.o5a_1);
|
|
1383
1384
|
this.g9_1 = 2;
|
|
1384
|
-
suspendResult = this.
|
|
1385
|
+
suspendResult = this.p5a_1.k52(this);
|
|
1385
1386
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1386
1387
|
return suspendResult;
|
|
1387
1388
|
}
|
|
1388
1389
|
|
|
1389
1390
|
continue $sm;
|
|
1390
1391
|
case 2:
|
|
1391
|
-
this.
|
|
1392
|
-
this.h9_1 =
|
|
1393
|
-
this.g9_1 =
|
|
1392
|
+
this.u5a_1 = suspendResult;
|
|
1393
|
+
this.h9_1 = 14;
|
|
1394
|
+
this.g9_1 = 9;
|
|
1394
1395
|
continue $sm;
|
|
1395
1396
|
case 3:
|
|
1396
1397
|
this.h9_1 = 4;
|
|
1397
1398
|
var tmp_0 = this.j9_1;
|
|
1398
1399
|
if (tmp_0 instanceof Error) {
|
|
1399
|
-
this.
|
|
1400
|
+
this.v5a_1 = this.j9_1;
|
|
1400
1401
|
var tmp_1 = this;
|
|
1401
|
-
invoke$logResponseException(this.
|
|
1402
|
-
this.
|
|
1403
|
-
throw this.
|
|
1402
|
+
invoke$logResponseException(this.n5a_1, this.s5a_1, this.q5a_1.m3j().f3j(), this.v5a_1);
|
|
1403
|
+
this.t5a_1 = true;
|
|
1404
|
+
throw this.v5a_1;
|
|
1404
1405
|
} else {
|
|
1405
1406
|
throw this.j9_1;
|
|
1406
1407
|
}
|
|
1407
1408
|
|
|
1408
1409
|
case 4:
|
|
1409
|
-
this.h9_1 =
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
if (this.
|
|
1413
|
-
this.g9_1 =
|
|
1414
|
-
suspendResult = this.
|
|
1410
|
+
this.h9_1 = 14;
|
|
1411
|
+
this.w5a_1 = this.j9_1;
|
|
1412
|
+
this.r5a_1.j50(this.s5a_1.toString());
|
|
1413
|
+
if (this.t5a_1 || !this.n5a_1.s50_1) {
|
|
1414
|
+
this.g9_1 = 7;
|
|
1415
|
+
suspendResult = this.r5a_1.n50(this);
|
|
1415
1416
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1416
1417
|
return suspendResult;
|
|
1417
1418
|
}
|
|
1418
1419
|
continue $sm;
|
|
1419
1420
|
} else {
|
|
1420
|
-
this.
|
|
1421
|
-
|
|
1421
|
+
if (this.n5a_1.s50_1 && get_isSaved(this.q5a_1)) {
|
|
1422
|
+
this.g9_1 = 5;
|
|
1423
|
+
suspendResult = logResponseBody(this.r5a_1, this.q5a_1, this);
|
|
1424
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1425
|
+
return suspendResult;
|
|
1426
|
+
}
|
|
1427
|
+
continue $sm;
|
|
1428
|
+
} else {
|
|
1429
|
+
this.g9_1 = 8;
|
|
1430
|
+
continue $sm;
|
|
1431
|
+
}
|
|
1422
1432
|
}
|
|
1423
1433
|
|
|
1424
1434
|
case 5:
|
|
1425
1435
|
this.g9_1 = 6;
|
|
1436
|
+
suspendResult = this.r5a_1.n50(this);
|
|
1437
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1438
|
+
return suspendResult;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1426
1441
|
continue $sm;
|
|
1427
1442
|
case 6:
|
|
1428
|
-
|
|
1443
|
+
this.g9_1 = 8;
|
|
1444
|
+
continue $sm;
|
|
1429
1445
|
case 7:
|
|
1430
|
-
this.
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1446
|
+
this.g9_1 = 8;
|
|
1447
|
+
continue $sm;
|
|
1448
|
+
case 8:
|
|
1449
|
+
throw this.w5a_1;
|
|
1450
|
+
case 9:
|
|
1451
|
+
this.x5a_1 = this.u5a_1;
|
|
1452
|
+
this.h9_1 = 14;
|
|
1453
|
+
this.r5a_1.j50(this.s5a_1.toString());
|
|
1454
|
+
if (this.t5a_1 || !this.n5a_1.s50_1) {
|
|
1455
|
+
this.g9_1 = 12;
|
|
1456
|
+
suspendResult = this.r5a_1.n50(this);
|
|
1436
1457
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1437
1458
|
return suspendResult;
|
|
1438
1459
|
}
|
|
1439
1460
|
continue $sm;
|
|
1440
1461
|
} else {
|
|
1441
|
-
this.
|
|
1442
|
-
|
|
1462
|
+
if (this.n5a_1.s50_1 && get_isSaved(this.q5a_1)) {
|
|
1463
|
+
this.g9_1 = 10;
|
|
1464
|
+
suspendResult = logResponseBody(this.r5a_1, this.q5a_1, this);
|
|
1465
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1466
|
+
return suspendResult;
|
|
1467
|
+
}
|
|
1468
|
+
continue $sm;
|
|
1469
|
+
} else {
|
|
1470
|
+
this.g9_1 = 13;
|
|
1471
|
+
continue $sm;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
case 10:
|
|
1476
|
+
this.g9_1 = 11;
|
|
1477
|
+
suspendResult = this.r5a_1.n50(this);
|
|
1478
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1479
|
+
return suspendResult;
|
|
1443
1480
|
}
|
|
1444
1481
|
|
|
1445
|
-
case 8:
|
|
1446
|
-
this.g9_1 = 9;
|
|
1447
1482
|
continue $sm;
|
|
1448
|
-
case
|
|
1483
|
+
case 11:
|
|
1484
|
+
this.g9_1 = 13;
|
|
1485
|
+
continue $sm;
|
|
1486
|
+
case 12:
|
|
1487
|
+
this.g9_1 = 13;
|
|
1488
|
+
continue $sm;
|
|
1489
|
+
case 13:
|
|
1449
1490
|
return Unit_instance;
|
|
1450
|
-
case
|
|
1491
|
+
case 14:
|
|
1451
1492
|
throw this.j9_1;
|
|
1452
1493
|
}
|
|
1453
1494
|
} catch ($p) {
|
|
1454
1495
|
var e = $p;
|
|
1455
|
-
if (this.h9_1 ===
|
|
1496
|
+
if (this.h9_1 === 14) {
|
|
1456
1497
|
throw e;
|
|
1457
1498
|
} else {
|
|
1458
1499
|
this.g9_1 = this.h9_1;
|
|
@@ -1461,34 +1502,34 @@
|
|
|
1461
1502
|
}
|
|
1462
1503
|
while (true);
|
|
1463
1504
|
};
|
|
1464
|
-
protoOf(Logging$lambda$slambda_3).
|
|
1465
|
-
var i = new Logging$lambda$slambda_3(this.
|
|
1466
|
-
i.
|
|
1467
|
-
i.
|
|
1505
|
+
protoOf(Logging$lambda$slambda_3).z5a = function ($this$on, response, completion) {
|
|
1506
|
+
var i = new Logging$lambda$slambda_3(this.m5a_1, this.n5a_1, this.o5a_1, completion);
|
|
1507
|
+
i.p5a_1 = $this$on;
|
|
1508
|
+
i.q5a_1 = response;
|
|
1468
1509
|
return i;
|
|
1469
1510
|
};
|
|
1470
1511
|
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1471
1512
|
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1472
1513
|
var l = function ($this$on, response, $completion) {
|
|
1473
|
-
return i.
|
|
1514
|
+
return i.y5a($this$on, response, $completion);
|
|
1474
1515
|
};
|
|
1475
1516
|
l.$arity = 2;
|
|
1476
1517
|
return l;
|
|
1477
1518
|
}
|
|
1478
1519
|
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1479
|
-
this.
|
|
1480
|
-
this.
|
|
1520
|
+
this.i5b_1 = $okHttpFormat;
|
|
1521
|
+
this.j5b_1 = $level;
|
|
1481
1522
|
CoroutineImpl.call(this, resultContinuation);
|
|
1482
1523
|
}
|
|
1483
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1484
|
-
var tmp = this.
|
|
1524
|
+
protoOf(Logging$lambda$slambda_5).q5b = function ($this$on, call, $completion) {
|
|
1525
|
+
var tmp = this.r5b($this$on, call, $completion);
|
|
1485
1526
|
tmp.i9_1 = Unit_instance;
|
|
1486
1527
|
tmp.j9_1 = null;
|
|
1487
1528
|
return tmp.o9();
|
|
1488
1529
|
};
|
|
1489
1530
|
protoOf(Logging$lambda$slambda_5).da = function (p1, p2, $completion) {
|
|
1490
1531
|
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1491
|
-
return this.
|
|
1532
|
+
return this.q5b(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1492
1533
|
};
|
|
1493
1534
|
protoOf(Logging$lambda$slambda_5).o9 = function () {
|
|
1494
1535
|
var suspendResult = this.i9_1;
|
|
@@ -1498,22 +1539,22 @@
|
|
|
1498
1539
|
switch (tmp) {
|
|
1499
1540
|
case 0:
|
|
1500
1541
|
this.h9_1 = 6;
|
|
1501
|
-
if (this.
|
|
1542
|
+
if (this.i5b_1)
|
|
1502
1543
|
return Unit_instance;
|
|
1503
|
-
if (this.
|
|
1544
|
+
if (this.j5b_1.equals(LogLevel_NONE_getInstance()) || this.l5b_1.g3j().p2j(get_DisableLogging())) {
|
|
1504
1545
|
return Unit_instance;
|
|
1505
1546
|
}
|
|
1506
1547
|
|
|
1507
1548
|
this.h9_1 = 2;
|
|
1508
1549
|
this.g9_1 = 1;
|
|
1509
|
-
suspendResult = this.
|
|
1550
|
+
suspendResult = this.k5b_1.y52(this);
|
|
1510
1551
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1511
1552
|
return suspendResult;
|
|
1512
1553
|
}
|
|
1513
1554
|
|
|
1514
1555
|
continue $sm;
|
|
1515
1556
|
case 1:
|
|
1516
|
-
this.
|
|
1557
|
+
this.m5b_1 = suspendResult;
|
|
1517
1558
|
this.h9_1 = 6;
|
|
1518
1559
|
this.g9_1 = 5;
|
|
1519
1560
|
continue $sm;
|
|
@@ -1521,12 +1562,12 @@
|
|
|
1521
1562
|
this.h9_1 = 6;
|
|
1522
1563
|
var tmp_0 = this.j9_1;
|
|
1523
1564
|
if (tmp_0 instanceof Error) {
|
|
1524
|
-
this.
|
|
1525
|
-
this.
|
|
1526
|
-
this.
|
|
1527
|
-
invoke$logResponseException(this.
|
|
1565
|
+
this.n5b_1 = this.j9_1;
|
|
1566
|
+
this.o5b_1 = StringBuilder_init_$Create$();
|
|
1567
|
+
this.p5b_1 = this.l5b_1.g3j().n2j(get_ClientCallLogger());
|
|
1568
|
+
invoke$logResponseException(this.j5b_1, this.o5b_1, this.l5b_1.f3j(), this.n5b_1);
|
|
1528
1569
|
this.g9_1 = 3;
|
|
1529
|
-
suspendResult = this.
|
|
1570
|
+
suspendResult = this.p5b_1.k50(this.o5b_1.toString(), this);
|
|
1530
1571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1531
1572
|
return suspendResult;
|
|
1532
1573
|
}
|
|
@@ -1537,7 +1578,7 @@
|
|
|
1537
1578
|
|
|
1538
1579
|
case 3:
|
|
1539
1580
|
this.g9_1 = 4;
|
|
1540
|
-
suspendResult = this.
|
|
1581
|
+
suspendResult = this.p5b_1.n50(this);
|
|
1541
1582
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1542
1583
|
return suspendResult;
|
|
1543
1584
|
}
|
|
@@ -1545,7 +1586,7 @@
|
|
|
1545
1586
|
continue $sm;
|
|
1546
1587
|
case 4:
|
|
1547
1588
|
var tmp_1 = this;
|
|
1548
|
-
throw this.
|
|
1589
|
+
throw this.n5b_1;
|
|
1549
1590
|
case 5:
|
|
1550
1591
|
this.h9_1 = 6;
|
|
1551
1592
|
return Unit_instance;
|
|
@@ -1563,125 +1604,71 @@
|
|
|
1563
1604
|
}
|
|
1564
1605
|
while (true);
|
|
1565
1606
|
};
|
|
1566
|
-
protoOf(Logging$lambda$slambda_5).
|
|
1567
|
-
var i = new Logging$lambda$slambda_5(this.
|
|
1568
|
-
i.
|
|
1569
|
-
i.
|
|
1607
|
+
protoOf(Logging$lambda$slambda_5).r5b = function ($this$on, call, completion) {
|
|
1608
|
+
var i = new Logging$lambda$slambda_5(this.i5b_1, this.j5b_1, completion);
|
|
1609
|
+
i.k5b_1 = $this$on;
|
|
1610
|
+
i.l5b_1 = call;
|
|
1570
1611
|
return i;
|
|
1571
1612
|
};
|
|
1572
1613
|
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
1573
1614
|
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
1574
1615
|
var l = function ($this$on, call, $completion) {
|
|
1575
|
-
return i.
|
|
1616
|
+
return i.q5b($this$on, call, $completion);
|
|
1576
1617
|
};
|
|
1577
1618
|
l.$arity = 2;
|
|
1578
1619
|
return l;
|
|
1579
1620
|
}
|
|
1580
|
-
function Logging$lambda$
|
|
1581
|
-
|
|
1621
|
+
function Logging$lambda$lambda$lambda(it) {
|
|
1622
|
+
_init_properties_Logging_kt__66pui5();
|
|
1623
|
+
return !get_isSaved(it.x3g());
|
|
1624
|
+
}
|
|
1625
|
+
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
1626
|
+
this.a5c_1 = $level;
|
|
1582
1627
|
CoroutineImpl.call(this, resultContinuation);
|
|
1583
1628
|
}
|
|
1584
|
-
protoOf(Logging$lambda$
|
|
1585
|
-
var tmp = this.
|
|
1629
|
+
protoOf(Logging$lambda$lambda$slambda).e3t = function (response, $completion) {
|
|
1630
|
+
var tmp = this.n3r(response, $completion);
|
|
1586
1631
|
tmp.i9_1 = Unit_instance;
|
|
1587
1632
|
tmp.j9_1 = null;
|
|
1588
1633
|
return tmp.o9();
|
|
1589
1634
|
};
|
|
1590
|
-
protoOf(Logging$lambda$
|
|
1591
|
-
return this.
|
|
1635
|
+
protoOf(Logging$lambda$lambda$slambda).ca = function (p1, $completion) {
|
|
1636
|
+
return this.e3t(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1592
1637
|
};
|
|
1593
|
-
protoOf(Logging$lambda$
|
|
1638
|
+
protoOf(Logging$lambda$lambda$slambda).o9 = function () {
|
|
1594
1639
|
var suspendResult = this.i9_1;
|
|
1595
1640
|
$sm: do
|
|
1596
1641
|
try {
|
|
1597
1642
|
var tmp = this.g9_1;
|
|
1598
1643
|
switch (tmp) {
|
|
1599
1644
|
case 0:
|
|
1600
|
-
this.h9_1 =
|
|
1601
|
-
if (this.
|
|
1645
|
+
this.h9_1 = 3;
|
|
1646
|
+
if (this.a5c_1.equals(LogLevel_NONE_getInstance()) || this.b5c_1.m3j().g3j().p2j(get_DisableLogging()))
|
|
1602
1647
|
return Unit_instance;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
this.h5c_1 = this.g5c_1.c3l().c3j().n2j(get_ClientCallLogger());
|
|
1606
|
-
this.i5c_1 = StringBuilder_init_$Create$();
|
|
1648
|
+
this.c5c_1 = this.b5c_1.m3j().g3j().n2j(get_ClientCallLogger());
|
|
1607
1649
|
this.g9_1 = 1;
|
|
1608
|
-
|
|
1609
|
-
case 1:
|
|
1610
|
-
this.h9_1 = 4;
|
|
1611
|
-
this.h9_1 = 3;
|
|
1612
|
-
this.g9_1 = 2;
|
|
1613
|
-
suspendResult = logResponseBody(this.i5c_1, contentType(this.g5c_1), this.g5c_1.e3k(), this);
|
|
1614
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1615
|
-
return suspendResult;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
continue $sm;
|
|
1619
|
-
case 2:
|
|
1620
|
-
this.j5c_1 = suspendResult;
|
|
1621
|
-
this.h9_1 = 10;
|
|
1622
|
-
this.g9_1 = 7;
|
|
1623
|
-
continue $sm;
|
|
1624
|
-
case 3:
|
|
1625
|
-
this.h9_1 = 4;
|
|
1626
|
-
var tmp_0 = this.j9_1;
|
|
1627
|
-
if (tmp_0 instanceof Error) {
|
|
1628
|
-
this.k5c_1 = this.j9_1;
|
|
1629
|
-
var tmp_1 = this;
|
|
1630
|
-
tmp_1.j5c_1 = Unit_instance;
|
|
1631
|
-
this.h9_1 = 10;
|
|
1632
|
-
this.g9_1 = 7;
|
|
1633
|
-
continue $sm;
|
|
1634
|
-
} else {
|
|
1635
|
-
throw this.j9_1;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
case 4:
|
|
1639
|
-
this.h9_1 = 10;
|
|
1640
|
-
this.l5c_1 = this.j9_1;
|
|
1641
|
-
this.g9_1 = 5;
|
|
1642
|
-
var this_0 = this.i5c_1.toString();
|
|
1643
|
-
suspendResult = this.h5c_1.p50(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1644
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1645
|
-
return suspendResult;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
continue $sm;
|
|
1649
|
-
case 5:
|
|
1650
|
-
this.g9_1 = 6;
|
|
1651
|
-
suspendResult = this.h5c_1.r50(this);
|
|
1652
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1653
|
-
return suspendResult;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
continue $sm;
|
|
1657
|
-
case 6:
|
|
1658
|
-
throw this.l5c_1;
|
|
1659
|
-
case 7:
|
|
1660
|
-
this.h9_1 = 10;
|
|
1661
|
-
this.g9_1 = 8;
|
|
1662
|
-
var this_1 = this.i5c_1.toString();
|
|
1663
|
-
suspendResult = this.h5c_1.p50(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1650
|
+
suspendResult = logResponseBody(this.c5c_1, this.b5c_1, this);
|
|
1664
1651
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1665
1652
|
return suspendResult;
|
|
1666
1653
|
}
|
|
1667
1654
|
|
|
1668
1655
|
continue $sm;
|
|
1669
|
-
case
|
|
1670
|
-
this.g9_1 =
|
|
1671
|
-
suspendResult = this.
|
|
1656
|
+
case 1:
|
|
1657
|
+
this.g9_1 = 2;
|
|
1658
|
+
suspendResult = this.c5c_1.n50(this);
|
|
1672
1659
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1673
1660
|
return suspendResult;
|
|
1674
1661
|
}
|
|
1675
1662
|
|
|
1676
1663
|
continue $sm;
|
|
1677
|
-
case
|
|
1664
|
+
case 2:
|
|
1678
1665
|
return Unit_instance;
|
|
1679
|
-
case
|
|
1666
|
+
case 3:
|
|
1680
1667
|
throw this.j9_1;
|
|
1681
1668
|
}
|
|
1682
1669
|
} catch ($p) {
|
|
1683
1670
|
var e = $p;
|
|
1684
|
-
if (this.h9_1 ===
|
|
1671
|
+
if (this.h9_1 === 3) {
|
|
1685
1672
|
throw e;
|
|
1686
1673
|
} else {
|
|
1687
1674
|
this.g9_1 = this.h9_1;
|
|
@@ -1690,40 +1677,41 @@
|
|
|
1690
1677
|
}
|
|
1691
1678
|
while (true);
|
|
1692
1679
|
};
|
|
1693
|
-
protoOf(Logging$lambda$
|
|
1694
|
-
var i = new Logging$lambda$
|
|
1695
|
-
i.
|
|
1680
|
+
protoOf(Logging$lambda$lambda$slambda).n3r = function (response, completion) {
|
|
1681
|
+
var i = new Logging$lambda$lambda$slambda(this.a5c_1, completion);
|
|
1682
|
+
i.b5c_1 = response;
|
|
1696
1683
|
return i;
|
|
1697
1684
|
};
|
|
1698
|
-
function Logging$lambda$
|
|
1699
|
-
var i = new Logging$lambda$
|
|
1700
|
-
var l = function (
|
|
1701
|
-
return i.
|
|
1685
|
+
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
1686
|
+
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
1687
|
+
var l = function (response, $completion) {
|
|
1688
|
+
return i.e3t(response, $completion);
|
|
1702
1689
|
};
|
|
1703
1690
|
l.$arity = 1;
|
|
1704
1691
|
return l;
|
|
1705
1692
|
}
|
|
1706
|
-
function Logging$lambda$lambda($
|
|
1693
|
+
function Logging$lambda$lambda($level) {
|
|
1707
1694
|
return function ($this$prepare) {
|
|
1708
|
-
$this$prepare.
|
|
1695
|
+
$this$prepare.g4d(Logging$lambda$lambda$lambda);
|
|
1696
|
+
$this$prepare.f4d(Logging$lambda$lambda$slambda_0($level, null));
|
|
1709
1697
|
return Unit_instance;
|
|
1710
1698
|
};
|
|
1711
1699
|
}
|
|
1712
1700
|
function Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1713
|
-
this.
|
|
1714
|
-
this.
|
|
1715
|
-
this.
|
|
1716
|
-
this.
|
|
1701
|
+
this.l5c_1 = $channel;
|
|
1702
|
+
this.m5c_1 = $firstChunk;
|
|
1703
|
+
this.n5c_1 = $firstReadSize;
|
|
1704
|
+
this.o5c_1 = $body;
|
|
1717
1705
|
CoroutineImpl.call(this, resultContinuation);
|
|
1718
1706
|
}
|
|
1719
|
-
protoOf(Logging$lambda$detectIfBinary$slambda).
|
|
1707
|
+
protoOf(Logging$lambda$detectIfBinary$slambda).r5c = function ($this$async, $completion) {
|
|
1720
1708
|
var tmp = this.b1x($this$async, $completion);
|
|
1721
1709
|
tmp.i9_1 = Unit_instance;
|
|
1722
1710
|
tmp.j9_1 = null;
|
|
1723
1711
|
return tmp.o9();
|
|
1724
1712
|
};
|
|
1725
1713
|
protoOf(Logging$lambda$detectIfBinary$slambda).ca = function (p1, $completion) {
|
|
1726
|
-
return this.
|
|
1714
|
+
return this.r5c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1727
1715
|
};
|
|
1728
1716
|
protoOf(Logging$lambda$detectIfBinary$slambda).o9 = function () {
|
|
1729
1717
|
var suspendResult = this.i9_1;
|
|
@@ -1734,7 +1722,7 @@
|
|
|
1734
1722
|
case 0:
|
|
1735
1723
|
this.h9_1 = 4;
|
|
1736
1724
|
this.g9_1 = 1;
|
|
1737
|
-
suspendResult = writeFully(this.
|
|
1725
|
+
suspendResult = writeFully(this.l5c_1, this.m5c_1, 0, this.n5c_1, this);
|
|
1738
1726
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1739
1727
|
return suspendResult;
|
|
1740
1728
|
}
|
|
@@ -1742,23 +1730,23 @@
|
|
|
1742
1730
|
continue $sm;
|
|
1743
1731
|
case 1:
|
|
1744
1732
|
this.g9_1 = 2;
|
|
1745
|
-
suspendResult = copyTo(this.
|
|
1733
|
+
suspendResult = copyTo(this.o5c_1, this.l5c_1, this);
|
|
1746
1734
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1747
1735
|
return suspendResult;
|
|
1748
1736
|
}
|
|
1749
1737
|
|
|
1750
1738
|
continue $sm;
|
|
1751
1739
|
case 2:
|
|
1752
|
-
this.
|
|
1740
|
+
this.q5c_1 = suspendResult;
|
|
1753
1741
|
this.g9_1 = 3;
|
|
1754
|
-
suspendResult = this.
|
|
1742
|
+
suspendResult = this.l5c_1.e1n(this);
|
|
1755
1743
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1756
1744
|
return suspendResult;
|
|
1757
1745
|
}
|
|
1758
1746
|
|
|
1759
1747
|
continue $sm;
|
|
1760
1748
|
case 3:
|
|
1761
|
-
return this.
|
|
1749
|
+
return this.q5c_1;
|
|
1762
1750
|
case 4:
|
|
1763
1751
|
throw this.j9_1;
|
|
1764
1752
|
}
|
|
@@ -1774,14 +1762,14 @@
|
|
|
1774
1762
|
while (true);
|
|
1775
1763
|
};
|
|
1776
1764
|
protoOf(Logging$lambda$detectIfBinary$slambda).b1x = function ($this$async, completion) {
|
|
1777
|
-
var i = new Logging$lambda$detectIfBinary$slambda(this.
|
|
1778
|
-
i.
|
|
1765
|
+
var i = new Logging$lambda$detectIfBinary$slambda(this.l5c_1, this.m5c_1, this.n5c_1, this.o5c_1, completion);
|
|
1766
|
+
i.p5c_1 = $this$async;
|
|
1779
1767
|
return i;
|
|
1780
1768
|
};
|
|
1781
1769
|
function Logging$lambda$detectIfBinary$slambda_0($channel, $firstChunk, $firstReadSize, $body, resultContinuation) {
|
|
1782
1770
|
var i = new Logging$lambda$detectIfBinary$slambda($channel, $firstChunk, $firstReadSize, $body, resultContinuation);
|
|
1783
1771
|
var l = function ($this$async, $completion) {
|
|
1784
|
-
return i.
|
|
1772
|
+
return i.r5c($this$async, $completion);
|
|
1785
1773
|
};
|
|
1786
1774
|
l.$arity = 1;
|
|
1787
1775
|
return l;
|
|
@@ -1791,8 +1779,8 @@
|
|
|
1791
1779
|
return it;
|
|
1792
1780
|
}
|
|
1793
1781
|
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1782
|
+
this.a5d_1 = $content;
|
|
1783
|
+
this.b5d_1 = $channel;
|
|
1796
1784
|
CoroutineImpl.call(this, resultContinuation);
|
|
1797
1785
|
}
|
|
1798
1786
|
protoOf(Logging$lambda$logOutgoingContent$slambda).a1x = function ($this$launch, $completion) {
|
|
@@ -1813,14 +1801,14 @@
|
|
|
1813
1801
|
case 0:
|
|
1814
1802
|
this.h9_1 = 2;
|
|
1815
1803
|
this.g9_1 = 1;
|
|
1816
|
-
suspendResult = this.
|
|
1804
|
+
suspendResult = this.a5d_1.i35(this.b5d_1, this);
|
|
1817
1805
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1818
1806
|
return suspendResult;
|
|
1819
1807
|
}
|
|
1820
1808
|
|
|
1821
1809
|
continue $sm;
|
|
1822
1810
|
case 1:
|
|
1823
|
-
this.
|
|
1811
|
+
this.b5d_1.p4();
|
|
1824
1812
|
return Unit_instance;
|
|
1825
1813
|
case 2:
|
|
1826
1814
|
throw this.j9_1;
|
|
@@ -1837,8 +1825,8 @@
|
|
|
1837
1825
|
while (true);
|
|
1838
1826
|
};
|
|
1839
1827
|
protoOf(Logging$lambda$logOutgoingContent$slambda).b1x = function ($this$launch, completion) {
|
|
1840
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.
|
|
1841
|
-
i.
|
|
1828
|
+
var i = new Logging$lambda$logOutgoingContent$slambda(this.a5d_1, this.b5d_1, completion);
|
|
1829
|
+
i.c5d_1 = $this$launch;
|
|
1842
1830
|
return i;
|
|
1843
1831
|
};
|
|
1844
1832
|
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
@@ -1853,11 +1841,16 @@
|
|
|
1853
1841
|
_init_properties_Logging_kt__66pui5();
|
|
1854
1842
|
return GZipEncoder_getInstance().g2n(channel);
|
|
1855
1843
|
}
|
|
1844
|
+
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1845
|
+
return function ($this$replaceResponse) {
|
|
1846
|
+
return $origChannel;
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1856
1849
|
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1859
|
-
this.
|
|
1860
|
-
this.
|
|
1850
|
+
this.l5d_1 = $channel;
|
|
1851
|
+
this.m5d_1 = $charset;
|
|
1852
|
+
this.n5d_1 = $requestLog;
|
|
1853
|
+
this.o5d_1 = $logger;
|
|
1861
1854
|
CoroutineImpl.call(this, resultContinuation);
|
|
1862
1855
|
}
|
|
1863
1856
|
protoOf(Logging$lambda$logRequestBody$slambda).a1x = function ($this$launch, $completion) {
|
|
@@ -1882,14 +1875,14 @@
|
|
|
1882
1875
|
case 1:
|
|
1883
1876
|
this.h9_1 = 6;
|
|
1884
1877
|
var tmp_0 = this;
|
|
1885
|
-
tmp_0.
|
|
1878
|
+
tmp_0.r5d_1 = this.l5d_1;
|
|
1886
1879
|
var tmp_1 = this;
|
|
1887
|
-
tmp_1.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1880
|
+
tmp_1.s5d_1 = this.m5d_1;
|
|
1881
|
+
this.t5d_1 = this.r5d_1;
|
|
1882
|
+
this.u5d_1 = this.s5d_1;
|
|
1890
1883
|
this.h9_1 = 3;
|
|
1891
1884
|
this.g9_1 = 2;
|
|
1892
|
-
suspendResult = readRemaining(this.
|
|
1885
|
+
suspendResult = readRemaining(this.t5d_1, this);
|
|
1893
1886
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
1887
|
return suspendResult;
|
|
1895
1888
|
}
|
|
@@ -1897,7 +1890,7 @@
|
|
|
1897
1890
|
continue $sm;
|
|
1898
1891
|
case 2:
|
|
1899
1892
|
var ARGUMENT = suspendResult;
|
|
1900
|
-
this.
|
|
1893
|
+
this.v5d_1 = readText(ARGUMENT, this.u5d_1);
|
|
1901
1894
|
this.h9_1 = 6;
|
|
1902
1895
|
this.g9_1 = 4;
|
|
1903
1896
|
continue $sm;
|
|
@@ -1907,7 +1900,7 @@
|
|
|
1907
1900
|
if (tmp_2 instanceof Error) {
|
|
1908
1901
|
var cause = this.j9_1;
|
|
1909
1902
|
var tmp_3 = this;
|
|
1910
|
-
tmp_3.
|
|
1903
|
+
tmp_3.v5d_1 = null;
|
|
1911
1904
|
this.g9_1 = 4;
|
|
1912
1905
|
continue $sm;
|
|
1913
1906
|
} else {
|
|
@@ -1916,27 +1909,27 @@
|
|
|
1916
1909
|
|
|
1917
1910
|
case 4:
|
|
1918
1911
|
this.h9_1 = 6;
|
|
1919
|
-
var tmp0_elvis_lhs = this.
|
|
1912
|
+
var tmp0_elvis_lhs = this.v5d_1;
|
|
1920
1913
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1921
|
-
var
|
|
1914
|
+
var tmp0 = this.n5d_1;
|
|
1922
1915
|
var value = 'BODY START';
|
|
1923
|
-
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1916
|
+
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
1917
|
+
this.n5d_1.r8(text).s8(_Char___init__impl__6a9atx(10));
|
|
1918
|
+
this.q5d_1 = this.n5d_1.r8('BODY END');
|
|
1926
1919
|
this.h9_1 = 7;
|
|
1927
1920
|
this.g9_1 = 5;
|
|
1928
1921
|
continue $sm;
|
|
1929
1922
|
case 5:
|
|
1930
|
-
this.
|
|
1923
|
+
this.q5d_1;
|
|
1931
1924
|
this.h9_1 = 7;
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1925
|
+
this.o5d_1.i50(this.n5d_1.toString());
|
|
1926
|
+
this.o5d_1.m50();
|
|
1934
1927
|
return Unit_instance;
|
|
1935
1928
|
case 6:
|
|
1936
1929
|
this.h9_1 = 7;
|
|
1937
1930
|
var t = this.j9_1;
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1931
|
+
this.o5d_1.i50(this.n5d_1.toString());
|
|
1932
|
+
this.o5d_1.m50();
|
|
1940
1933
|
throw t;
|
|
1941
1934
|
case 7:
|
|
1942
1935
|
throw this.j9_1;
|
|
@@ -1953,8 +1946,8 @@
|
|
|
1953
1946
|
while (true);
|
|
1954
1947
|
};
|
|
1955
1948
|
protoOf(Logging$lambda$logRequestBody$slambda).b1x = function ($this$launch, completion) {
|
|
1956
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.
|
|
1957
|
-
i.
|
|
1949
|
+
var i = new Logging$lambda$logRequestBody$slambda(this.l5d_1, this.m5d_1, this.n5d_1, this.o5d_1, completion);
|
|
1950
|
+
i.p5d_1 = $this$launch;
|
|
1958
1951
|
return i;
|
|
1959
1952
|
};
|
|
1960
1953
|
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
@@ -1965,15 +1958,15 @@
|
|
|
1965
1958
|
l.$arity = 1;
|
|
1966
1959
|
return l;
|
|
1967
1960
|
}
|
|
1968
|
-
function $invoke$detectIfBinaryCOROUTINE$
|
|
1961
|
+
function $invoke$detectIfBinaryCOROUTINE$($this_createClientPlugin, body, contentLength, contentType, headers, resultContinuation) {
|
|
1969
1962
|
CoroutineImpl.call(this, resultContinuation);
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
this.
|
|
1973
|
-
this.
|
|
1974
|
-
this.
|
|
1963
|
+
this.t53_1 = $this_createClientPlugin;
|
|
1964
|
+
this.u53_1 = body;
|
|
1965
|
+
this.v53_1 = contentLength;
|
|
1966
|
+
this.w53_1 = contentType;
|
|
1967
|
+
this.x53_1 = headers;
|
|
1975
1968
|
}
|
|
1976
|
-
protoOf($invoke$detectIfBinaryCOROUTINE$
|
|
1969
|
+
protoOf($invoke$detectIfBinaryCOROUTINE$).o9 = function () {
|
|
1977
1970
|
var suspendResult = this.i9_1;
|
|
1978
1971
|
$sm: do
|
|
1979
1972
|
try {
|
|
@@ -1981,67 +1974,84 @@
|
|
|
1981
1974
|
switch (tmp) {
|
|
1982
1975
|
case 0:
|
|
1983
1976
|
this.h9_1 = 4;
|
|
1984
|
-
if (this.
|
|
1985
|
-
return new Triple(true, this.
|
|
1977
|
+
if (this.x53_1.w2n(HttpHeaders_getInstance().p2v_1)) {
|
|
1978
|
+
return new Triple(true, this.v53_1, this.u53_1);
|
|
1986
1979
|
}
|
|
1987
1980
|
|
|
1988
1981
|
var tmp_0 = this;
|
|
1989
1982
|
var tmp_1;
|
|
1990
|
-
if (!(this.
|
|
1991
|
-
var tmp0_elvis_lhs = charset(this.
|
|
1983
|
+
if (!(this.w53_1 == null)) {
|
|
1984
|
+
var tmp0_elvis_lhs = charset(this.w53_1);
|
|
1992
1985
|
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp0_elvis_lhs;
|
|
1993
1986
|
} else {
|
|
1994
1987
|
tmp_1 = Charsets_getInstance().v1x_1;
|
|
1995
1988
|
}
|
|
1996
1989
|
|
|
1997
|
-
tmp_0.
|
|
1998
|
-
this.
|
|
1999
|
-
this.
|
|
1990
|
+
tmp_0.y53_1 = tmp_1;
|
|
1991
|
+
this.z53_1 = false;
|
|
1992
|
+
this.a54_1 = new Int8Array(1024);
|
|
2000
1993
|
this.g9_1 = 1;
|
|
2001
|
-
suspendResult = readAvailable(this.
|
|
1994
|
+
suspendResult = readAvailable(this.u53_1, this.a54_1, VOID, VOID, this);
|
|
2002
1995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2003
1996
|
return suspendResult;
|
|
2004
1997
|
}
|
|
2005
1998
|
|
|
2006
1999
|
continue $sm;
|
|
2007
2000
|
case 1:
|
|
2008
|
-
this.
|
|
2009
|
-
if (this.
|
|
2010
|
-
return new Triple(false, new Long(0, 0), this.
|
|
2001
|
+
this.b54_1 = suspendResult;
|
|
2002
|
+
if (this.b54_1 < 1) {
|
|
2003
|
+
return new Triple(false, new Long(0, 0), this.u53_1);
|
|
2011
2004
|
}
|
|
2012
2005
|
|
|
2013
2006
|
var tmp_2 = this;
|
|
2014
2007
|
var this_0 = new Buffer();
|
|
2015
|
-
writeFully_0(this_0, this.
|
|
2016
|
-
tmp_2.
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2008
|
+
writeFully_0(this_0, this.a54_1, 0, this.b54_1);
|
|
2009
|
+
tmp_2.c54_1 = this_0;
|
|
2010
|
+
var tmp_3 = this;
|
|
2011
|
+
var tmp_4;
|
|
2012
|
+
try {
|
|
2013
|
+
tmp_4 = decode(this.y53_1.z1x(), this.c54_1);
|
|
2014
|
+
} catch ($p) {
|
|
2015
|
+
var tmp_5;
|
|
2016
|
+
if ($p instanceof MalformedInputException) {
|
|
2017
|
+
var _unused_var__etf5q3 = $p;
|
|
2018
|
+
this.z53_1 = true;
|
|
2019
|
+
tmp_5 = '';
|
|
2020
|
+
} else {
|
|
2021
|
+
throw $p;
|
|
2022
|
+
}
|
|
2023
|
+
tmp_4 = tmp_5;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
tmp_3.d54_1 = tmp_4;
|
|
2027
|
+
if (!this.z53_1) {
|
|
2028
|
+
var lastCharIndex = -1;
|
|
2029
|
+
var indexedObject = this.d54_1;
|
|
2030
|
+
var inductionVariable = 0;
|
|
2031
|
+
var last = indexedObject.length;
|
|
2032
|
+
while (inductionVariable < last) {
|
|
2033
|
+
var ch = charCodeAt(indexedObject, inductionVariable);
|
|
2034
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2035
|
+
lastCharIndex = lastCharIndex + 1 | 0;
|
|
2036
|
+
}
|
|
2037
|
+
var indexedObject_0 = this.d54_1;
|
|
2038
|
+
var inductionVariable_0 = 0;
|
|
2039
|
+
var last_0 = indexedObject_0.length;
|
|
2040
|
+
$l$loop: while (inductionVariable_0 < last_0) {
|
|
2041
|
+
var i = inductionVariable_0;
|
|
2042
|
+
var ch_0 = charCodeAt(indexedObject_0, inductionVariable_0);
|
|
2043
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2044
|
+
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
2045
|
+
this.z53_1 = true;
|
|
2046
|
+
break $l$loop;
|
|
2047
|
+
}
|
|
2038
2048
|
}
|
|
2039
2049
|
}
|
|
2040
2050
|
|
|
2041
|
-
if (!this.
|
|
2042
|
-
this.
|
|
2051
|
+
if (!this.z53_1) {
|
|
2052
|
+
this.e54_1 = new ByteChannel();
|
|
2043
2053
|
this.g9_1 = 3;
|
|
2044
|
-
suspendResult = async(this.
|
|
2054
|
+
suspendResult = async(this.t53_1.m3q_1, VOID, VOID, Logging$lambda$detectIfBinary$slambda_0(this.e54_1, this.a54_1, this.b54_1, this.u53_1, null)).vt(this);
|
|
2045
2055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2046
2056
|
return suspendResult;
|
|
2047
2057
|
}
|
|
@@ -2052,12 +2062,12 @@
|
|
|
2052
2062
|
}
|
|
2053
2063
|
|
|
2054
2064
|
case 2:
|
|
2055
|
-
return new Triple(this.
|
|
2065
|
+
return new Triple(this.z53_1, this.v53_1, this.u53_1);
|
|
2056
2066
|
case 3:
|
|
2057
2067
|
var copied = suspendResult;
|
|
2058
|
-
var
|
|
2059
|
-
var other = this.
|
|
2060
|
-
return new Triple(
|
|
2068
|
+
var tmp_6 = this.z53_1;
|
|
2069
|
+
var other = this.b54_1;
|
|
2070
|
+
return new Triple(tmp_6, copied.z2(toLong(other)), this.e54_1);
|
|
2061
2071
|
case 4:
|
|
2062
2072
|
throw this.j9_1;
|
|
2063
2073
|
}
|
|
@@ -2072,17 +2082,17 @@
|
|
|
2072
2082
|
}
|
|
2073
2083
|
while (true);
|
|
2074
2084
|
};
|
|
2075
|
-
function $invoke$logRequestBodyCOROUTINE$
|
|
2085
|
+
function $invoke$logRequestBodyCOROUTINE$($this_createClientPlugin, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2076
2086
|
CoroutineImpl.call(this, resultContinuation);
|
|
2077
|
-
this.
|
|
2078
|
-
this.
|
|
2079
|
-
this.
|
|
2080
|
-
this.
|
|
2081
|
-
this.
|
|
2082
|
-
this.
|
|
2083
|
-
this.
|
|
2084
|
-
}
|
|
2085
|
-
protoOf($invoke$logRequestBodyCOROUTINE$
|
|
2087
|
+
this.n54_1 = $this_createClientPlugin;
|
|
2088
|
+
this.o54_1 = content;
|
|
2089
|
+
this.p54_1 = contentLength;
|
|
2090
|
+
this.q54_1 = headers;
|
|
2091
|
+
this.r54_1 = method;
|
|
2092
|
+
this.s54_1 = logLines;
|
|
2093
|
+
this.t54_1 = body;
|
|
2094
|
+
}
|
|
2095
|
+
protoOf($invoke$logRequestBodyCOROUTINE$).o9 = function () {
|
|
2086
2096
|
var suspendResult = this.i9_1;
|
|
2087
2097
|
$sm: do
|
|
2088
2098
|
try {
|
|
@@ -2091,30 +2101,30 @@
|
|
|
2091
2101
|
case 0:
|
|
2092
2102
|
this.h9_1 = 4;
|
|
2093
2103
|
this.g9_1 = 1;
|
|
2094
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2104
|
+
suspendResult = invoke$detectIfBinary(this.n54_1, this.t54_1, this.p54_1, this.o54_1.a35(), this.q54_1, this);
|
|
2095
2105
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2096
2106
|
return suspendResult;
|
|
2097
2107
|
}
|
|
2098
2108
|
|
|
2099
2109
|
continue $sm;
|
|
2100
2110
|
case 1:
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2103
|
-
this.
|
|
2104
|
-
this.
|
|
2105
|
-
if (!this.
|
|
2106
|
-
this.
|
|
2111
|
+
this.u54_1 = suspendResult;
|
|
2112
|
+
this.v54_1 = this.u54_1.tg();
|
|
2113
|
+
this.w54_1 = this.u54_1.ug();
|
|
2114
|
+
this.x54_1 = this.u54_1.tl();
|
|
2115
|
+
if (!this.v54_1) {
|
|
2116
|
+
this.z54_1 = this.o54_1.a35();
|
|
2107
2117
|
var tmp_0 = this;
|
|
2108
2118
|
var tmp_1;
|
|
2109
|
-
if (!(this.
|
|
2110
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2119
|
+
if (!(this.z54_1 == null)) {
|
|
2120
|
+
var tmp0_elvis_lhs = charset(this.z54_1);
|
|
2111
2121
|
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp0_elvis_lhs;
|
|
2112
2122
|
} else {
|
|
2113
2123
|
tmp_1 = Charsets_getInstance().v1x_1;
|
|
2114
2124
|
}
|
|
2115
|
-
tmp_0.
|
|
2125
|
+
tmp_0.a55_1 = tmp_1;
|
|
2116
2126
|
this.g9_1 = 2;
|
|
2117
|
-
suspendResult = readRemaining(this.
|
|
2127
|
+
suspendResult = readRemaining(this.x54_1, this);
|
|
2118
2128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2119
2129
|
return suspendResult;
|
|
2120
2130
|
}
|
|
@@ -2122,25 +2132,25 @@
|
|
|
2122
2132
|
} else {
|
|
2123
2133
|
var tmp_2 = this;
|
|
2124
2134
|
var type = 'binary';
|
|
2125
|
-
if (this.
|
|
2135
|
+
if (this.q54_1.w2n(HttpHeaders_getInstance().p2v_1)) {
|
|
2126
2136
|
type = 'encoded';
|
|
2127
2137
|
}
|
|
2128
2138
|
var tmp_3;
|
|
2129
|
-
if (!(this.
|
|
2130
|
-
tmp_3 = this.
|
|
2139
|
+
if (!(this.w54_1 == null)) {
|
|
2140
|
+
tmp_3 = this.s54_1.k('--> END ' + this.r54_1.o2z_1 + ' (' + type + ' ' + toString_0(this.w54_1) + '-byte body omitted)');
|
|
2131
2141
|
} else {
|
|
2132
|
-
tmp_3 = this.
|
|
2142
|
+
tmp_3 = this.s54_1.k('--> END ' + this.r54_1.o2z_1 + ' (' + type + ' body omitted)');
|
|
2133
2143
|
}
|
|
2134
|
-
tmp_2.
|
|
2144
|
+
tmp_2.y54_1 = tmp_3;
|
|
2135
2145
|
this.g9_1 = 3;
|
|
2136
2146
|
continue $sm;
|
|
2137
2147
|
}
|
|
2138
2148
|
|
|
2139
2149
|
case 2:
|
|
2140
2150
|
var ARGUMENT = suspendResult;
|
|
2141
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2142
|
-
this.
|
|
2143
|
-
this.
|
|
2151
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.a55_1);
|
|
2152
|
+
this.s54_1.k(ARGUMENT_0);
|
|
2153
|
+
this.y54_1 = this.s54_1.k('--> END ' + this.r54_1.o2z_1 + ' (' + toString_0(this.w54_1) + '-byte body)');
|
|
2144
2154
|
this.g9_1 = 3;
|
|
2145
2155
|
continue $sm;
|
|
2146
2156
|
case 3:
|
|
@@ -2159,16 +2169,16 @@
|
|
|
2159
2169
|
}
|
|
2160
2170
|
while (true);
|
|
2161
2171
|
};
|
|
2162
|
-
function $invoke$logOutgoingContentCOROUTINE$
|
|
2172
|
+
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, content, method, headers, logLines, process, resultContinuation) {
|
|
2163
2173
|
CoroutineImpl.call(this, resultContinuation);
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
}
|
|
2171
|
-
protoOf($invoke$logOutgoingContentCOROUTINE$
|
|
2174
|
+
this.j55_1 = $this_createClientPlugin;
|
|
2175
|
+
this.k55_1 = content;
|
|
2176
|
+
this.l55_1 = method;
|
|
2177
|
+
this.m55_1 = headers;
|
|
2178
|
+
this.n55_1 = logLines;
|
|
2179
|
+
this.o55_1 = process;
|
|
2180
|
+
}
|
|
2181
|
+
protoOf($invoke$logOutgoingContentCOROUTINE$).o9 = function () {
|
|
2172
2182
|
var suspendResult = this.i9_1;
|
|
2173
2183
|
$sm: do
|
|
2174
2184
|
try {
|
|
@@ -2176,63 +2186,63 @@
|
|
|
2176
2186
|
switch (tmp) {
|
|
2177
2187
|
case 0:
|
|
2178
2188
|
this.h9_1 = 6;
|
|
2179
|
-
this.
|
|
2180
|
-
var tmp_0 = this.
|
|
2189
|
+
this.p55_1 = this.k55_1;
|
|
2190
|
+
var tmp_0 = this.p55_1;
|
|
2181
2191
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
2182
|
-
this.
|
|
2192
|
+
this.r55_1 = this.k55_1.d35();
|
|
2183
2193
|
this.g9_1 = 4;
|
|
2184
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2194
|
+
suspendResult = invoke$logRequestBody(this.j55_1, this.k55_1, toLong(this.r55_1.length), this.m55_1, this.l55_1, this.n55_1, ByteReadChannel(this.r55_1), this);
|
|
2185
2195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2186
2196
|
return suspendResult;
|
|
2187
2197
|
}
|
|
2188
2198
|
continue $sm;
|
|
2189
2199
|
} else {
|
|
2190
|
-
var tmp_1 = this.
|
|
2200
|
+
var tmp_1 = this.p55_1;
|
|
2191
2201
|
if (tmp_1 instanceof ContentWrapper) {
|
|
2192
2202
|
this.g9_1 = 3;
|
|
2193
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2203
|
+
suspendResult = invoke$logOutgoingContent(this.j55_1, this.k55_1.m35(), this.l55_1, this.m55_1, this.n55_1, this.o55_1, this);
|
|
2194
2204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2195
2205
|
return suspendResult;
|
|
2196
2206
|
}
|
|
2197
2207
|
continue $sm;
|
|
2198
2208
|
} else {
|
|
2199
|
-
var tmp_2 = this.
|
|
2209
|
+
var tmp_2 = this.p55_1;
|
|
2200
2210
|
if (tmp_2 instanceof NoContent) {
|
|
2201
2211
|
var tmp_3 = this;
|
|
2202
|
-
this.
|
|
2203
|
-
tmp_3.
|
|
2212
|
+
this.n55_1.k('--> END ' + this.l55_1.o2z_1);
|
|
2213
|
+
tmp_3.q55_1 = null;
|
|
2204
2214
|
this.g9_1 = 5;
|
|
2205
2215
|
continue $sm;
|
|
2206
2216
|
} else {
|
|
2207
|
-
var tmp_4 = this.
|
|
2217
|
+
var tmp_4 = this.p55_1;
|
|
2208
2218
|
if (tmp_4 instanceof ProtocolUpgrade) {
|
|
2209
2219
|
var tmp_5 = this;
|
|
2210
|
-
this.
|
|
2211
|
-
tmp_5.
|
|
2220
|
+
this.n55_1.k('--> END ' + this.l55_1.o2z_1);
|
|
2221
|
+
tmp_5.q55_1 = null;
|
|
2212
2222
|
this.g9_1 = 5;
|
|
2213
2223
|
continue $sm;
|
|
2214
2224
|
} else {
|
|
2215
|
-
var tmp_6 = this.
|
|
2225
|
+
var tmp_6 = this.p55_1;
|
|
2216
2226
|
if (tmp_6 instanceof ReadChannelContent) {
|
|
2217
|
-
this.
|
|
2218
|
-
this.
|
|
2219
|
-
this.
|
|
2227
|
+
this.s55_1 = split(this.k55_1.g35(), this.j55_1.m3q_1);
|
|
2228
|
+
this.t55_1 = this.s55_1.tg();
|
|
2229
|
+
this.u55_1 = this.s55_1.ug();
|
|
2220
2230
|
this.g9_1 = 2;
|
|
2221
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2231
|
+
suspendResult = invoke$logRequestBody(this.j55_1, this.k55_1, this.k55_1.c35(), this.m55_1, this.l55_1, this.n55_1, this.u55_1, this);
|
|
2222
2232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2223
2233
|
return suspendResult;
|
|
2224
2234
|
}
|
|
2225
2235
|
continue $sm;
|
|
2226
2236
|
} else {
|
|
2227
|
-
var tmp_7 = this.
|
|
2237
|
+
var tmp_7 = this.p55_1;
|
|
2228
2238
|
if (tmp_7 instanceof WriteChannelContent) {
|
|
2229
|
-
this.
|
|
2230
|
-
launch(this.
|
|
2231
|
-
this.
|
|
2232
|
-
this.
|
|
2233
|
-
this.
|
|
2239
|
+
this.v55_1 = new ByteChannel();
|
|
2240
|
+
launch(this.j55_1.m3q_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.k55_1, this.v55_1, null));
|
|
2241
|
+
this.w55_1 = split(this.v55_1, this.j55_1.m3q_1);
|
|
2242
|
+
this.x55_1 = this.w55_1.tg();
|
|
2243
|
+
this.y55_1 = this.w55_1.ug();
|
|
2234
2244
|
this.g9_1 = 1;
|
|
2235
|
-
suspendResult = invoke$logRequestBody(this.
|
|
2245
|
+
suspendResult = invoke$logRequestBody(this.j55_1, this.k55_1, this.k55_1.c35(), this.m55_1, this.l55_1, this.n55_1, this.y55_1, this);
|
|
2236
2246
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2237
2247
|
return suspendResult;
|
|
2238
2248
|
}
|
|
@@ -2249,23 +2259,23 @@
|
|
|
2249
2259
|
|
|
2250
2260
|
break;
|
|
2251
2261
|
case 1:
|
|
2252
|
-
this.
|
|
2262
|
+
this.q55_1 = new LoggedContent(this.k55_1, this.x55_1);
|
|
2253
2263
|
this.g9_1 = 5;
|
|
2254
2264
|
continue $sm;
|
|
2255
2265
|
case 2:
|
|
2256
|
-
this.
|
|
2266
|
+
this.q55_1 = new LoggedContent(this.k55_1, this.t55_1);
|
|
2257
2267
|
this.g9_1 = 5;
|
|
2258
2268
|
continue $sm;
|
|
2259
2269
|
case 3:
|
|
2260
|
-
this.
|
|
2270
|
+
this.q55_1 = suspendResult;
|
|
2261
2271
|
this.g9_1 = 5;
|
|
2262
2272
|
continue $sm;
|
|
2263
2273
|
case 4:
|
|
2264
|
-
this.
|
|
2274
|
+
this.q55_1 = null;
|
|
2265
2275
|
this.g9_1 = 5;
|
|
2266
2276
|
continue $sm;
|
|
2267
2277
|
case 5:
|
|
2268
|
-
return this.
|
|
2278
|
+
return this.q55_1;
|
|
2269
2279
|
case 6:
|
|
2270
2280
|
throw this.j9_1;
|
|
2271
2281
|
}
|
|
@@ -2280,15 +2290,15 @@
|
|
|
2280
2290
|
}
|
|
2281
2291
|
while (true);
|
|
2282
2292
|
};
|
|
2283
|
-
function $invoke$logRequestOkHttpFormatCOROUTINE$
|
|
2293
|
+
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, request, logLines, resultContinuation) {
|
|
2284
2294
|
CoroutineImpl.call(this, resultContinuation);
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2295
|
+
this.h56_1 = sanitizedHeaders;
|
|
2296
|
+
this.i56_1 = level;
|
|
2297
|
+
this.j56_1 = $this_createClientPlugin;
|
|
2298
|
+
this.k56_1 = request;
|
|
2299
|
+
this.l56_1 = logLines;
|
|
2290
2300
|
}
|
|
2291
|
-
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$
|
|
2301
|
+
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).o9 = function () {
|
|
2292
2302
|
var suspendResult = this.i9_1;
|
|
2293
2303
|
$sm: do
|
|
2294
2304
|
try {
|
|
@@ -2296,98 +2306,98 @@
|
|
|
2296
2306
|
switch (tmp) {
|
|
2297
2307
|
case 0:
|
|
2298
2308
|
this.h9_1 = 4;
|
|
2299
|
-
if (invoke$isNone(this.
|
|
2309
|
+
if (invoke$isNone(this.i56_1))
|
|
2300
2310
|
return null;
|
|
2301
|
-
this.
|
|
2302
|
-
this.
|
|
2311
|
+
this.m56_1 = pathQuery(takeFrom(new URLBuilder(), this.k56_1.x3h_1).b2v());
|
|
2312
|
+
this.n56_1 = this.k56_1.a3i_1;
|
|
2303
2313
|
var tmp_0 = this;
|
|
2304
2314
|
var this_0 = new HeadersBuilder();
|
|
2305
2315
|
var tmp_1;
|
|
2306
2316
|
var tmp_2;
|
|
2307
2317
|
var tmp_3;
|
|
2308
|
-
var tmp_4 = this.
|
|
2318
|
+
var tmp_4 = this.n56_1;
|
|
2309
2319
|
if (tmp_4 instanceof OutgoingContent) {
|
|
2310
|
-
tmp_3 = !this.
|
|
2320
|
+
tmp_3 = !this.k56_1.y3h_1.equals(Companion_getInstance().g2z_1);
|
|
2311
2321
|
} else {
|
|
2312
2322
|
tmp_3 = false;
|
|
2313
2323
|
}
|
|
2314
2324
|
|
|
2315
2325
|
if (tmp_3) {
|
|
2316
|
-
tmp_2 = !this.
|
|
2326
|
+
tmp_2 = !this.k56_1.y3h_1.equals(Companion_getInstance().l2z_1);
|
|
2317
2327
|
} else {
|
|
2318
2328
|
tmp_2 = false;
|
|
2319
2329
|
}
|
|
2320
2330
|
|
|
2321
2331
|
if (tmp_2) {
|
|
2322
|
-
var tmp_5 = this.
|
|
2332
|
+
var tmp_5 = this.n56_1;
|
|
2323
2333
|
tmp_1 = !(tmp_5 instanceof EmptyContent);
|
|
2324
2334
|
} else {
|
|
2325
2335
|
tmp_1 = false;
|
|
2326
2336
|
}
|
|
2327
2337
|
|
|
2328
2338
|
if (tmp_1) {
|
|
2329
|
-
var tmp0_safe_receiver = this.
|
|
2339
|
+
var tmp0_safe_receiver = this.n56_1.a35();
|
|
2330
2340
|
if (tmp0_safe_receiver == null)
|
|
2331
2341
|
null;
|
|
2332
2342
|
else {
|
|
2333
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2343
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().u2v_1, tmp0_safe_receiver.toString());
|
|
2334
2344
|
}
|
|
2335
|
-
var tmp1_safe_receiver = this.
|
|
2345
|
+
var tmp1_safe_receiver = this.n56_1.c35();
|
|
2336
2346
|
if (tmp1_safe_receiver == null)
|
|
2337
2347
|
null;
|
|
2338
2348
|
else {
|
|
2339
|
-
appendIfNameAbsent(this_0, HttpHeaders_getInstance().
|
|
2349
|
+
appendIfNameAbsent(this_0, HttpHeaders_getInstance().r2v_1, tmp1_safe_receiver.toString());
|
|
2340
2350
|
}
|
|
2341
2351
|
}
|
|
2342
2352
|
|
|
2343
|
-
appendAll(this_0, this.
|
|
2344
|
-
tmp_0.
|
|
2353
|
+
appendAll(this_0, this.k56_1.z3h_1);
|
|
2354
|
+
tmp_0.o56_1 = this_0.b2v();
|
|
2345
2355
|
var tmp_6 = this;
|
|
2346
|
-
var tmp0_safe_receiver_0 = this.
|
|
2347
|
-
tmp_6.
|
|
2356
|
+
var tmp0_safe_receiver_0 = this.o56_1.m2m(HttpHeaders_getInstance().r2v_1);
|
|
2357
|
+
tmp_6.p56_1 = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2348
2358
|
var tmp_7 = this;
|
|
2349
2359
|
var tmp_8;
|
|
2350
|
-
if (this.
|
|
2351
|
-
tmp_8 = '--> ' + this.
|
|
2360
|
+
if (this.k56_1.y3h_1.equals(Companion_getInstance().g2z_1) || this.k56_1.y3h_1.equals(Companion_getInstance().l2z_1) || ((invoke$isHeaders(this.i56_1) || invoke$isBody(this.i56_1)) && !(this.p56_1 == null)) || (invoke$isHeaders(this.i56_1) && this.p56_1 == null) || this.o56_1.w2n(HttpHeaders_getInstance().p2v_1)) {
|
|
2361
|
+
tmp_8 = '--> ' + this.k56_1.y3h_1.o2z_1 + ' ' + this.m56_1;
|
|
2352
2362
|
} else {
|
|
2353
|
-
if (invoke$isInfo(this.
|
|
2354
|
-
tmp_8 = '--> ' + this.
|
|
2363
|
+
if (invoke$isInfo(this.i56_1) && !(this.p56_1 == null)) {
|
|
2364
|
+
tmp_8 = '--> ' + this.k56_1.y3h_1.o2z_1 + ' ' + this.m56_1 + ' (' + toString_0(this.p56_1) + '-byte body)';
|
|
2355
2365
|
} else {
|
|
2356
2366
|
var tmp_9;
|
|
2357
|
-
var tmp_10 = this.
|
|
2367
|
+
var tmp_10 = this.n56_1;
|
|
2358
2368
|
if (tmp_10 instanceof WriteChannelContent) {
|
|
2359
2369
|
tmp_9 = true;
|
|
2360
2370
|
} else {
|
|
2361
|
-
var tmp_11 = this.
|
|
2371
|
+
var tmp_11 = this.n56_1;
|
|
2362
2372
|
tmp_9 = tmp_11 instanceof ReadChannelContent;
|
|
2363
2373
|
}
|
|
2364
2374
|
if (tmp_9) {
|
|
2365
|
-
tmp_8 = '--> ' + this.
|
|
2375
|
+
tmp_8 = '--> ' + this.k56_1.y3h_1.o2z_1 + ' ' + this.m56_1 + ' (unknown-byte body)';
|
|
2366
2376
|
} else {
|
|
2367
|
-
var size = computeRequestBodySize(this.
|
|
2368
|
-
tmp_8 = '--> ' + this.
|
|
2377
|
+
var size = computeRequestBodySize(this.k56_1.a3i_1);
|
|
2378
|
+
tmp_8 = '--> ' + this.k56_1.y3h_1.o2z_1 + ' ' + this.m56_1 + ' (' + size.toString() + '-byte body)';
|
|
2369
2379
|
}
|
|
2370
2380
|
}
|
|
2371
2381
|
}
|
|
2372
2382
|
|
|
2373
|
-
tmp_7.
|
|
2374
|
-
this.
|
|
2375
|
-
if (!invoke$isHeaders(this.
|
|
2383
|
+
tmp_7.q56_1 = tmp_8;
|
|
2384
|
+
this.l56_1.k(this.q56_1);
|
|
2385
|
+
if (!invoke$isHeaders(this.i56_1) && !invoke$isBody(this.i56_1)) {
|
|
2376
2386
|
return null;
|
|
2377
2387
|
}
|
|
2378
2388
|
|
|
2379
|
-
var _iterator__ex2g4s = this.
|
|
2389
|
+
var _iterator__ex2g4s = this.o56_1.v2n().p();
|
|
2380
2390
|
while (_iterator__ex2g4s.q()) {
|
|
2381
2391
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2382
2392
|
var name = _destruct__k2r9zo.y();
|
|
2383
2393
|
var values = _destruct__k2r9zo.z();
|
|
2384
|
-
var tmp0 = this.
|
|
2394
|
+
var tmp0 = this.h56_1;
|
|
2385
2395
|
var tmp$ret$0 = Unit_instance;
|
|
2386
2396
|
l$ret$1: do {
|
|
2387
2397
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2388
2398
|
while (_iterator__ex2g4s_0.q()) {
|
|
2389
2399
|
var element = _iterator__ex2g4s_0.r();
|
|
2390
|
-
if (element.
|
|
2400
|
+
if (element.h58_1(name)) {
|
|
2391
2401
|
tmp$ret$0 = element;
|
|
2392
2402
|
break l$ret$1;
|
|
2393
2403
|
}
|
|
@@ -2396,35 +2406,35 @@
|
|
|
2396
2406
|
}
|
|
2397
2407
|
while (false);
|
|
2398
2408
|
if (tmp$ret$0 == null) {
|
|
2399
|
-
this.
|
|
2409
|
+
this.l56_1.k(name + ': ' + joinToString(values, ', '));
|
|
2400
2410
|
} else {
|
|
2401
|
-
this.
|
|
2411
|
+
this.l56_1.k(name + ': \u2588\u2588');
|
|
2402
2412
|
}
|
|
2403
2413
|
}
|
|
2404
2414
|
|
|
2405
|
-
if (!invoke$isBody(this.
|
|
2406
|
-
this.
|
|
2415
|
+
if (!invoke$isBody(this.i56_1) || this.k56_1.y3h_1.equals(Companion_getInstance().g2z_1) || this.k56_1.y3h_1.equals(Companion_getInstance().l2z_1)) {
|
|
2416
|
+
this.l56_1.k('--> END ' + this.k56_1.y3h_1.o2z_1);
|
|
2407
2417
|
return null;
|
|
2408
2418
|
}
|
|
2409
2419
|
|
|
2410
|
-
this.
|
|
2411
|
-
var tmp_12 = this.
|
|
2420
|
+
this.l56_1.k('');
|
|
2421
|
+
var tmp_12 = this.n56_1;
|
|
2412
2422
|
if (!(tmp_12 instanceof OutgoingContent)) {
|
|
2413
|
-
this.
|
|
2423
|
+
this.l56_1.k('--> END ' + this.k56_1.y3h_1.o2z_1);
|
|
2414
2424
|
return null;
|
|
2415
2425
|
}
|
|
2416
2426
|
|
|
2417
|
-
if (this.
|
|
2427
|
+
if (this.k56_1.z3h_1.m2m(HttpHeaders_getInstance().p2v_1) === 'gzip') {
|
|
2418
2428
|
this.g9_1 = 2;
|
|
2419
|
-
var tmp_13 = this.
|
|
2420
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2429
|
+
var tmp_13 = this.k56_1.y3h_1;
|
|
2430
|
+
suspendResult = invoke$logOutgoingContent(this.j56_1, this.n56_1, tmp_13, this.o56_1, this.l56_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2421
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2422
2432
|
return suspendResult;
|
|
2423
2433
|
}
|
|
2424
2434
|
continue $sm;
|
|
2425
2435
|
} else {
|
|
2426
2436
|
this.g9_1 = 1;
|
|
2427
|
-
suspendResult = invoke$logOutgoingContent(this.
|
|
2437
|
+
suspendResult = invoke$logOutgoingContent(this.j56_1, this.n56_1, this.k56_1.y3h_1, this.o56_1, this.l56_1, VOID, this);
|
|
2428
2438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2429
2439
|
return suspendResult;
|
|
2430
2440
|
}
|
|
@@ -2432,15 +2442,15 @@
|
|
|
2432
2442
|
}
|
|
2433
2443
|
|
|
2434
2444
|
case 1:
|
|
2435
|
-
this.
|
|
2445
|
+
this.r56_1 = suspendResult;
|
|
2436
2446
|
this.g9_1 = 3;
|
|
2437
2447
|
continue $sm;
|
|
2438
2448
|
case 2:
|
|
2439
|
-
this.
|
|
2449
|
+
this.r56_1 = suspendResult;
|
|
2440
2450
|
this.g9_1 = 3;
|
|
2441
2451
|
continue $sm;
|
|
2442
2452
|
case 3:
|
|
2443
|
-
var newContent = this.
|
|
2453
|
+
var newContent = this.r56_1;
|
|
2444
2454
|
return newContent;
|
|
2445
2455
|
case 4:
|
|
2446
2456
|
throw this.j9_1;
|
|
@@ -2456,14 +2466,14 @@
|
|
|
2456
2466
|
}
|
|
2457
2467
|
while (true);
|
|
2458
2468
|
};
|
|
2459
|
-
function $invoke$logResponseBodyCOROUTINE$
|
|
2469
|
+
function $invoke$logResponseBodyCOROUTINE$($this_createClientPlugin, response, body, logLines, resultContinuation) {
|
|
2460
2470
|
CoroutineImpl.call(this, resultContinuation);
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2463
|
-
this.
|
|
2464
|
-
this.
|
|
2471
|
+
this.a57_1 = $this_createClientPlugin;
|
|
2472
|
+
this.b57_1 = response;
|
|
2473
|
+
this.c57_1 = body;
|
|
2474
|
+
this.d57_1 = logLines;
|
|
2465
2475
|
}
|
|
2466
|
-
protoOf($invoke$logResponseBodyCOROUTINE$
|
|
2476
|
+
protoOf($invoke$logResponseBodyCOROUTINE$).o9 = function () {
|
|
2467
2477
|
var suspendResult = this.i9_1;
|
|
2468
2478
|
$sm: do
|
|
2469
2479
|
try {
|
|
@@ -2471,38 +2481,38 @@
|
|
|
2471
2481
|
switch (tmp) {
|
|
2472
2482
|
case 0:
|
|
2473
2483
|
this.h9_1 = 4;
|
|
2474
|
-
this.
|
|
2484
|
+
this.d57_1.k('');
|
|
2475
2485
|
this.g9_1 = 1;
|
|
2476
|
-
suspendResult = invoke$detectIfBinary(this.
|
|
2486
|
+
suspendResult = invoke$detectIfBinary(this.a57_1, this.c57_1, contentLength(this.b57_1), contentType(this.b57_1), this.b57_1.f2z(), this);
|
|
2477
2487
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2478
2488
|
return suspendResult;
|
|
2479
2489
|
}
|
|
2480
2490
|
|
|
2481
2491
|
continue $sm;
|
|
2482
2492
|
case 1:
|
|
2483
|
-
this.
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2487
|
-
this.
|
|
2488
|
-
if (equals(this.
|
|
2489
|
-
this.
|
|
2493
|
+
this.e57_1 = suspendResult;
|
|
2494
|
+
this.f57_1 = this.e57_1.tg();
|
|
2495
|
+
this.g57_1 = this.e57_1.ug();
|
|
2496
|
+
this.h57_1 = this.e57_1.tl();
|
|
2497
|
+
this.i57_1 = this.b57_1.x3j().d2p_1.a3(this.b57_1.w3j().d2p_1);
|
|
2498
|
+
if (equals(this.g57_1, new Long(0, 0))) {
|
|
2499
|
+
this.d57_1.k('<-- END HTTP (' + this.i57_1.toString() + 'ms, ' + toString_0(this.g57_1) + '-byte body)');
|
|
2490
2500
|
return Unit_instance;
|
|
2491
2501
|
}
|
|
2492
2502
|
|
|
2493
|
-
if (!this.
|
|
2494
|
-
this.
|
|
2503
|
+
if (!this.f57_1) {
|
|
2504
|
+
this.k57_1 = contentType(this.b57_1);
|
|
2495
2505
|
var tmp_0 = this;
|
|
2496
2506
|
var tmp_1;
|
|
2497
|
-
if (!(this.
|
|
2498
|
-
var tmp0_elvis_lhs = charset(this.
|
|
2507
|
+
if (!(this.k57_1 == null)) {
|
|
2508
|
+
var tmp0_elvis_lhs = charset(this.k57_1);
|
|
2499
2509
|
tmp_1 = tmp0_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp0_elvis_lhs;
|
|
2500
2510
|
} else {
|
|
2501
2511
|
tmp_1 = Charsets_getInstance().v1x_1;
|
|
2502
2512
|
}
|
|
2503
|
-
tmp_0.
|
|
2513
|
+
tmp_0.l57_1 = tmp_1;
|
|
2504
2514
|
this.g9_1 = 2;
|
|
2505
|
-
suspendResult = readRemaining(this.
|
|
2515
|
+
suspendResult = readRemaining(this.h57_1, this);
|
|
2506
2516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2507
2517
|
return suspendResult;
|
|
2508
2518
|
}
|
|
@@ -2510,25 +2520,25 @@
|
|
|
2510
2520
|
} else {
|
|
2511
2521
|
var tmp_2 = this;
|
|
2512
2522
|
var type = 'binary';
|
|
2513
|
-
if (this.
|
|
2523
|
+
if (this.b57_1.f2z().w2n(HttpHeaders_getInstance().p2v_1)) {
|
|
2514
2524
|
type = 'encoded';
|
|
2515
2525
|
}
|
|
2516
2526
|
var tmp_3;
|
|
2517
|
-
if (!(this.
|
|
2518
|
-
tmp_3 = this.
|
|
2527
|
+
if (!(this.g57_1 == null)) {
|
|
2528
|
+
tmp_3 = this.d57_1.k('<-- END HTTP (' + this.i57_1.toString() + 'ms, ' + type + ' ' + toString_0(this.g57_1) + '-byte body omitted)');
|
|
2519
2529
|
} else {
|
|
2520
|
-
tmp_3 = this.
|
|
2530
|
+
tmp_3 = this.d57_1.k('<-- END HTTP (' + this.i57_1.toString() + 'ms, ' + type + ' body omitted)');
|
|
2521
2531
|
}
|
|
2522
|
-
tmp_2.
|
|
2532
|
+
tmp_2.j57_1 = tmp_3;
|
|
2523
2533
|
this.g9_1 = 3;
|
|
2524
2534
|
continue $sm;
|
|
2525
2535
|
}
|
|
2526
2536
|
|
|
2527
2537
|
case 2:
|
|
2528
2538
|
var ARGUMENT = suspendResult;
|
|
2529
|
-
var ARGUMENT_0 = readText(ARGUMENT, this.
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2539
|
+
var ARGUMENT_0 = readText(ARGUMENT, this.l57_1);
|
|
2540
|
+
this.d57_1.k(ARGUMENT_0);
|
|
2541
|
+
this.j57_1 = this.d57_1.k('<-- END HTTP (' + this.i57_1.toString() + 'ms, ' + toString_0(this.g57_1) + '-byte body)');
|
|
2532
2542
|
this.g9_1 = 3;
|
|
2533
2543
|
continue $sm;
|
|
2534
2544
|
case 3:
|
|
@@ -2547,15 +2557,15 @@
|
|
|
2547
2557
|
}
|
|
2548
2558
|
while (true);
|
|
2549
2559
|
};
|
|
2550
|
-
function $invoke$logResponseOkHttpFormatCOROUTINE$
|
|
2560
|
+
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, response, logLines, resultContinuation) {
|
|
2551
2561
|
CoroutineImpl.call(this, resultContinuation);
|
|
2552
|
-
this.
|
|
2553
|
-
this.
|
|
2554
|
-
this.
|
|
2555
|
-
this.
|
|
2556
|
-
this.
|
|
2562
|
+
this.u57_1 = sanitizedHeaders;
|
|
2563
|
+
this.v57_1 = level;
|
|
2564
|
+
this.w57_1 = $this_createClientPlugin;
|
|
2565
|
+
this.x57_1 = response;
|
|
2566
|
+
this.y57_1 = logLines;
|
|
2557
2567
|
}
|
|
2558
|
-
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$
|
|
2568
|
+
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).o9 = function () {
|
|
2559
2569
|
var suspendResult = this.i9_1;
|
|
2560
2570
|
$sm: do
|
|
2561
2571
|
try {
|
|
@@ -2563,31 +2573,31 @@
|
|
|
2563
2573
|
switch (tmp) {
|
|
2564
2574
|
case 0:
|
|
2565
2575
|
this.h9_1 = 4;
|
|
2566
|
-
if (invoke$isNone(this.
|
|
2567
|
-
return this.
|
|
2576
|
+
if (invoke$isNone(this.v57_1))
|
|
2577
|
+
return this.x57_1;
|
|
2568
2578
|
var tmp_0 = this;
|
|
2569
|
-
var tmp0_safe_receiver = this.
|
|
2570
|
-
tmp_0.
|
|
2571
|
-
this.
|
|
2572
|
-
this.
|
|
2573
|
-
this.
|
|
2574
|
-
this.
|
|
2575
|
-
if (!invoke$isHeaders(this.
|
|
2576
|
-
return this.
|
|
2579
|
+
var tmp0_safe_receiver = this.x57_1.f2z().m2m(HttpHeaders_getInstance().r2v_1);
|
|
2580
|
+
tmp_0.z57_1 = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2581
|
+
this.a58_1 = get_request(this.x57_1);
|
|
2582
|
+
this.b58_1 = this.x57_1.x3j().d2p_1.a3(this.x57_1.w3j().d2p_1);
|
|
2583
|
+
this.c58_1 = this.x57_1.f2z().m2m(HttpHeaders_getInstance().y2x_1) === 'chunked' && (invoke$isInfo(this.v57_1) || invoke$isHeaders(this.v57_1)) ? '<-- ' + this.x57_1.b35().toString() + ' ' + pathQuery(this.a58_1.o3j()) + ' (' + this.b58_1.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.v57_1) && !(this.z57_1 == null) ? '<-- ' + this.x57_1.b35().toString() + ' ' + pathQuery(this.a58_1.o3j()) + ' (' + this.b58_1.toString() + 'ms, ' + toString_0(this.z57_1) + '-byte body)' : invoke$isBody(this.v57_1) || (invoke$isInfo(this.v57_1) && this.z57_1 == null) || (invoke$isHeaders(this.v57_1) && !(this.z57_1 == null)) || this.x57_1.f2z().m2m(HttpHeaders_getInstance().p2v_1) === 'gzip' ? '<-- ' + this.x57_1.b35().toString() + ' ' + pathQuery(this.a58_1.o3j()) + ' (' + this.b58_1.toString() + 'ms)' : '<-- ' + this.x57_1.b35().toString() + ' ' + pathQuery(this.a58_1.o3j()) + ' (' + this.b58_1.toString() + 'ms, unknown-byte body)';
|
|
2584
|
+
this.y57_1.k(this.c58_1);
|
|
2585
|
+
if (!invoke$isHeaders(this.v57_1) && !invoke$isBody(this.v57_1)) {
|
|
2586
|
+
return this.x57_1;
|
|
2577
2587
|
}
|
|
2578
2588
|
|
|
2579
|
-
var _iterator__ex2g4s = this.
|
|
2589
|
+
var _iterator__ex2g4s = this.x57_1.f2z().v2n().p();
|
|
2580
2590
|
while (_iterator__ex2g4s.q()) {
|
|
2581
2591
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
2582
2592
|
var name = _destruct__k2r9zo.y();
|
|
2583
2593
|
var values = _destruct__k2r9zo.z();
|
|
2584
|
-
var tmp0 = this.
|
|
2594
|
+
var tmp0 = this.u57_1;
|
|
2585
2595
|
var tmp$ret$0 = Unit_instance;
|
|
2586
2596
|
l$ret$1: do {
|
|
2587
2597
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
2588
2598
|
while (_iterator__ex2g4s_0.q()) {
|
|
2589
2599
|
var element = _iterator__ex2g4s_0.r();
|
|
2590
|
-
if (element.
|
|
2600
|
+
if (element.h58_1(name)) {
|
|
2591
2601
|
tmp$ret$0 = element;
|
|
2592
2602
|
break l$ret$1;
|
|
2593
2603
|
}
|
|
@@ -2596,30 +2606,30 @@
|
|
|
2596
2606
|
}
|
|
2597
2607
|
while (false);
|
|
2598
2608
|
if (tmp$ret$0 == null) {
|
|
2599
|
-
this.
|
|
2609
|
+
this.y57_1.k(name + ': ' + joinToString(values, ', '));
|
|
2600
2610
|
} else {
|
|
2601
|
-
this.
|
|
2611
|
+
this.y57_1.k(name + ': \u2588\u2588');
|
|
2602
2612
|
}
|
|
2603
2613
|
}
|
|
2604
2614
|
|
|
2605
|
-
if (!invoke$isBody(this.
|
|
2606
|
-
this.
|
|
2607
|
-
return this.
|
|
2615
|
+
if (!invoke$isBody(this.v57_1)) {
|
|
2616
|
+
this.y57_1.k('<-- END HTTP');
|
|
2617
|
+
return this.x57_1;
|
|
2608
2618
|
}
|
|
2609
2619
|
|
|
2610
|
-
if (!(this.
|
|
2611
|
-
this.
|
|
2612
|
-
return this.
|
|
2620
|
+
if (!(this.z57_1 == null) && equals(this.z57_1, new Long(0, 0))) {
|
|
2621
|
+
this.y57_1.k('<-- END HTTP (' + this.b58_1.toString() + 'ms, ' + toString_0(this.z57_1) + '-byte body)');
|
|
2622
|
+
return this.x57_1;
|
|
2613
2623
|
}
|
|
2614
2624
|
|
|
2615
|
-
if (equals(contentType(this.
|
|
2616
|
-
this.
|
|
2617
|
-
return this.
|
|
2625
|
+
if (equals(contentType(this.x57_1), Text_getInstance().p2u_1)) {
|
|
2626
|
+
this.y57_1.k('<-- END HTTP (streaming)');
|
|
2627
|
+
return this.x57_1;
|
|
2618
2628
|
}
|
|
2619
2629
|
|
|
2620
|
-
if (get_isSaved(this.
|
|
2630
|
+
if (get_isSaved(this.x57_1)) {
|
|
2621
2631
|
this.g9_1 = 3;
|
|
2622
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2632
|
+
suspendResult = invoke$logResponseBody(this.w57_1, this.x57_1, this.x57_1.u3j(), this.y57_1, this);
|
|
2623
2633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2624
2634
|
return suspendResult;
|
|
2625
2635
|
}
|
|
@@ -2630,21 +2640,22 @@
|
|
|
2630
2640
|
}
|
|
2631
2641
|
|
|
2632
2642
|
case 1:
|
|
2633
|
-
this.
|
|
2634
|
-
this.
|
|
2635
|
-
this.
|
|
2643
|
+
this.d58_1 = split(this.x57_1.u3j(), this.x57_1);
|
|
2644
|
+
this.e58_1 = this.d58_1.tg();
|
|
2645
|
+
this.f58_1 = this.d58_1.ug();
|
|
2636
2646
|
this.g9_1 = 2;
|
|
2637
|
-
suspendResult = invoke$logResponseBody(this.
|
|
2647
|
+
suspendResult = invoke$logResponseBody(this.w57_1, this.x57_1, this.f58_1, this.y57_1, this);
|
|
2638
2648
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2639
2649
|
return suspendResult;
|
|
2640
2650
|
}
|
|
2641
2651
|
|
|
2642
2652
|
continue $sm;
|
|
2643
2653
|
case 2:
|
|
2644
|
-
var
|
|
2645
|
-
|
|
2654
|
+
var tmp_1 = this.x57_1.m3j();
|
|
2655
|
+
var call = replaceResponse(tmp_1, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.e58_1));
|
|
2656
|
+
return call.x3g();
|
|
2646
2657
|
case 3:
|
|
2647
|
-
return this.
|
|
2658
|
+
return this.x57_1;
|
|
2648
2659
|
case 4:
|
|
2649
2660
|
throw this.j9_1;
|
|
2650
2661
|
}
|
|
@@ -2738,7 +2749,7 @@
|
|
|
2738
2749
|
var _iterator__ex2g4s_0 = sanitizedHeaders.p();
|
|
2739
2750
|
while (_iterator__ex2g4s_0.q()) {
|
|
2740
2751
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
2741
|
-
if (element_0.
|
|
2752
|
+
if (element_0.h58_1(key)) {
|
|
2742
2753
|
tmp$ret$5 = element_0;
|
|
2743
2754
|
break $l$block;
|
|
2744
2755
|
}
|
|
@@ -2746,7 +2757,7 @@
|
|
|
2746
2757
|
tmp$ret$5 = null;
|
|
2747
2758
|
}
|
|
2748
2759
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
2749
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2760
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g58_1;
|
|
2750
2761
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2751
2762
|
}
|
|
2752
2763
|
}
|
|
@@ -2758,45 +2769,51 @@
|
|
|
2758
2769
|
}
|
|
2759
2770
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2760
2771
|
// Inline function 'kotlin.with' call
|
|
2761
|
-
if (level.
|
|
2772
|
+
if (level.q50_1) {
|
|
2762
2773
|
// Inline function 'kotlin.text.appendLine' call
|
|
2763
|
-
var value = 'RESPONSE: ' + response.
|
|
2774
|
+
var value = 'RESPONSE: ' + response.b35().toString();
|
|
2764
2775
|
// Inline function 'kotlin.text.appendLine' call
|
|
2765
2776
|
log.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
2766
2777
|
// Inline function 'kotlin.text.appendLine' call
|
|
2767
|
-
var value_0 = 'METHOD: ' + response.
|
|
2778
|
+
var value_0 = 'METHOD: ' + response.m3j().f3j().n3j().toString();
|
|
2768
2779
|
// Inline function 'kotlin.text.appendLine' call
|
|
2769
2780
|
log.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
2770
2781
|
// Inline function 'kotlin.text.appendLine' call
|
|
2771
|
-
var value_1 = 'FROM: ' + response.
|
|
2782
|
+
var value_1 = 'FROM: ' + response.m3j().f3j().o3j().toString();
|
|
2772
2783
|
// Inline function 'kotlin.text.appendLine' call
|
|
2773
2784
|
log.r8(value_1).s8(_Char___init__impl__6a9atx(10));
|
|
2774
2785
|
}
|
|
2775
|
-
if (level.
|
|
2786
|
+
if (level.r50_1) {
|
|
2776
2787
|
// Inline function 'kotlin.text.appendLine' call
|
|
2777
2788
|
var value_2 = 'COMMON HEADERS';
|
|
2778
2789
|
// Inline function 'kotlin.text.appendLine' call
|
|
2779
2790
|
log.r8(value_2).s8(_Char___init__impl__6a9atx(10));
|
|
2780
|
-
logHeaders(log, response.
|
|
2791
|
+
logHeaders(log, response.f2z().v2n(), sanitizedHeaders);
|
|
2781
2792
|
}
|
|
2782
2793
|
}
|
|
2783
|
-
function logResponseBody(
|
|
2784
|
-
var tmp = new $logResponseBodyCOROUTINE$
|
|
2794
|
+
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
2795
|
+
var tmp = new $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, $completion);
|
|
2796
|
+
tmp.i9_1 = Unit_instance;
|
|
2797
|
+
tmp.j9_1 = null;
|
|
2798
|
+
return tmp.o9();
|
|
2799
|
+
}
|
|
2800
|
+
function appendResponseBody(_this__u8e3s4, contentType, content, $completion) {
|
|
2801
|
+
var tmp = new $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, $completion);
|
|
2785
2802
|
tmp.i9_1 = Unit_instance;
|
|
2786
2803
|
tmp.j9_1 = null;
|
|
2787
2804
|
return tmp.o9();
|
|
2788
2805
|
}
|
|
2789
2806
|
function sam$kotlin_Comparator$0(function_0) {
|
|
2790
|
-
this.
|
|
2807
|
+
this.a5f_1 = function_0;
|
|
2791
2808
|
}
|
|
2792
2809
|
protoOf(sam$kotlin_Comparator$0).ne = function (a, b) {
|
|
2793
|
-
return this.
|
|
2810
|
+
return this.a5f_1(a, b);
|
|
2794
2811
|
};
|
|
2795
2812
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2796
2813
|
return this.ne(a, b);
|
|
2797
2814
|
};
|
|
2798
2815
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
2799
|
-
return this.
|
|
2816
|
+
return this.a5f_1;
|
|
2800
2817
|
};
|
|
2801
2818
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2802
2819
|
var tmp;
|
|
@@ -2822,43 +2839,121 @@
|
|
|
2822
2839
|
var tmp$ret$1 = b.y();
|
|
2823
2840
|
return compareValues(tmp, tmp$ret$1);
|
|
2824
2841
|
}
|
|
2825
|
-
function $logResponseBodyCOROUTINE$
|
|
2842
|
+
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2826
2843
|
CoroutineImpl.call(this, resultContinuation);
|
|
2827
|
-
this.
|
|
2828
|
-
this.
|
|
2829
|
-
this.p5e_1 = content;
|
|
2844
|
+
this.e5e_1 = _this__u8e3s4;
|
|
2845
|
+
this.f5e_1 = response;
|
|
2830
2846
|
}
|
|
2831
|
-
protoOf($logResponseBodyCOROUTINE$
|
|
2847
|
+
protoOf($logResponseBodyCOROUTINE$_0).o9 = function () {
|
|
2832
2848
|
var suspendResult = this.i9_1;
|
|
2833
2849
|
$sm: do
|
|
2834
2850
|
try {
|
|
2835
2851
|
var tmp = this.g9_1;
|
|
2836
2852
|
switch (tmp) {
|
|
2837
2853
|
case 0:
|
|
2854
|
+
this.h9_1 = 8;
|
|
2855
|
+
this.g5e_1 = StringBuilder_init_$Create$();
|
|
2856
|
+
this.g9_1 = 1;
|
|
2857
|
+
continue $sm;
|
|
2858
|
+
case 1:
|
|
2859
|
+
this.h9_1 = 4;
|
|
2838
2860
|
this.h9_1 = 3;
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2861
|
+
this.g9_1 = 2;
|
|
2862
|
+
suspendResult = appendResponseBody(this.g5e_1, contentType(this.f5e_1), this.f5e_1.u3j(), this);
|
|
2863
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2864
|
+
return suspendResult;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
continue $sm;
|
|
2868
|
+
case 2:
|
|
2869
|
+
this.h5e_1 = suspendResult;
|
|
2870
|
+
this.h9_1 = 8;
|
|
2871
|
+
this.g9_1 = 6;
|
|
2872
|
+
continue $sm;
|
|
2873
|
+
case 3:
|
|
2874
|
+
this.h9_1 = 4;
|
|
2875
|
+
var tmp_0 = this.j9_1;
|
|
2876
|
+
if (tmp_0 instanceof Error) {
|
|
2877
|
+
this.i5e_1 = this.j9_1;
|
|
2878
|
+
var tmp_1 = this;
|
|
2879
|
+
tmp_1.h5e_1 = Unit_instance;
|
|
2880
|
+
this.h9_1 = 8;
|
|
2881
|
+
this.g9_1 = 6;
|
|
2882
|
+
continue $sm;
|
|
2883
|
+
} else {
|
|
2884
|
+
throw this.j9_1;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
case 4:
|
|
2888
|
+
this.h9_1 = 8;
|
|
2889
|
+
this.j5e_1 = this.j9_1;
|
|
2890
|
+
this.g9_1 = 5;
|
|
2891
|
+
var this_0 = this.g5e_1.toString();
|
|
2892
|
+
suspendResult = this.e5e_1.l50(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2893
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2894
|
+
return suspendResult;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
continue $sm;
|
|
2898
|
+
case 5:
|
|
2899
|
+
throw this.j5e_1;
|
|
2900
|
+
case 6:
|
|
2901
|
+
this.h9_1 = 8;
|
|
2902
|
+
this.g9_1 = 7;
|
|
2903
|
+
var this_1 = this.g5e_1.toString();
|
|
2904
|
+
suspendResult = this.e5e_1.l50(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2905
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2906
|
+
return suspendResult;
|
|
2907
|
+
}
|
|
2908
|
+
|
|
2909
|
+
continue $sm;
|
|
2910
|
+
case 7:
|
|
2911
|
+
return Unit_instance;
|
|
2912
|
+
case 8:
|
|
2913
|
+
throw this.j9_1;
|
|
2914
|
+
}
|
|
2915
|
+
} catch ($p) {
|
|
2916
|
+
var e = $p;
|
|
2917
|
+
if (this.h9_1 === 8) {
|
|
2918
|
+
throw e;
|
|
2919
|
+
} else {
|
|
2920
|
+
this.g9_1 = this.h9_1;
|
|
2921
|
+
this.j9_1 = e;
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
while (true);
|
|
2925
|
+
};
|
|
2926
|
+
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2927
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2928
|
+
this.s5e_1 = _this__u8e3s4;
|
|
2929
|
+
this.t5e_1 = contentType;
|
|
2930
|
+
this.u5e_1 = content;
|
|
2931
|
+
}
|
|
2932
|
+
protoOf($appendResponseBodyCOROUTINE$).o9 = function () {
|
|
2933
|
+
var suspendResult = this.i9_1;
|
|
2934
|
+
$sm: do
|
|
2935
|
+
try {
|
|
2936
|
+
var tmp = this.g9_1;
|
|
2937
|
+
switch (tmp) {
|
|
2938
|
+
case 0:
|
|
2939
|
+
this.h9_1 = 3;
|
|
2940
|
+
var tmp0 = this.s5e_1;
|
|
2941
|
+
var value = 'BODY Content-Type: ' + toString_0(this.t5e_1);
|
|
2847
2942
|
tmp0.r8(value).s8(_Char___init__impl__6a9atx(10));
|
|
2848
|
-
var
|
|
2943
|
+
var tmp0_0 = this.s5e_1;
|
|
2849
2944
|
var value_0 = 'BODY START';
|
|
2850
|
-
|
|
2851
|
-
var
|
|
2852
|
-
|
|
2853
|
-
var
|
|
2854
|
-
var tmp0_safe_receiver = this.
|
|
2945
|
+
tmp0_0.r8(value_0).s8(_Char___init__impl__6a9atx(10));
|
|
2946
|
+
var tmp_0 = this;
|
|
2947
|
+
tmp_0.v5e_1 = this.u5e_1;
|
|
2948
|
+
var tmp_1 = this;
|
|
2949
|
+
var tmp0_safe_receiver = this.t5e_1;
|
|
2855
2950
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
2856
|
-
|
|
2857
|
-
this.w5e_1 = this.u5e_1;
|
|
2951
|
+
tmp_1.w5e_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().v1x_1 : tmp1_elvis_lhs;
|
|
2858
2952
|
this.x5e_1 = this.v5e_1;
|
|
2953
|
+
this.y5e_1 = this.w5e_1;
|
|
2859
2954
|
this.h9_1 = 2;
|
|
2860
2955
|
this.g9_1 = 1;
|
|
2861
|
-
suspendResult = readRemaining(this.
|
|
2956
|
+
suspendResult = readRemaining(this.x5e_1, this);
|
|
2862
2957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2863
2958
|
return suspendResult;
|
|
2864
2959
|
}
|
|
@@ -2866,17 +2961,17 @@
|
|
|
2866
2961
|
continue $sm;
|
|
2867
2962
|
case 1:
|
|
2868
2963
|
var ARGUMENT = suspendResult;
|
|
2869
|
-
this.
|
|
2964
|
+
this.z5e_1 = readText(ARGUMENT, this.y5e_1);
|
|
2870
2965
|
this.h9_1 = 3;
|
|
2871
2966
|
this.g9_1 = 4;
|
|
2872
2967
|
continue $sm;
|
|
2873
2968
|
case 2:
|
|
2874
2969
|
this.h9_1 = 3;
|
|
2875
|
-
var
|
|
2876
|
-
if (
|
|
2970
|
+
var tmp_2 = this.j9_1;
|
|
2971
|
+
if (tmp_2 instanceof Error) {
|
|
2877
2972
|
var cause = this.j9_1;
|
|
2878
|
-
var
|
|
2879
|
-
|
|
2973
|
+
var tmp_3 = this;
|
|
2974
|
+
tmp_3.z5e_1 = null;
|
|
2880
2975
|
this.g9_1 = 4;
|
|
2881
2976
|
continue $sm;
|
|
2882
2977
|
} else {
|
|
@@ -2887,10 +2982,10 @@
|
|
|
2887
2982
|
throw this.j9_1;
|
|
2888
2983
|
case 4:
|
|
2889
2984
|
this.h9_1 = 3;
|
|
2890
|
-
var tmp2_elvis_lhs = this.
|
|
2985
|
+
var tmp2_elvis_lhs = this.z5e_1;
|
|
2891
2986
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2987
|
+
this.s5e_1.r8(message).s8(_Char___init__impl__6a9atx(10));
|
|
2988
|
+
this.s5e_1.r8('BODY END');
|
|
2894
2989
|
return Unit_instance;
|
|
2895
2990
|
}
|
|
2896
2991
|
} catch ($p) {
|
|
@@ -2905,7 +3000,7 @@
|
|
|
2905
3000
|
while (true);
|
|
2906
3001
|
};
|
|
2907
3002
|
function observe(_this__u8e3s4, log, $completion) {
|
|
2908
|
-
var tmp = new $observeCOROUTINE$
|
|
3003
|
+
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
2909
3004
|
tmp.i9_1 = Unit_instance;
|
|
2910
3005
|
tmp.j9_1 = null;
|
|
2911
3006
|
return tmp.o9();
|
|
@@ -2916,17 +3011,17 @@
|
|
|
2916
3011
|
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).g1v_1;
|
|
2917
3012
|
}
|
|
2918
3013
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
2919
|
-
this.
|
|
3014
|
+
this.x5f_1 = $this_toReadChannel;
|
|
2920
3015
|
CoroutineImpl.call(this, resultContinuation);
|
|
2921
3016
|
}
|
|
2922
|
-
protoOf(toReadChannel$slambda).
|
|
2923
|
-
var tmp = this.
|
|
3017
|
+
protoOf(toReadChannel$slambda).i3a = function ($this$writer, $completion) {
|
|
3018
|
+
var tmp = this.j3a($this$writer, $completion);
|
|
2924
3019
|
tmp.i9_1 = Unit_instance;
|
|
2925
3020
|
tmp.j9_1 = null;
|
|
2926
3021
|
return tmp.o9();
|
|
2927
3022
|
};
|
|
2928
3023
|
protoOf(toReadChannel$slambda).ca = function (p1, $completion) {
|
|
2929
|
-
return this.
|
|
3024
|
+
return this.i3a(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
2930
3025
|
};
|
|
2931
3026
|
protoOf(toReadChannel$slambda).o9 = function () {
|
|
2932
3027
|
var suspendResult = this.i9_1;
|
|
@@ -2937,7 +3032,7 @@
|
|
|
2937
3032
|
case 0:
|
|
2938
3033
|
this.h9_1 = 2;
|
|
2939
3034
|
this.g9_1 = 1;
|
|
2940
|
-
suspendResult = this.
|
|
3035
|
+
suspendResult = this.x5f_1.i35(this.y5f_1.i1v_1, this);
|
|
2941
3036
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2942
3037
|
return suspendResult;
|
|
2943
3038
|
}
|
|
@@ -2959,25 +3054,25 @@
|
|
|
2959
3054
|
}
|
|
2960
3055
|
while (true);
|
|
2961
3056
|
};
|
|
2962
|
-
protoOf(toReadChannel$slambda).
|
|
2963
|
-
var i = new toReadChannel$slambda(this.
|
|
2964
|
-
i.
|
|
3057
|
+
protoOf(toReadChannel$slambda).j3a = function ($this$writer, completion) {
|
|
3058
|
+
var i = new toReadChannel$slambda(this.x5f_1, completion);
|
|
3059
|
+
i.y5f_1 = $this$writer;
|
|
2965
3060
|
return i;
|
|
2966
3061
|
};
|
|
2967
3062
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
2968
3063
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
2969
3064
|
var l = function ($this$writer, $completion) {
|
|
2970
|
-
return i.
|
|
3065
|
+
return i.i3a($this$writer, $completion);
|
|
2971
3066
|
};
|
|
2972
3067
|
l.$arity = 1;
|
|
2973
3068
|
return l;
|
|
2974
3069
|
}
|
|
2975
|
-
function $observeCOROUTINE$
|
|
3070
|
+
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
2976
3071
|
CoroutineImpl.call(this, resultContinuation);
|
|
2977
|
-
this.
|
|
2978
|
-
this.
|
|
3072
|
+
this.j5f_1 = _this__u8e3s4;
|
|
3073
|
+
this.k5f_1 = log;
|
|
2979
3074
|
}
|
|
2980
|
-
protoOf($observeCOROUTINE$
|
|
3075
|
+
protoOf($observeCOROUTINE$).o9 = function () {
|
|
2981
3076
|
var suspendResult = this.i9_1;
|
|
2982
3077
|
$sm: do
|
|
2983
3078
|
try {
|
|
@@ -2985,57 +3080,57 @@
|
|
|
2985
3080
|
switch (tmp) {
|
|
2986
3081
|
case 0:
|
|
2987
3082
|
this.h9_1 = 6;
|
|
2988
|
-
this.
|
|
2989
|
-
var tmp_0 = this.
|
|
3083
|
+
this.l5f_1 = this.j5f_1;
|
|
3084
|
+
var tmp_0 = this.l5f_1;
|
|
2990
3085
|
if (tmp_0 instanceof ByteArrayContent) {
|
|
2991
3086
|
this.g9_1 = 3;
|
|
2992
|
-
suspendResult = writeFully(this.
|
|
3087
|
+
suspendResult = writeFully(this.k5f_1, this.j5f_1.d35(), VOID, VOID, this);
|
|
2993
3088
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2994
3089
|
return suspendResult;
|
|
2995
3090
|
}
|
|
2996
3091
|
continue $sm;
|
|
2997
3092
|
} else {
|
|
2998
|
-
var tmp_1 = this.
|
|
3093
|
+
var tmp_1 = this.l5f_1;
|
|
2999
3094
|
if (tmp_1 instanceof ReadChannelContent) {
|
|
3000
3095
|
var tmp_2 = this;
|
|
3001
3096
|
var responseChannel = new ByteChannel();
|
|
3002
|
-
var content = this.
|
|
3003
|
-
copyToBoth(content, this.
|
|
3004
|
-
tmp_2.
|
|
3097
|
+
var content = this.j5f_1.g35();
|
|
3098
|
+
copyToBoth(content, this.k5f_1, responseChannel);
|
|
3099
|
+
tmp_2.m5f_1 = new LoggedContent(this.j5f_1, responseChannel);
|
|
3005
3100
|
this.g9_1 = 5;
|
|
3006
3101
|
continue $sm;
|
|
3007
3102
|
} else {
|
|
3008
|
-
var tmp_3 = this.
|
|
3103
|
+
var tmp_3 = this.l5f_1;
|
|
3009
3104
|
if (tmp_3 instanceof WriteChannelContent) {
|
|
3010
3105
|
var tmp_4 = this;
|
|
3011
3106
|
var responseChannel_0 = new ByteChannel();
|
|
3012
|
-
var content_0 = toReadChannel(this.
|
|
3013
|
-
copyToBoth(content_0, this.
|
|
3014
|
-
tmp_4.
|
|
3107
|
+
var content_0 = toReadChannel(this.j5f_1);
|
|
3108
|
+
copyToBoth(content_0, this.k5f_1, responseChannel_0);
|
|
3109
|
+
tmp_4.m5f_1 = new LoggedContent(this.j5f_1, responseChannel_0);
|
|
3015
3110
|
this.g9_1 = 5;
|
|
3016
3111
|
continue $sm;
|
|
3017
3112
|
} else {
|
|
3018
|
-
var tmp_5 = this.
|
|
3113
|
+
var tmp_5 = this.l5f_1;
|
|
3019
3114
|
if (tmp_5 instanceof ContentWrapper) {
|
|
3020
|
-
this.
|
|
3115
|
+
this.n5f_1 = this.j5f_1;
|
|
3021
3116
|
this.g9_1 = 2;
|
|
3022
|
-
suspendResult = observe(this.
|
|
3117
|
+
suspendResult = observe(this.j5f_1.m35(), this.k5f_1, this);
|
|
3023
3118
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3024
3119
|
return suspendResult;
|
|
3025
3120
|
}
|
|
3026
3121
|
continue $sm;
|
|
3027
3122
|
} else {
|
|
3028
3123
|
var tmp_6;
|
|
3029
|
-
var tmp_7 = this.
|
|
3124
|
+
var tmp_7 = this.l5f_1;
|
|
3030
3125
|
if (tmp_7 instanceof NoContent) {
|
|
3031
3126
|
tmp_6 = true;
|
|
3032
3127
|
} else {
|
|
3033
|
-
var tmp_8 = this.
|
|
3128
|
+
var tmp_8 = this.l5f_1;
|
|
3034
3129
|
tmp_6 = tmp_8 instanceof ProtocolUpgrade;
|
|
3035
3130
|
}
|
|
3036
3131
|
if (tmp_6) {
|
|
3037
3132
|
this.g9_1 = 1;
|
|
3038
|
-
suspendResult = this.
|
|
3133
|
+
suspendResult = this.k5f_1.e1n(this);
|
|
3039
3134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3040
3135
|
return suspendResult;
|
|
3041
3136
|
}
|
|
@@ -3051,28 +3146,28 @@
|
|
|
3051
3146
|
|
|
3052
3147
|
break;
|
|
3053
3148
|
case 1:
|
|
3054
|
-
this.
|
|
3149
|
+
this.m5f_1 = this.j5f_1;
|
|
3055
3150
|
this.g9_1 = 5;
|
|
3056
3151
|
continue $sm;
|
|
3057
3152
|
case 2:
|
|
3058
|
-
this.
|
|
3059
|
-
this.
|
|
3153
|
+
this.o5f_1 = suspendResult;
|
|
3154
|
+
this.m5f_1 = this.n5f_1.n35(this.o5f_1);
|
|
3060
3155
|
this.g9_1 = 5;
|
|
3061
3156
|
continue $sm;
|
|
3062
3157
|
case 3:
|
|
3063
3158
|
this.g9_1 = 4;
|
|
3064
|
-
suspendResult = this.
|
|
3159
|
+
suspendResult = this.k5f_1.e1n(this);
|
|
3065
3160
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3066
3161
|
return suspendResult;
|
|
3067
3162
|
}
|
|
3068
3163
|
|
|
3069
3164
|
continue $sm;
|
|
3070
3165
|
case 4:
|
|
3071
|
-
this.
|
|
3166
|
+
this.m5f_1 = this.j5f_1;
|
|
3072
3167
|
this.g9_1 = 5;
|
|
3073
3168
|
continue $sm;
|
|
3074
3169
|
case 5:
|
|
3075
|
-
return this.
|
|
3170
|
+
return this.m5f_1;
|
|
3076
3171
|
case 6:
|
|
3077
3172
|
throw this.j9_1;
|
|
3078
3173
|
}
|
|
@@ -3132,4 +3227,4 @@
|
|
|
3132
3227
|
_.$_$.b = get_Logging;
|
|
3133
3228
|
//endregion
|
|
3134
3229
|
return _;
|
|
3135
|
-
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-
|
|
3230
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-io.js'), require('./kotlinx-io-kotlinx-io-core.js')));
|