@icure/cardinal-sdk 2.0.0-PREVIEW-11 → 2.0.0-PREVIEW-13
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/Kermit-kermit-core.mjs +42 -42
- package/Kermit-kermit.mjs +8 -8
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
- package/KotlinBigInteger-bignum.mjs +1434 -1470
- package/cardinal-sdk-ts.d.mts +338 -100
- package/cardinal-sdk-ts.mjs +56589 -56241
- package/cardinal-sdk.mjs +120963 -100123
- package/kerberus.mjs +381 -381
- package/kotlin-kotlin-stdlib.mjs +3462 -2814
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-coroutines-core.mjs +2696 -2693
- package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
- package/kotlinx-io-kotlinx-io-core.mjs +539 -539
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
- package/kryptom-lib.mjs +2065 -2081
- package/ktor-ktor-client-content-negotiation.mjs +217 -217
- package/ktor-ktor-client-core.mjs +2997 -2993
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-http-cio.mjs +538 -537
- package/ktor-ktor-http.mjs +799 -927
- package/ktor-ktor-io.mjs +1079 -1079
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx.mjs +270 -270
- package/ktor-ktor-serialization.mjs +129 -129
- package/ktor-ktor-utils.mjs +614 -600
- package/ktor-ktor-websockets.mjs +751 -750
- package/package.json +2 -3
- package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
- package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
- package/ktor-ktor-shared-ktor-events.mjs +0 -79
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
- package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
- package/ktor-ktor-shared-ktor-sse.mjs +0 -2
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
- package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
- package/model/UserAndHealthcareParty.d.mts +0 -7
- package/model/UserAndHealthcareParty.mjs +0 -6
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
4
4
|
plus1ogy4liedzq5j as plus,
|
|
5
5
|
toMutableSetjdpdbr9jsqq8 as toMutableSet,
|
|
6
|
-
ArrayList_init_$Create$
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
ArrayList_init_$Create$149jv2ovkkvnt as ArrayList_init_$Create$,
|
|
7
|
+
Unit_instance1fbcbse1fwigr as Unit_instance,
|
|
8
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
9
9
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
10
|
-
Exception_init_$Init$
|
|
10
|
+
Exception_init_$Init$33ewqhqmjrfx6 as Exception_init_$Init$,
|
|
11
11
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
12
12
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
13
13
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
25
25
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
26
26
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
27
|
-
ArrayList_init_$Create$
|
|
28
|
-
|
|
27
|
+
ArrayList_init_$Create$3bxttkj3v1mea as ArrayList_init_$Create$_0,
|
|
28
|
+
PrimitiveClasses_getInstance2v63zn04dtq03 as PrimitiveClasses_getInstance,
|
|
29
29
|
getKClass1s3j9wy1cofik as getKClass,
|
|
30
30
|
setOf45ia9pnfhe90 as setOf,
|
|
31
31
|
KtList3hktaavzmj137 as KtList,
|
|
@@ -34,28 +34,28 @@ import {
|
|
|
34
34
|
createInvariantKTypeProjection3sfd0u0y62ozd as createInvariantKTypeProjection,
|
|
35
35
|
endsWith3cq61xxngobwh as endsWith,
|
|
36
36
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
37
|
-
LinkedHashSet_init_$Create$
|
|
37
|
+
LinkedHashSet_init_$Create$3o6z3oewjhki9 as LinkedHashSet_init_$Create$,
|
|
38
38
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
39
39
|
import {
|
|
40
|
-
|
|
40
|
+
Application_getInstanceq87g3bor693u as Application_getInstance,
|
|
41
41
|
contentType317fn4f991q9a as contentType,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
HttpHeaders_getInstanceelogg8fjd54u as HttpHeaders_getInstance,
|
|
43
|
+
Companion_getInstancecf9b3ybko8sp as Companion_getInstance,
|
|
44
44
|
OutgoingContent3t2ohmyam9o76 as OutgoingContent,
|
|
45
45
|
contentType2zzm38yxo3syt as contentType_0,
|
|
46
46
|
charset1dribv3ku48b1 as charset,
|
|
47
|
-
|
|
47
|
+
NullBody_instance2i6w0hfghwfg0 as NullBody_instance,
|
|
48
48
|
HttpStatusCode3o1wkms10pg4k as HttpStatusCode,
|
|
49
49
|
ContentType1svlpabm9v7iz as ContentType,
|
|
50
50
|
} from './ktor-ktor-http.mjs';
|
|
51
51
|
import {
|
|
52
|
-
register$
|
|
52
|
+
register$default3vdkjcc7m2cj0 as register$default,
|
|
53
53
|
Configuration20xgygxdzhlk5 as Configuration,
|
|
54
54
|
suitableCharset1jgdcpdzbzgzn as suitableCharset,
|
|
55
|
-
|
|
55
|
+
deserialize3kqe4vxpbxz1 as deserialize,
|
|
56
56
|
} from './ktor-ktor-serialization.mjs';
|
|
57
57
|
import {
|
|
58
|
-
|
|
58
|
+
Charsets_getInstanceqs70pvl4noow as Charsets_getInstance,
|
|
59
59
|
ByteReadChannel2wzou76jce72d as ByteReadChannel,
|
|
60
60
|
} from './ktor-ktor-io.mjs';
|
|
61
61
|
import {
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
HttpResponse1532ob1hsse1y as HttpResponse,
|
|
66
66
|
get_request3dwcif5y0fvf1 as get_request,
|
|
67
67
|
accept2gi3b7wj4jds9 as accept,
|
|
68
|
-
|
|
68
|
+
EmptyContent_getInstance116ybdh9l8hek as EmptyContent_getInstance,
|
|
69
69
|
createClientPluginjwpvufjows5r as createClientPlugin,
|
|
70
70
|
} from './ktor-ktor-client-core.mjs';
|
|
71
71
|
import {
|
|
@@ -82,8 +82,8 @@ initMetadataForClass(ContentNegotiationConfig, 'ContentNegotiationConfig', Conte
|
|
|
82
82
|
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
83
83
|
initMetadataForLambda(ContentNegotiation$lambda$slambda, CoroutineImpl, VOID, [4]);
|
|
84
84
|
initMetadataForLambda(ContentNegotiation$lambda$slambda_1, CoroutineImpl, VOID, [4]);
|
|
85
|
-
initMetadataForCoroutine($invoke$convertRequestCOROUTINE
|
|
86
|
-
initMetadataForCoroutine($invoke$convertResponseCOROUTINE
|
|
85
|
+
initMetadataForCoroutine($invoke$convertRequestCOROUTINE$, CoroutineImpl);
|
|
86
|
+
initMetadataForCoroutine($invoke$convertResponseCOROUTINE$, CoroutineImpl);
|
|
87
87
|
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
88
88
|
//endregion
|
|
89
89
|
function get_LOGGER() {
|
|
@@ -107,35 +107,35 @@ function get_ContentNegotiation() {
|
|
|
107
107
|
}
|
|
108
108
|
var ContentNegotiation;
|
|
109
109
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
110
|
+
this.m4x_1 = converter;
|
|
111
|
+
this.n4x_1 = contentTypeToSend;
|
|
112
|
+
this.o4x_1 = contentTypeMatcher;
|
|
113
113
|
}
|
|
114
114
|
function defaultMatcher($this, pattern) {
|
|
115
115
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
116
116
|
}
|
|
117
117
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
118
|
-
this.
|
|
118
|
+
this.p4x_1 = $pattern;
|
|
119
119
|
}
|
|
120
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
121
|
-
return contentType.
|
|
120
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).q4x = function (contentType) {
|
|
121
|
+
return contentType.y2w(this.p4x_1);
|
|
122
122
|
};
|
|
123
123
|
function ContentNegotiationConfig() {
|
|
124
|
-
this.
|
|
124
|
+
this.r4x_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
125
125
|
var tmp = this;
|
|
126
126
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
127
|
-
tmp.
|
|
128
|
-
this.
|
|
127
|
+
tmp.s4x_1 = ArrayList_init_$Create$();
|
|
128
|
+
this.t4x_1 = null;
|
|
129
129
|
}
|
|
130
|
-
protoOf(ContentNegotiationConfig).
|
|
131
|
-
var matcher = contentType.
|
|
132
|
-
this.
|
|
130
|
+
protoOf(ContentNegotiationConfig).g3n = function (contentType, converter, configuration) {
|
|
131
|
+
var matcher = contentType.y2w(Application_getInstance().e2v_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
132
|
+
this.u4x(contentType, converter, matcher, configuration);
|
|
133
133
|
};
|
|
134
|
-
protoOf(ContentNegotiationConfig).
|
|
134
|
+
protoOf(ContentNegotiationConfig).u4x = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
135
135
|
// Inline function 'kotlin.apply' call
|
|
136
136
|
configuration(converter);
|
|
137
137
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
138
|
-
this.
|
|
138
|
+
this.s4x_1.k(registration);
|
|
139
139
|
};
|
|
140
140
|
function ContentConverterException(message) {
|
|
141
141
|
Exception_init_$Init$(message, this);
|
|
@@ -150,53 +150,53 @@ function ContentNegotiationConfig$_init_$ref_1ne3ob() {
|
|
|
150
150
|
}
|
|
151
151
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
152
152
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
153
|
-
var registrations = $this$createClientPlugin.
|
|
154
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
155
|
-
$this$createClientPlugin.
|
|
156
|
-
$this$createClientPlugin.
|
|
153
|
+
var registrations = $this$createClientPlugin.j40_1.s4x_1;
|
|
154
|
+
var ignoredTypes = $this$createClientPlugin.j40_1.r4x_1;
|
|
155
|
+
$this$createClientPlugin.d4i(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
156
|
+
$this$createClientPlugin.h4a(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
157
157
|
return Unit_instance;
|
|
158
158
|
}
|
|
159
159
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
160
|
-
var tmp = new $invoke$convertRequestCOROUTINE$
|
|
161
|
-
tmp.
|
|
162
|
-
tmp.
|
|
163
|
-
return tmp.
|
|
160
|
+
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
161
|
+
tmp.n9_1 = Unit_instance;
|
|
162
|
+
tmp.o9_1 = null;
|
|
163
|
+
return tmp.t9();
|
|
164
164
|
}
|
|
165
165
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
166
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
167
|
-
var tmp = new $invoke$convertResponseCOROUTINE$
|
|
168
|
-
tmp.
|
|
169
|
-
tmp.
|
|
170
|
-
return tmp.
|
|
166
|
+
charset = charset === VOID ? Charsets_getInstance().j21_1 : charset;
|
|
167
|
+
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
168
|
+
tmp.n9_1 = Unit_instance;
|
|
169
|
+
tmp.o9_1 = null;
|
|
170
|
+
return tmp.t9();
|
|
171
171
|
}
|
|
172
172
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
173
|
+
this.s4z_1 = $registrations;
|
|
174
|
+
this.t4z_1 = $this_createClientPlugin;
|
|
175
|
+
this.u4z_1 = $ignoredTypes;
|
|
176
176
|
CoroutineImpl.call(this, resultContinuation);
|
|
177
177
|
}
|
|
178
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
179
|
-
var tmp = this.
|
|
180
|
-
tmp.
|
|
181
|
-
tmp.
|
|
182
|
-
return tmp.
|
|
178
|
+
protoOf(ContentNegotiation$lambda$slambda).z4z = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
179
|
+
var tmp = this.a50($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
180
|
+
tmp.n9_1 = Unit_instance;
|
|
181
|
+
tmp.o9_1 = null;
|
|
182
|
+
return tmp.t9();
|
|
183
183
|
};
|
|
184
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
184
|
+
protoOf(ContentNegotiation$lambda$slambda).m4b = function (p1, p2, p3, p4, $completion) {
|
|
185
185
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
186
186
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
187
187
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
188
|
-
return this.
|
|
188
|
+
return this.z4z(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
189
189
|
};
|
|
190
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
191
|
-
var suspendResult = this.
|
|
190
|
+
protoOf(ContentNegotiation$lambda$slambda).t9 = function () {
|
|
191
|
+
var suspendResult = this.n9_1;
|
|
192
192
|
$sm: do
|
|
193
193
|
try {
|
|
194
|
-
var tmp = this.
|
|
194
|
+
var tmp = this.l9_1;
|
|
195
195
|
switch (tmp) {
|
|
196
196
|
case 0:
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
199
|
-
suspendResult = invoke$convertRequest(this.
|
|
197
|
+
this.m9_1 = 2;
|
|
198
|
+
this.l9_1 = 1;
|
|
199
|
+
suspendResult = invoke$convertRequest(this.s4z_1, this.t4z_1, this.u4z_1, this.w4z_1, this.x4z_1, this);
|
|
200
200
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
201
201
|
return suspendResult;
|
|
202
202
|
}
|
|
@@ -205,63 +205,63 @@ protoOf(ContentNegotiation$lambda$slambda).s9 = function () {
|
|
|
205
205
|
case 1:
|
|
206
206
|
return suspendResult;
|
|
207
207
|
case 2:
|
|
208
|
-
throw this.
|
|
208
|
+
throw this.o9_1;
|
|
209
209
|
}
|
|
210
210
|
} catch ($p) {
|
|
211
211
|
var e = $p;
|
|
212
|
-
if (this.
|
|
212
|
+
if (this.m9_1 === 2) {
|
|
213
213
|
throw e;
|
|
214
214
|
} else {
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
215
|
+
this.l9_1 = this.m9_1;
|
|
216
|
+
this.o9_1 = e;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
while (true);
|
|
220
220
|
};
|
|
221
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
222
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
223
|
-
i.
|
|
224
|
-
i.
|
|
225
|
-
i.
|
|
226
|
-
i.
|
|
221
|
+
protoOf(ContentNegotiation$lambda$slambda).a50 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
222
|
+
var i = new ContentNegotiation$lambda$slambda(this.s4z_1, this.t4z_1, this.u4z_1, completion);
|
|
223
|
+
i.v4z_1 = $this$transformRequestBody;
|
|
224
|
+
i.w4z_1 = request;
|
|
225
|
+
i.x4z_1 = body;
|
|
226
|
+
i.y4z_1 = _unused_var__etf5q3;
|
|
227
227
|
return i;
|
|
228
228
|
};
|
|
229
229
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
230
230
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
231
231
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
232
|
-
return i.
|
|
232
|
+
return i.z4z($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
233
233
|
};
|
|
234
234
|
l.$arity = 4;
|
|
235
235
|
return l;
|
|
236
236
|
}
|
|
237
237
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
238
|
+
this.j50_1 = $ignoredTypes;
|
|
239
|
+
this.k50_1 = $registrations;
|
|
240
|
+
this.l50_1 = $this_createClientPlugin;
|
|
241
241
|
CoroutineImpl.call(this, resultContinuation);
|
|
242
242
|
}
|
|
243
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
244
|
-
var tmp = this.
|
|
245
|
-
tmp.
|
|
246
|
-
tmp.
|
|
247
|
-
return tmp.
|
|
243
|
+
protoOf(ContentNegotiation$lambda$slambda_1).k4b = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
244
|
+
var tmp = this.l4b($this$transformResponseBody, response, body, info, $completion);
|
|
245
|
+
tmp.n9_1 = Unit_instance;
|
|
246
|
+
tmp.o9_1 = null;
|
|
247
|
+
return tmp.t9();
|
|
248
248
|
};
|
|
249
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
249
|
+
protoOf(ContentNegotiation$lambda$slambda_1).m4b = function (p1, p2, p3, p4, $completion) {
|
|
250
250
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
251
251
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
252
252
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
253
|
-
return this.
|
|
253
|
+
return this.k4b(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
254
254
|
};
|
|
255
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
256
|
-
var suspendResult = this.
|
|
255
|
+
protoOf(ContentNegotiation$lambda$slambda_1).t9 = function () {
|
|
256
|
+
var suspendResult = this.n9_1;
|
|
257
257
|
$sm: do
|
|
258
258
|
try {
|
|
259
|
-
var tmp = this.
|
|
259
|
+
var tmp = this.l9_1;
|
|
260
260
|
switch (tmp) {
|
|
261
261
|
case 0:
|
|
262
|
-
this.
|
|
262
|
+
this.m9_1 = 2;
|
|
263
263
|
var tmp_0 = this;
|
|
264
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
264
|
+
var tmp0_elvis_lhs = contentType(this.n50_1);
|
|
265
265
|
var tmp_1;
|
|
266
266
|
if (tmp0_elvis_lhs == null) {
|
|
267
267
|
return null;
|
|
@@ -269,10 +269,10 @@ protoOf(ContentNegotiation$lambda$slambda_1).s9 = function () {
|
|
|
269
269
|
tmp_1 = tmp0_elvis_lhs;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
tmp_0.
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
275
|
-
suspendResult = invoke$convertResponse(this.
|
|
272
|
+
tmp_0.q50_1 = tmp_1;
|
|
273
|
+
this.r50_1 = suitableCharset(get_request(this.n50_1).h31());
|
|
274
|
+
this.l9_1 = 1;
|
|
275
|
+
suspendResult = invoke$convertResponse(this.j50_1, this.k50_1, this.l50_1, get_request(this.n50_1).j3t(), this.p50_1, this.o50_1, this.q50_1, this.r50_1, this);
|
|
276
276
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
277
277
|
return suspendResult;
|
|
278
278
|
}
|
|
@@ -281,60 +281,60 @@ protoOf(ContentNegotiation$lambda$slambda_1).s9 = function () {
|
|
|
281
281
|
case 1:
|
|
282
282
|
return suspendResult;
|
|
283
283
|
case 2:
|
|
284
|
-
throw this.
|
|
284
|
+
throw this.o9_1;
|
|
285
285
|
}
|
|
286
286
|
} catch ($p) {
|
|
287
287
|
var e = $p;
|
|
288
|
-
if (this.
|
|
288
|
+
if (this.m9_1 === 2) {
|
|
289
289
|
throw e;
|
|
290
290
|
} else {
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
291
|
+
this.l9_1 = this.m9_1;
|
|
292
|
+
this.o9_1 = e;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
while (true);
|
|
296
296
|
};
|
|
297
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
298
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
299
|
-
i.
|
|
300
|
-
i.
|
|
301
|
-
i.
|
|
302
|
-
i.
|
|
297
|
+
protoOf(ContentNegotiation$lambda$slambda_1).l4b = function ($this$transformResponseBody, response, body, info, completion) {
|
|
298
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.j50_1, this.k50_1, this.l50_1, completion);
|
|
299
|
+
i.m50_1 = $this$transformResponseBody;
|
|
300
|
+
i.n50_1 = response;
|
|
301
|
+
i.o50_1 = body;
|
|
302
|
+
i.p50_1 = info;
|
|
303
303
|
return i;
|
|
304
304
|
};
|
|
305
305
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
306
306
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
307
307
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
308
|
-
return i.
|
|
308
|
+
return i.k4b($this$transformResponseBody, response, body, info, $completion);
|
|
309
309
|
};
|
|
310
310
|
l.$arity = 4;
|
|
311
311
|
return l;
|
|
312
312
|
}
|
|
313
313
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
314
314
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
315
|
-
return toString(it.
|
|
315
|
+
return toString(it.m4x_1);
|
|
316
316
|
}
|
|
317
|
-
function $invoke$convertRequestCOROUTINE$
|
|
317
|
+
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
318
318
|
CoroutineImpl.call(this, resultContinuation);
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
319
|
+
this.d4y_1 = registrations;
|
|
320
|
+
this.e4y_1 = $this_createClientPlugin;
|
|
321
|
+
this.f4y_1 = ignoredTypes;
|
|
322
|
+
this.g4y_1 = request;
|
|
323
|
+
this.h4y_1 = body;
|
|
324
324
|
}
|
|
325
|
-
protoOf($invoke$convertRequestCOROUTINE$
|
|
326
|
-
var suspendResult = this.
|
|
325
|
+
protoOf($invoke$convertRequestCOROUTINE$).t9 = function () {
|
|
326
|
+
var suspendResult = this.n9_1;
|
|
327
327
|
$sm: do
|
|
328
328
|
try {
|
|
329
|
-
var tmp = this.
|
|
329
|
+
var tmp = this.l9_1;
|
|
330
330
|
switch (tmp) {
|
|
331
331
|
case 0:
|
|
332
|
-
this.
|
|
332
|
+
this.m9_1 = 7;
|
|
333
333
|
var tmp_0 = this;
|
|
334
334
|
var tmp_1;
|
|
335
|
-
if (this.
|
|
336
|
-
var excluded = this.
|
|
337
|
-
var tmp0 = this.
|
|
335
|
+
if (this.g4y_1.x3r_1.s2o(get_ExcludedContentTypes())) {
|
|
336
|
+
var excluded = this.g4y_1.x3r_1.q2o(get_ExcludedContentTypes());
|
|
337
|
+
var tmp0 = this.d4y_1;
|
|
338
338
|
var destination = ArrayList_init_$Create$();
|
|
339
339
|
var _iterator__ex2g4s = tmp0.q();
|
|
340
340
|
while (_iterator__ex2g4s.r()) {
|
|
@@ -354,7 +354,7 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
354
354
|
var _iterator__ex2g4s_0 = excluded.q();
|
|
355
355
|
while (_iterator__ex2g4s_0.r()) {
|
|
356
356
|
var element_0 = _iterator__ex2g4s_0.s();
|
|
357
|
-
if (element.
|
|
357
|
+
if (element.n4x_1.y2w(element_0)) {
|
|
358
358
|
tmp$ret$0 = false;
|
|
359
359
|
break l$ret$1;
|
|
360
360
|
}
|
|
@@ -368,17 +368,17 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
368
368
|
}
|
|
369
369
|
tmp_1 = destination;
|
|
370
370
|
} else {
|
|
371
|
-
tmp_1 = this.
|
|
371
|
+
tmp_1 = this.d4y_1;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
tmp_0.
|
|
374
|
+
tmp_0.i4y_1 = tmp_1;
|
|
375
375
|
var tmp_3 = this;
|
|
376
|
-
var tmp0_elvis_lhs = this.
|
|
377
|
-
tmp_3.
|
|
378
|
-
var _iterator__ex2g4s_1 = this.
|
|
376
|
+
var tmp0_elvis_lhs = this.g4y_1.u3r_1.h2q(HttpHeaders_getInstance().e2x_1);
|
|
377
|
+
tmp_3.j4y_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
378
|
+
var _iterator__ex2g4s_1 = this.i4y_1.q();
|
|
379
379
|
while (_iterator__ex2g4s_1.r()) {
|
|
380
380
|
var element_1 = _iterator__ex2g4s_1.s();
|
|
381
|
-
var tmp0_0 = this.
|
|
381
|
+
var tmp0_0 = this.j4y_1;
|
|
382
382
|
var tmp$ret$2;
|
|
383
383
|
l$ret$3: do {
|
|
384
384
|
var tmp_4;
|
|
@@ -394,7 +394,7 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
394
394
|
var _iterator__ex2g4s_2 = tmp0_0.q();
|
|
395
395
|
while (_iterator__ex2g4s_2.r()) {
|
|
396
396
|
var element_2 = _iterator__ex2g4s_2.s();
|
|
397
|
-
if (Companion_getInstance().
|
|
397
|
+
if (Companion_getInstance().io(element_2).y2w(element_1.n4x_1)) {
|
|
398
398
|
tmp$ret$2 = false;
|
|
399
399
|
break l$ret$3;
|
|
400
400
|
}
|
|
@@ -403,24 +403,24 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
403
403
|
}
|
|
404
404
|
while (false);
|
|
405
405
|
if (tmp$ret$2) {
|
|
406
|
-
var qValue = this.
|
|
407
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
408
|
-
get_LOGGER().
|
|
409
|
-
accept(this.
|
|
406
|
+
var qValue = this.e4y_1.j40_1.t4x_1;
|
|
407
|
+
var contentTypeToSend = qValue == null ? element_1.n4x_1 : element_1.n4x_1.w2w('q', qValue.toString());
|
|
408
|
+
get_LOGGER().q2u('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.g4y_1.s3r_1.toString());
|
|
409
|
+
accept(this.g4y_1, contentTypeToSend);
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
var tmp_5;
|
|
414
|
-
var tmp_6 = this.
|
|
414
|
+
var tmp_6 = this.h4y_1;
|
|
415
415
|
if (tmp_6 instanceof OutgoingContent) {
|
|
416
416
|
tmp_5 = true;
|
|
417
417
|
} else {
|
|
418
|
-
var
|
|
418
|
+
var tmp0_1 = this.f4y_1;
|
|
419
419
|
var tmp$ret$4;
|
|
420
420
|
l$ret$5: do {
|
|
421
421
|
var tmp_7;
|
|
422
|
-
if (isInterface(
|
|
423
|
-
tmp_7 =
|
|
422
|
+
if (isInterface(tmp0_1, Collection)) {
|
|
423
|
+
tmp_7 = tmp0_1.h();
|
|
424
424
|
} else {
|
|
425
425
|
tmp_7 = false;
|
|
426
426
|
}
|
|
@@ -428,10 +428,10 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
428
428
|
tmp$ret$4 = false;
|
|
429
429
|
break l$ret$5;
|
|
430
430
|
}
|
|
431
|
-
var _iterator__ex2g4s_3 =
|
|
431
|
+
var _iterator__ex2g4s_3 = tmp0_1.q();
|
|
432
432
|
while (_iterator__ex2g4s_3.r()) {
|
|
433
433
|
var element_3 = _iterator__ex2g4s_3.s();
|
|
434
|
-
if (element_3.
|
|
434
|
+
if (element_3.ub(this.h4y_1)) {
|
|
435
435
|
tmp$ret$4 = true;
|
|
436
436
|
break l$ret$5;
|
|
437
437
|
}
|
|
@@ -443,36 +443,36 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
if (tmp_5) {
|
|
446
|
-
get_LOGGER().
|
|
446
|
+
get_LOGGER().q2u('Body type ' + toString(getKClassFromExpression(this.h4y_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.g4y_1.s3r_1.toString() + '.'));
|
|
447
447
|
return null;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
var tmp_8 = this;
|
|
451
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
451
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.g4y_1);
|
|
452
452
|
var tmp_9;
|
|
453
453
|
if (tmp0_elvis_lhs_0 == null) {
|
|
454
|
-
this.
|
|
455
|
-
get_LOGGER().
|
|
454
|
+
this.e4y_1;
|
|
455
|
+
get_LOGGER().q2u("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.g4y_1.s3r_1.toString() + '.');
|
|
456
456
|
return null;
|
|
457
457
|
} else {
|
|
458
458
|
tmp_9 = tmp0_elvis_lhs_0;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
tmp_8.
|
|
462
|
-
var tmp_10 = this.
|
|
461
|
+
tmp_8.k4y_1 = tmp_9;
|
|
462
|
+
var tmp_10 = this.h4y_1;
|
|
463
463
|
if (tmp_10 instanceof Unit) {
|
|
464
|
-
get_LOGGER().
|
|
465
|
-
this.
|
|
464
|
+
get_LOGGER().q2u('Sending empty body for ' + this.g4y_1.s3r_1.toString());
|
|
465
|
+
this.g4y_1.u3r_1.t2q(HttpHeaders_getInstance().w2x_1);
|
|
466
466
|
return EmptyContent_getInstance();
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
var tmp_11 = this;
|
|
470
|
-
var
|
|
470
|
+
var tmp0_2 = this.d4y_1;
|
|
471
471
|
var destination_0 = ArrayList_init_$Create$();
|
|
472
|
-
var _iterator__ex2g4s_4 =
|
|
472
|
+
var _iterator__ex2g4s_4 = tmp0_2.q();
|
|
473
473
|
while (_iterator__ex2g4s_4.r()) {
|
|
474
474
|
var element_4 = _iterator__ex2g4s_4.s();
|
|
475
|
-
if (element_4.
|
|
475
|
+
if (element_4.o4x_1.q4x(this.k4y_1)) {
|
|
476
476
|
destination_0.k(element_4);
|
|
477
477
|
}
|
|
478
478
|
}
|
|
@@ -487,44 +487,44 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
487
487
|
var tmp1_elvis_lhs = tmp_12;
|
|
488
488
|
var tmp_13;
|
|
489
489
|
if (tmp1_elvis_lhs == null) {
|
|
490
|
-
this.
|
|
491
|
-
get_LOGGER().
|
|
490
|
+
this.e4y_1;
|
|
491
|
+
get_LOGGER().q2u('None of the registered converters match request Content-Type=' + this.k4y_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.g4y_1.s3r_1.toString() + '.'));
|
|
492
492
|
return null;
|
|
493
493
|
} else {
|
|
494
494
|
tmp_13 = tmp1_elvis_lhs;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
tmp_11.
|
|
498
|
-
if (this.
|
|
499
|
-
get_LOGGER().
|
|
497
|
+
tmp_11.l4y_1 = tmp_13;
|
|
498
|
+
if (this.g4y_1.a4k() == null) {
|
|
499
|
+
get_LOGGER().q2u('Request has unknown body type. Skipping ContentNegotiation for ' + this.g4y_1.s3r_1.toString() + '.');
|
|
500
500
|
return null;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
-
this.
|
|
503
|
+
this.g4y_1.u3r_1.t2q(HttpHeaders_getInstance().w2x_1);
|
|
504
504
|
var tmp_14 = this;
|
|
505
|
-
tmp_14.
|
|
506
|
-
this.
|
|
505
|
+
tmp_14.m4y_1 = this.l4y_1;
|
|
506
|
+
this.l9_1 = 1;
|
|
507
507
|
continue $sm;
|
|
508
508
|
case 1:
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
509
|
+
this.o4y_1 = this.m4y_1;
|
|
510
|
+
this.p4y_1 = this.o4y_1.q();
|
|
511
|
+
this.l9_1 = 2;
|
|
512
512
|
continue $sm;
|
|
513
513
|
case 2:
|
|
514
|
-
if (!this.
|
|
515
|
-
this.
|
|
514
|
+
if (!this.p4y_1.r()) {
|
|
515
|
+
this.l9_1 = 5;
|
|
516
516
|
continue $sm;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
this.
|
|
519
|
+
this.q4y_1 = this.p4y_1.s();
|
|
520
520
|
var tmp_15 = this;
|
|
521
|
-
tmp_15.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
525
|
-
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
526
|
-
var tmp_17 = ensureNotNull(this.
|
|
527
|
-
var this_0 = this.
|
|
521
|
+
tmp_15.r4y_1 = this.q4y_1;
|
|
522
|
+
this.s4y_1 = this.r4y_1;
|
|
523
|
+
this.l9_1 = 3;
|
|
524
|
+
var tmp0_elvis_lhs_1 = charset(this.k4y_1);
|
|
525
|
+
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().j21_1 : tmp0_elvis_lhs_1;
|
|
526
|
+
var tmp_17 = ensureNotNull(this.g4y_1.a4k());
|
|
527
|
+
var this_0 = this.h4y_1;
|
|
528
528
|
var tmp_18;
|
|
529
529
|
if (!equals(this_0, NullBody_instance)) {
|
|
530
530
|
tmp_18 = this_0;
|
|
@@ -532,7 +532,7 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
532
532
|
tmp_18 = null;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
suspendResult = this.
|
|
535
|
+
suspendResult = this.s4y_1.m4x_1.s50(this.k4y_1, tmp_16, tmp_17, tmp_18, this);
|
|
536
536
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
537
537
|
return suspendResult;
|
|
538
538
|
}
|
|
@@ -541,37 +541,37 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
541
541
|
case 3:
|
|
542
542
|
var result = suspendResult;
|
|
543
543
|
if (!(result == null)) {
|
|
544
|
-
get_LOGGER().
|
|
544
|
+
get_LOGGER().q2u('Converted request body using ' + toString(this.s4y_1.m4x_1) + ' for ' + this.g4y_1.s3r_1.toString());
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
var result_0 = result;
|
|
548
548
|
if (!(result_0 == null)) {
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
549
|
+
this.n4y_1 = result_0;
|
|
550
|
+
this.l9_1 = 6;
|
|
551
551
|
continue $sm;
|
|
552
552
|
} else {
|
|
553
|
-
this.
|
|
553
|
+
this.l9_1 = 4;
|
|
554
554
|
continue $sm;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
case 4:
|
|
558
|
-
this.
|
|
558
|
+
this.l9_1 = 2;
|
|
559
559
|
continue $sm;
|
|
560
560
|
case 5:
|
|
561
|
-
this.
|
|
561
|
+
this.n4y_1 = null;
|
|
562
562
|
if (false) {
|
|
563
|
-
this.
|
|
563
|
+
this.l9_1 = 1;
|
|
564
564
|
continue $sm;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
this.
|
|
567
|
+
this.l9_1 = 6;
|
|
568
568
|
continue $sm;
|
|
569
569
|
case 6:
|
|
570
|
-
var tmp2_elvis_lhs = this.
|
|
570
|
+
var tmp2_elvis_lhs = this.n4y_1;
|
|
571
571
|
var tmp_19;
|
|
572
572
|
if (tmp2_elvis_lhs == null) {
|
|
573
|
-
var tmp_20 = "Can't convert " + toString(this.
|
|
574
|
-
throw new ContentConverterException(tmp_20 + joinToString(this.
|
|
573
|
+
var tmp_20 = "Can't convert " + toString(this.h4y_1) + ' with contentType ' + this.k4y_1.toString() + ' using converters ';
|
|
574
|
+
throw new ContentConverterException(tmp_20 + joinToString(this.l4y_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
575
575
|
} else {
|
|
576
576
|
tmp_19 = tmp2_elvis_lhs;
|
|
577
577
|
}
|
|
@@ -579,56 +579,56 @@ protoOf($invoke$convertRequestCOROUTINE$0).s9 = function () {
|
|
|
579
579
|
var serializedContent = tmp_19;
|
|
580
580
|
return serializedContent;
|
|
581
581
|
case 7:
|
|
582
|
-
throw this.
|
|
582
|
+
throw this.o9_1;
|
|
583
583
|
}
|
|
584
584
|
} catch ($p) {
|
|
585
585
|
var e = $p;
|
|
586
|
-
if (this.
|
|
586
|
+
if (this.m9_1 === 7) {
|
|
587
587
|
throw e;
|
|
588
588
|
} else {
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
589
|
+
this.l9_1 = this.m9_1;
|
|
590
|
+
this.o9_1 = e;
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
while (true);
|
|
594
594
|
};
|
|
595
|
-
function $invoke$convertResponseCOROUTINE$
|
|
595
|
+
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
596
596
|
CoroutineImpl.call(this, resultContinuation);
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
597
|
+
this.b4z_1 = ignoredTypes;
|
|
598
|
+
this.c4z_1 = registrations;
|
|
599
|
+
this.d4z_1 = $this_createClientPlugin;
|
|
600
|
+
this.e4z_1 = requestUrl;
|
|
601
|
+
this.f4z_1 = info;
|
|
602
|
+
this.g4z_1 = body;
|
|
603
|
+
this.h4z_1 = responseContentType;
|
|
604
|
+
this.i4z_1 = charset;
|
|
605
605
|
}
|
|
606
|
-
protoOf($invoke$convertResponseCOROUTINE$
|
|
607
|
-
var suspendResult = this.
|
|
606
|
+
protoOf($invoke$convertResponseCOROUTINE$).t9 = function () {
|
|
607
|
+
var suspendResult = this.n9_1;
|
|
608
608
|
$sm: do
|
|
609
609
|
try {
|
|
610
|
-
var tmp = this.
|
|
610
|
+
var tmp = this.l9_1;
|
|
611
611
|
switch (tmp) {
|
|
612
612
|
case 0:
|
|
613
|
-
this.
|
|
614
|
-
var tmp_0 = this.
|
|
613
|
+
this.m9_1 = 2;
|
|
614
|
+
var tmp_0 = this.g4z_1;
|
|
615
615
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
616
|
-
get_LOGGER().
|
|
616
|
+
get_LOGGER().q2u('Response body is already transformed. Skipping ContentNegotiation for ' + this.e4z_1.toString() + '.');
|
|
617
617
|
return null;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
|
-
if (this.
|
|
621
|
-
get_LOGGER().
|
|
620
|
+
if (this.b4z_1.x(this.f4z_1.j2u_1)) {
|
|
621
|
+
get_LOGGER().q2u('Response body type ' + toString(this.f4z_1.j2u_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.e4z_1.toString() + '.'));
|
|
622
622
|
return null;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
var tmp_1 = this;
|
|
626
|
-
var tmp0 = this.
|
|
626
|
+
var tmp0 = this.c4z_1;
|
|
627
627
|
var destination = ArrayList_init_$Create$();
|
|
628
628
|
var _iterator__ex2g4s = tmp0.q();
|
|
629
629
|
while (_iterator__ex2g4s.r()) {
|
|
630
630
|
var element = _iterator__ex2g4s.s();
|
|
631
|
-
if (element.
|
|
631
|
+
if (element.o4x_1.q4x(this.h4z_1)) {
|
|
632
632
|
destination.k(element);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
@@ -637,7 +637,7 @@ protoOf($invoke$convertResponseCOROUTINE$1).s9 = function () {
|
|
|
637
637
|
var _iterator__ex2g4s_0 = destination.q();
|
|
638
638
|
while (_iterator__ex2g4s_0.r()) {
|
|
639
639
|
var item = _iterator__ex2g4s_0.s();
|
|
640
|
-
destination_0.k(item.
|
|
640
|
+
destination_0.k(item.m4x_1);
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
var tmp_2;
|
|
@@ -650,16 +650,16 @@ protoOf($invoke$convertResponseCOROUTINE$1).s9 = function () {
|
|
|
650
650
|
var tmp0_elvis_lhs = tmp_2;
|
|
651
651
|
var tmp_3;
|
|
652
652
|
if (tmp0_elvis_lhs == null) {
|
|
653
|
-
this.
|
|
654
|
-
get_LOGGER().
|
|
653
|
+
this.d4z_1;
|
|
654
|
+
get_LOGGER().q2u('None of the registered converters match response with Content-Type=' + this.h4z_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.e4z_1.toString() + '.'));
|
|
655
655
|
return null;
|
|
656
656
|
} else {
|
|
657
657
|
tmp_3 = tmp0_elvis_lhs;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
tmp_1.
|
|
661
|
-
this.
|
|
662
|
-
suspendResult = deserialize(this.
|
|
660
|
+
tmp_1.j4z_1 = tmp_3;
|
|
661
|
+
this.l9_1 = 1;
|
|
662
|
+
suspendResult = deserialize(this.j4z_1, this.g4z_1, this.f4z_1, this.i4z_1, this);
|
|
663
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
664
|
return suspendResult;
|
|
665
665
|
}
|
|
@@ -668,20 +668,20 @@ protoOf($invoke$convertResponseCOROUTINE$1).s9 = function () {
|
|
|
668
668
|
case 1:
|
|
669
669
|
var result = suspendResult;
|
|
670
670
|
if (!isInterface(result, ByteReadChannel)) {
|
|
671
|
-
get_LOGGER().
|
|
671
|
+
get_LOGGER().q2u('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.e4z_1.toString() + '.');
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
return result;
|
|
675
675
|
case 2:
|
|
676
|
-
throw this.
|
|
676
|
+
throw this.o9_1;
|
|
677
677
|
}
|
|
678
678
|
} catch ($p) {
|
|
679
679
|
var e = $p;
|
|
680
|
-
if (this.
|
|
680
|
+
if (this.m9_1 === 2) {
|
|
681
681
|
throw e;
|
|
682
682
|
} else {
|
|
683
|
-
this.
|
|
684
|
-
this.
|
|
683
|
+
this.l9_1 = this.m9_1;
|
|
684
|
+
this.o9_1 = e;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
687
|
while (true);
|
|
@@ -691,7 +691,7 @@ function _init_properties_ContentNegotiation_kt__o183go() {
|
|
|
691
691
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
692
692
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
693
693
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
694
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
694
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().dd(), PrimitiveClasses_getInstance().zc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
695
695
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
696
696
|
var name = 'ExcludedContentTypesAttr';
|
|
697
697
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -719,12 +719,12 @@ function _init_properties_ContentNegotiation_kt__o183go() {
|
|
|
719
719
|
}
|
|
720
720
|
function JsonContentTypeMatcher() {
|
|
721
721
|
}
|
|
722
|
-
protoOf(JsonContentTypeMatcher).
|
|
723
|
-
if (contentType.
|
|
722
|
+
protoOf(JsonContentTypeMatcher).q4x = function (contentType) {
|
|
723
|
+
if (contentType.y2w(Application_getInstance().e2v_1)) {
|
|
724
724
|
return true;
|
|
725
725
|
}
|
|
726
|
-
var value = contentType.
|
|
727
|
-
return Application_getInstance().
|
|
726
|
+
var value = contentType.x2w().toString();
|
|
727
|
+
return Application_getInstance().y2v(value) && endsWith(value, '+json', true);
|
|
728
728
|
};
|
|
729
729
|
var JsonContentTypeMatcher_instance;
|
|
730
730
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -744,7 +744,7 @@ function _init_properties_DefaultIgnoredTypesJs_kt__rjtdk1() {
|
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
//region block: post-declaration
|
|
747
|
-
protoOf(ContentNegotiationConfig).
|
|
747
|
+
protoOf(ContentNegotiationConfig).h3n = register$default;
|
|
748
748
|
//endregion
|
|
749
749
|
//region block: init
|
|
750
750
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|