@solibo/home-api 1.0.29 → 1.0.30
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-DateTime-library-kotlinx-datetime.js +2112 -563
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +5406 -2806
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2057 -2057
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +69 -69
- package/kotlinx-io-kotlinx-io-core.js +534 -534
- package/kotlinx-serialization-kotlinx-serialization-core.js +4592 -609
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +5065 -5
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +304 -253
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +3179 -3179
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +13 -13
- package/ktor-ktor-http-cio.js +612 -612
- package/ktor-ktor-http-cio.js.map +1 -1
- package/ktor-ktor-http.js +1020 -953
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1159 -1153
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +57 -5
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +855 -5
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +159 -126
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +824 -672
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +826 -826
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.ts +7748 -8553
- package/solibo-sdk-sdk-home-api.js +173899 -109918
- package/solibo-sdk-sdk-home-api.js.map +1 -1
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-http.js', './ktor-ktor-serialization.js', './ktor-ktor-io.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./ktor-ktor-serialization.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
9
9
|
}
|
|
10
|
+
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
12
|
+
}
|
|
13
|
+
if (typeof globalThis['ktor-ktor-serialization'] === 'undefined') {
|
|
14
|
+
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-serialization' was not found. Please, check whether 'ktor-ktor-serialization' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
15
|
+
}
|
|
10
16
|
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
11
17
|
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
12
18
|
}
|
|
@@ -16,84 +22,86 @@
|
|
|
16
22
|
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
17
23
|
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
18
24
|
}
|
|
19
|
-
|
|
20
|
-
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
21
|
-
}
|
|
22
|
-
if (typeof globalThis['ktor-ktor-serialization'] === 'undefined') {
|
|
23
|
-
throw new Error("Error loading module 'ktor-ktor-client-content-negotiation'. Its dependency 'ktor-ktor-serialization' was not found. Please, check whether 'ktor-ktor-serialization' is loaded prior to 'ktor-ktor-client-content-negotiation'.");
|
|
24
|
-
}
|
|
25
|
-
globalThis['ktor-ktor-client-content-negotiation'] = factory(typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined' ? {} : globalThis['ktor-ktor-client-content-negotiation'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-io'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-serialization']);
|
|
25
|
+
globalThis['ktor-ktor-client-content-negotiation'] = factory(typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined' ? {} : globalThis['ktor-ktor-client-content-negotiation'], globalThis['kotlin-kotlin-stdlib'], globalThis['ktor-ktor-http'], globalThis['ktor-ktor-serialization'], globalThis['ktor-ktor-io'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils']);
|
|
26
26
|
}
|
|
27
|
-
}(function (_, kotlin_kotlin,
|
|
27
|
+
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.tb;
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.wa;
|
|
32
|
+
var plus = kotlin_kotlin.$_$.j7;
|
|
33
|
+
var toMutableSet = kotlin_kotlin.$_$.g8;
|
|
34
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
35
|
+
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
36
|
+
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
37
|
+
var Unit_instance = kotlin_kotlin.$_$.y4;
|
|
38
|
+
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
39
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
40
|
+
var Exception = kotlin_kotlin.$_$.lf;
|
|
41
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
42
|
+
var captureStack = kotlin_kotlin.$_$.ea;
|
|
43
|
+
var toString = kotlin_kotlin.$_$.wb;
|
|
41
44
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.m;
|
|
42
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
43
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
45
|
+
var CoroutineImpl = kotlin_kotlin.$_$.f9;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
44
47
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.b;
|
|
45
48
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
46
49
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
47
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
48
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
50
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o8;
|
|
51
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.bb;
|
|
49
52
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
50
53
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
51
|
-
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
52
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
53
|
-
var contentType = kotlin_io_ktor_ktor_http.$_$.
|
|
54
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.n1;
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.lb;
|
|
56
|
+
var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
54
57
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
55
|
-
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.
|
|
56
|
-
var Collection = kotlin_kotlin.$_$.
|
|
57
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
58
|
+
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.e;
|
|
59
|
+
var Collection = kotlin_kotlin.$_$.a5;
|
|
60
|
+
var emptyList = kotlin_kotlin.$_$.k6;
|
|
58
61
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
59
62
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
60
|
-
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.
|
|
61
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
62
|
-
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.
|
|
63
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.u;
|
|
64
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.kc;
|
|
65
|
+
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
63
66
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
64
|
-
var Unit = kotlin_kotlin.$_$.
|
|
65
|
-
var charset = kotlin_io_ktor_ktor_http.$_$.
|
|
66
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
67
|
+
var Unit = kotlin_kotlin.$_$.dg;
|
|
68
|
+
var charset = kotlin_io_ktor_ktor_http.$_$.k1;
|
|
69
|
+
var ensureNotNull = kotlin_kotlin.$_$.kg;
|
|
67
70
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
70
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
71
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
72
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
71
|
+
var equals = kotlin_kotlin.$_$.na;
|
|
72
|
+
var joinToString = kotlin_kotlin.$_$.y6;
|
|
73
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ya;
|
|
74
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.r5;
|
|
75
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
73
76
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
74
77
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
75
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
76
|
-
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.
|
|
77
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
78
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
|
|
79
|
+
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.d1;
|
|
80
|
+
var getKClass = kotlin_kotlin.$_$.lc;
|
|
78
81
|
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
79
82
|
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
80
|
-
var setOf = kotlin_kotlin.$_$.
|
|
81
|
-
var KtList = kotlin_kotlin.$_$.
|
|
82
|
-
var ContentType = kotlin_io_ktor_ktor_http.$_$.
|
|
83
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
84
|
-
var createKType = kotlin_kotlin.$_$.
|
|
85
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
83
|
+
var setOf = kotlin_kotlin.$_$.s7;
|
|
84
|
+
var KtList = kotlin_kotlin.$_$.f5;
|
|
85
|
+
var ContentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
86
|
+
var arrayOf = kotlin_kotlin.$_$.gg;
|
|
87
|
+
var createKType = kotlin_kotlin.$_$.jc;
|
|
88
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.hc;
|
|
86
89
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
87
90
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
88
|
-
var
|
|
91
|
+
var endsWith = kotlin_kotlin.$_$.cd;
|
|
92
|
+
var initMetadataForObject = kotlin_kotlin.$_$.cb;
|
|
93
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
89
94
|
//endregion
|
|
90
95
|
//region block: pre-declaration
|
|
91
|
-
initMetadataForClass(
|
|
96
|
+
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
97
|
+
initMetadataForClass(ContentNegotiationConfig$defaultMatcher$1);
|
|
98
|
+
initMetadataForClass(ContentNegotiationConfig, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration]);
|
|
92
99
|
initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
|
|
93
100
|
initMetadataForLambda(ContentNegotiation$lambda$slambda, CoroutineImpl, VOID, [4]);
|
|
94
101
|
initMetadataForLambda(ContentNegotiation$lambda$slambda_1, CoroutineImpl, VOID, [4]);
|
|
95
102
|
initMetadataForCoroutine($invoke$convertRequestCOROUTINE$, CoroutineImpl);
|
|
96
103
|
initMetadataForCoroutine($invoke$convertResponseCOROUTINE$, CoroutineImpl);
|
|
104
|
+
initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
|
|
97
105
|
//endregion
|
|
98
106
|
function get_LOGGER() {
|
|
99
107
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
@@ -115,13 +123,37 @@
|
|
|
115
123
|
return ContentNegotiation;
|
|
116
124
|
}
|
|
117
125
|
var ContentNegotiation;
|
|
126
|
+
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
127
|
+
this.p4j_1 = converter;
|
|
128
|
+
this.q4j_1 = contentTypeToSend;
|
|
129
|
+
this.r4j_1 = contentTypeMatcher;
|
|
130
|
+
}
|
|
131
|
+
function defaultMatcher($this, pattern) {
|
|
132
|
+
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
133
|
+
}
|
|
134
|
+
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
135
|
+
this.s4j_1 = $pattern;
|
|
136
|
+
}
|
|
137
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).t4j = function (contentType) {
|
|
138
|
+
return contentType.v2j(this.s4j_1);
|
|
139
|
+
};
|
|
118
140
|
function ContentNegotiationConfig() {
|
|
119
|
-
this.
|
|
141
|
+
this.u4j_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
120
142
|
var tmp = this;
|
|
121
143
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
122
|
-
tmp.
|
|
123
|
-
this.
|
|
144
|
+
tmp.v4j_1 = ArrayList_init_$Create$();
|
|
145
|
+
this.w4j_1 = null;
|
|
124
146
|
}
|
|
147
|
+
protoOf(ContentNegotiationConfig).l39 = function (contentType, converter, configuration) {
|
|
148
|
+
var matcher = contentType.v2j(Application_getInstance().b2i_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
149
|
+
this.x4j(contentType, converter, matcher, configuration);
|
|
150
|
+
};
|
|
151
|
+
protoOf(ContentNegotiationConfig).x4j = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
152
|
+
// Inline function 'kotlin.apply' call
|
|
153
|
+
configuration(converter);
|
|
154
|
+
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
155
|
+
this.v4j_1.e1(registration);
|
|
156
|
+
};
|
|
125
157
|
function ContentConverterException(message) {
|
|
126
158
|
Exception_init_$Init$(message, this);
|
|
127
159
|
captureStack(this, ContentConverterException);
|
|
@@ -135,57 +167,57 @@
|
|
|
135
167
|
}
|
|
136
168
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
137
169
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
138
|
-
var registrations = $this$createClientPlugin.
|
|
139
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
140
|
-
$this$createClientPlugin.
|
|
141
|
-
$this$createClientPlugin.
|
|
170
|
+
var registrations = $this$createClientPlugin.p3l_1.v4j_1;
|
|
171
|
+
var ignoredTypes = $this$createClientPlugin.p3l_1.u4j_1;
|
|
172
|
+
$this$createClientPlugin.o43(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
173
|
+
$this$createClientPlugin.b3u(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
142
174
|
return Unit_instance;
|
|
143
175
|
}
|
|
144
176
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
145
177
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
146
|
-
return toString(it.
|
|
178
|
+
return toString(it.p4j_1);
|
|
147
179
|
}
|
|
148
180
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
149
181
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
150
|
-
tmp.
|
|
151
|
-
tmp.
|
|
152
|
-
return tmp.
|
|
182
|
+
tmp.i8_1 = Unit_instance;
|
|
183
|
+
tmp.j8_1 = null;
|
|
184
|
+
return tmp.o8();
|
|
153
185
|
}
|
|
154
186
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
155
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
187
|
+
charset = charset === VOID ? Charsets_getInstance().o1p_1 : charset;
|
|
156
188
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
157
|
-
tmp.
|
|
158
|
-
tmp.
|
|
159
|
-
return tmp.
|
|
189
|
+
tmp.i8_1 = Unit_instance;
|
|
190
|
+
tmp.j8_1 = null;
|
|
191
|
+
return tmp.o8();
|
|
160
192
|
}
|
|
161
193
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
194
|
+
this.p4l_1 = $registrations;
|
|
195
|
+
this.q4l_1 = $this_createClientPlugin;
|
|
196
|
+
this.r4l_1 = $ignoredTypes;
|
|
165
197
|
CoroutineImpl.call(this, resultContinuation);
|
|
166
198
|
}
|
|
167
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
168
|
-
var tmp = this.
|
|
169
|
-
tmp.
|
|
170
|
-
tmp.
|
|
171
|
-
return tmp.
|
|
199
|
+
protoOf(ContentNegotiation$lambda$slambda).w4l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
200
|
+
var tmp = this.x4l($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
201
|
+
tmp.i8_1 = Unit_instance;
|
|
202
|
+
tmp.j8_1 = null;
|
|
203
|
+
return tmp.o8();
|
|
172
204
|
};
|
|
173
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
205
|
+
protoOf(ContentNegotiation$lambda$slambda).g3v = function (p1, p2, p3, p4, $completion) {
|
|
174
206
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
175
207
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
176
208
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
177
|
-
return this.
|
|
209
|
+
return this.w4l(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
178
210
|
};
|
|
179
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
180
|
-
var suspendResult = this.
|
|
211
|
+
protoOf(ContentNegotiation$lambda$slambda).o8 = function () {
|
|
212
|
+
var suspendResult = this.i8_1;
|
|
181
213
|
$sm: do
|
|
182
214
|
try {
|
|
183
|
-
var tmp = this.
|
|
215
|
+
var tmp = this.g8_1;
|
|
184
216
|
switch (tmp) {
|
|
185
217
|
case 0:
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
suspendResult = invoke$convertRequest(this.
|
|
218
|
+
this.h8_1 = 2;
|
|
219
|
+
this.g8_1 = 1;
|
|
220
|
+
suspendResult = invoke$convertRequest(this.p4l_1, this.q4l_1, this.r4l_1, this.t4l_1, this.u4l_1, this);
|
|
189
221
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
190
222
|
return suspendResult;
|
|
191
223
|
}
|
|
@@ -194,62 +226,62 @@
|
|
|
194
226
|
case 1:
|
|
195
227
|
return suspendResult;
|
|
196
228
|
case 2:
|
|
197
|
-
throw this.
|
|
229
|
+
throw this.j8_1;
|
|
198
230
|
}
|
|
199
231
|
} catch ($p) {
|
|
200
232
|
var e = $p;
|
|
201
|
-
if (this.
|
|
233
|
+
if (this.h8_1 === 2) {
|
|
202
234
|
throw e;
|
|
203
235
|
} else {
|
|
204
|
-
this.
|
|
205
|
-
this.
|
|
236
|
+
this.g8_1 = this.h8_1;
|
|
237
|
+
this.j8_1 = e;
|
|
206
238
|
}
|
|
207
239
|
}
|
|
208
240
|
while (true);
|
|
209
241
|
};
|
|
210
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
211
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
212
|
-
i.
|
|
213
|
-
i.
|
|
214
|
-
i.
|
|
215
|
-
i.
|
|
242
|
+
protoOf(ContentNegotiation$lambda$slambda).x4l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
243
|
+
var i = new ContentNegotiation$lambda$slambda(this.p4l_1, this.q4l_1, this.r4l_1, completion);
|
|
244
|
+
i.s4l_1 = $this$transformRequestBody;
|
|
245
|
+
i.t4l_1 = request;
|
|
246
|
+
i.u4l_1 = body;
|
|
247
|
+
i.v4l_1 = _unused_var__etf5q3;
|
|
216
248
|
return i;
|
|
217
249
|
};
|
|
218
250
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
219
251
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
220
252
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
221
|
-
return i.
|
|
253
|
+
return i.w4l($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
222
254
|
};
|
|
223
255
|
l.$arity = 4;
|
|
224
256
|
return l;
|
|
225
257
|
}
|
|
226
258
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
227
|
-
this.
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
259
|
+
this.g4m_1 = $ignoredTypes;
|
|
260
|
+
this.h4m_1 = $registrations;
|
|
261
|
+
this.i4m_1 = $this_createClientPlugin;
|
|
230
262
|
CoroutineImpl.call(this, resultContinuation);
|
|
231
263
|
}
|
|
232
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
233
|
-
var tmp = this.
|
|
234
|
-
tmp.
|
|
235
|
-
tmp.
|
|
236
|
-
return tmp.
|
|
264
|
+
protoOf(ContentNegotiation$lambda$slambda_1).e3v = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
265
|
+
var tmp = this.f3v($this$transformResponseBody, response, body, info, $completion);
|
|
266
|
+
tmp.i8_1 = Unit_instance;
|
|
267
|
+
tmp.j8_1 = null;
|
|
268
|
+
return tmp.o8();
|
|
237
269
|
};
|
|
238
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
270
|
+
protoOf(ContentNegotiation$lambda$slambda_1).g3v = function (p1, p2, p3, p4, $completion) {
|
|
239
271
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
240
272
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
241
273
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
242
|
-
return this.
|
|
274
|
+
return this.e3v(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
243
275
|
};
|
|
244
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
245
|
-
var suspendResult = this.
|
|
276
|
+
protoOf(ContentNegotiation$lambda$slambda_1).o8 = function () {
|
|
277
|
+
var suspendResult = this.i8_1;
|
|
246
278
|
$sm: do
|
|
247
279
|
try {
|
|
248
|
-
var tmp = this.
|
|
280
|
+
var tmp = this.g8_1;
|
|
249
281
|
switch (tmp) {
|
|
250
282
|
case 0:
|
|
251
|
-
this.
|
|
252
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
283
|
+
this.h8_1 = 2;
|
|
284
|
+
var tmp0_elvis_lhs = contentType(this.k4m_1);
|
|
253
285
|
var tmp_0;
|
|
254
286
|
if (tmp0_elvis_lhs == null) {
|
|
255
287
|
return null;
|
|
@@ -258,9 +290,9 @@
|
|
|
258
290
|
}
|
|
259
291
|
|
|
260
292
|
var contentType_0 = tmp_0;
|
|
261
|
-
var charset = suitableCharset(get_request(this.
|
|
262
|
-
this.
|
|
263
|
-
suspendResult = invoke$convertResponse(this.
|
|
293
|
+
var charset = suitableCharset(get_request(this.k4m_1).f2o());
|
|
294
|
+
this.g8_1 = 1;
|
|
295
|
+
suspendResult = invoke$convertResponse(this.g4m_1, this.h4m_1, this.i4m_1, get_request(this.k4m_1).b3f(), this.m4m_1, this.l4m_1, contentType_0, charset, this);
|
|
264
296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
265
297
|
return suspendResult;
|
|
266
298
|
}
|
|
@@ -269,64 +301,64 @@
|
|
|
269
301
|
case 1:
|
|
270
302
|
return suspendResult;
|
|
271
303
|
case 2:
|
|
272
|
-
throw this.
|
|
304
|
+
throw this.j8_1;
|
|
273
305
|
}
|
|
274
306
|
} catch ($p) {
|
|
275
307
|
var e = $p;
|
|
276
|
-
if (this.
|
|
308
|
+
if (this.h8_1 === 2) {
|
|
277
309
|
throw e;
|
|
278
310
|
} else {
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
311
|
+
this.g8_1 = this.h8_1;
|
|
312
|
+
this.j8_1 = e;
|
|
281
313
|
}
|
|
282
314
|
}
|
|
283
315
|
while (true);
|
|
284
316
|
};
|
|
285
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
286
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
287
|
-
i.
|
|
288
|
-
i.
|
|
289
|
-
i.
|
|
290
|
-
i.
|
|
317
|
+
protoOf(ContentNegotiation$lambda$slambda_1).f3v = function ($this$transformResponseBody, response, body, info, completion) {
|
|
318
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.g4m_1, this.h4m_1, this.i4m_1, completion);
|
|
319
|
+
i.j4m_1 = $this$transformResponseBody;
|
|
320
|
+
i.k4m_1 = response;
|
|
321
|
+
i.l4m_1 = body;
|
|
322
|
+
i.m4m_1 = info;
|
|
291
323
|
return i;
|
|
292
324
|
};
|
|
293
325
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
294
326
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
295
327
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
296
|
-
return i.
|
|
328
|
+
return i.e3v($this$transformResponseBody, response, body, info, $completion);
|
|
297
329
|
};
|
|
298
330
|
l.$arity = 4;
|
|
299
331
|
return l;
|
|
300
332
|
}
|
|
301
333
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
302
334
|
CoroutineImpl.call(this, resultContinuation);
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
335
|
+
this.g4k_1 = registrations;
|
|
336
|
+
this.h4k_1 = $this_createClientPlugin;
|
|
337
|
+
this.i4k_1 = ignoredTypes;
|
|
338
|
+
this.j4k_1 = request;
|
|
339
|
+
this.k4k_1 = body;
|
|
308
340
|
}
|
|
309
|
-
protoOf($invoke$convertRequestCOROUTINE$).
|
|
310
|
-
var suspendResult = this.
|
|
341
|
+
protoOf($invoke$convertRequestCOROUTINE$).o8 = function () {
|
|
342
|
+
var suspendResult = this.i8_1;
|
|
311
343
|
$sm: do
|
|
312
344
|
try {
|
|
313
|
-
var tmp = this.
|
|
345
|
+
var tmp = this.g8_1;
|
|
314
346
|
switch (tmp) {
|
|
315
347
|
case 0:
|
|
316
|
-
this.
|
|
348
|
+
this.h8_1 = 7;
|
|
317
349
|
var tmp_0;
|
|
318
|
-
if (this.
|
|
319
|
-
var excluded = this.
|
|
320
|
-
var tmp0 = this.
|
|
350
|
+
if (this.j4k_1.p3d_1.m2b(get_ExcludedContentTypes())) {
|
|
351
|
+
var excluded = this.j4k_1.p3d_1.k2b(get_ExcludedContentTypes());
|
|
352
|
+
var tmp0 = this.g4k_1;
|
|
321
353
|
var destination = ArrayList_init_$Create$();
|
|
322
|
-
var _iterator__ex2g4s = tmp0.
|
|
323
|
-
while (_iterator__ex2g4s.
|
|
324
|
-
var element = _iterator__ex2g4s.
|
|
354
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
355
|
+
while (_iterator__ex2g4s.u()) {
|
|
356
|
+
var element = _iterator__ex2g4s.v();
|
|
325
357
|
var tmp$ret$0;
|
|
326
358
|
l$ret$1: do {
|
|
327
359
|
var tmp_1;
|
|
328
360
|
if (isInterface(excluded, Collection)) {
|
|
329
|
-
tmp_1 = excluded.
|
|
361
|
+
tmp_1 = excluded.r();
|
|
330
362
|
} else {
|
|
331
363
|
tmp_1 = false;
|
|
332
364
|
}
|
|
@@ -334,10 +366,10 @@
|
|
|
334
366
|
tmp$ret$0 = true;
|
|
335
367
|
break l$ret$1;
|
|
336
368
|
}
|
|
337
|
-
var _iterator__ex2g4s_0 = excluded.
|
|
338
|
-
while (_iterator__ex2g4s_0.
|
|
339
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
340
|
-
if (element.
|
|
369
|
+
var _iterator__ex2g4s_0 = excluded.t();
|
|
370
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
371
|
+
var element_0 = _iterator__ex2g4s_0.v();
|
|
372
|
+
if (element.q4j_1.v2j(element_0)) {
|
|
341
373
|
tmp$ret$0 = false;
|
|
342
374
|
break l$ret$1;
|
|
343
375
|
}
|
|
@@ -346,25 +378,25 @@
|
|
|
346
378
|
}
|
|
347
379
|
while (false);
|
|
348
380
|
if (tmp$ret$0) {
|
|
349
|
-
destination.
|
|
381
|
+
destination.e1(element);
|
|
350
382
|
}
|
|
351
383
|
}
|
|
352
384
|
tmp_0 = destination;
|
|
353
385
|
} else {
|
|
354
|
-
tmp_0 = this.
|
|
386
|
+
tmp_0 = this.g4k_1;
|
|
355
387
|
}
|
|
356
388
|
|
|
357
389
|
var requestRegistrations = tmp_0;
|
|
358
|
-
var tmp0_elvis_lhs = this.
|
|
390
|
+
var tmp0_elvis_lhs = this.j4k_1.m3d_1.d2d('Accept');
|
|
359
391
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
360
|
-
var _iterator__ex2g4s_1 = requestRegistrations.
|
|
361
|
-
while (_iterator__ex2g4s_1.
|
|
362
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
392
|
+
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
393
|
+
while (_iterator__ex2g4s_1.u()) {
|
|
394
|
+
var element_1 = _iterator__ex2g4s_1.v();
|
|
363
395
|
var tmp$ret$2;
|
|
364
396
|
l$ret$3: do {
|
|
365
397
|
var tmp_2;
|
|
366
398
|
if (isInterface(acceptHeaders, Collection)) {
|
|
367
|
-
tmp_2 = acceptHeaders.
|
|
399
|
+
tmp_2 = acceptHeaders.r();
|
|
368
400
|
} else {
|
|
369
401
|
tmp_2 = false;
|
|
370
402
|
}
|
|
@@ -372,10 +404,10 @@
|
|
|
372
404
|
tmp$ret$2 = true;
|
|
373
405
|
break l$ret$3;
|
|
374
406
|
}
|
|
375
|
-
var _iterator__ex2g4s_2 = acceptHeaders.
|
|
376
|
-
while (_iterator__ex2g4s_2.
|
|
377
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
378
|
-
if (Companion_getInstance().
|
|
407
|
+
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
408
|
+
while (_iterator__ex2g4s_2.u()) {
|
|
409
|
+
var element_2 = _iterator__ex2g4s_2.v();
|
|
410
|
+
if (Companion_getInstance().yk(element_2).v2j(element_1.q4j_1)) {
|
|
379
411
|
tmp$ret$2 = false;
|
|
380
412
|
break l$ret$3;
|
|
381
413
|
}
|
|
@@ -384,24 +416,24 @@
|
|
|
384
416
|
}
|
|
385
417
|
while (false);
|
|
386
418
|
if (tmp$ret$2) {
|
|
387
|
-
var qValue = this.
|
|
388
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
389
|
-
get_LOGGER().
|
|
390
|
-
accept(this.
|
|
419
|
+
var qValue = this.h4k_1.p3l_1.w4j_1;
|
|
420
|
+
var contentTypeToSend = qValue == null ? element_1.q4j_1 : element_1.q4j_1.t2j('q', qValue.toString());
|
|
421
|
+
get_LOGGER().j2h('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.j4k_1.k3d_1.toString());
|
|
422
|
+
accept(this.j4k_1, contentTypeToSend);
|
|
391
423
|
}
|
|
392
424
|
}
|
|
393
425
|
|
|
394
426
|
var tmp_3;
|
|
395
|
-
var tmp_4 = this.
|
|
427
|
+
var tmp_4 = this.k4k_1;
|
|
396
428
|
if (tmp_4 instanceof OutgoingContent) {
|
|
397
429
|
tmp_3 = true;
|
|
398
430
|
} else {
|
|
399
|
-
var tmp0_0 = this.
|
|
431
|
+
var tmp0_0 = this.i4k_1;
|
|
400
432
|
var tmp$ret$4;
|
|
401
433
|
l$ret$5: do {
|
|
402
434
|
var tmp_5;
|
|
403
435
|
if (isInterface(tmp0_0, Collection)) {
|
|
404
|
-
tmp_5 = tmp0_0.
|
|
436
|
+
tmp_5 = tmp0_0.r();
|
|
405
437
|
} else {
|
|
406
438
|
tmp_5 = false;
|
|
407
439
|
}
|
|
@@ -409,10 +441,10 @@
|
|
|
409
441
|
tmp$ret$4 = false;
|
|
410
442
|
break l$ret$5;
|
|
411
443
|
}
|
|
412
|
-
var _iterator__ex2g4s_3 = tmp0_0.
|
|
413
|
-
while (_iterator__ex2g4s_3.
|
|
414
|
-
var element_3 = _iterator__ex2g4s_3.
|
|
415
|
-
if (element_3.
|
|
444
|
+
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
445
|
+
while (_iterator__ex2g4s_3.u()) {
|
|
446
|
+
var element_3 = _iterator__ex2g4s_3.v();
|
|
447
|
+
if (element_3.ka(this.k4k_1)) {
|
|
416
448
|
tmp$ret$4 = true;
|
|
417
449
|
break l$ret$5;
|
|
418
450
|
}
|
|
@@ -424,42 +456,42 @@
|
|
|
424
456
|
}
|
|
425
457
|
|
|
426
458
|
if (tmp_3) {
|
|
427
|
-
get_LOGGER().
|
|
459
|
+
get_LOGGER().j2h('Body type ' + toString(getKClassFromExpression(this.k4k_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.j4k_1.k3d_1.toString() + '.'));
|
|
428
460
|
return null;
|
|
429
461
|
}
|
|
430
462
|
|
|
431
463
|
var tmp_6 = this;
|
|
432
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
464
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.j4k_1);
|
|
433
465
|
var tmp_7;
|
|
434
466
|
if (tmp0_elvis_lhs_0 == null) {
|
|
435
|
-
this.
|
|
436
|
-
get_LOGGER().
|
|
467
|
+
this.h4k_1;
|
|
468
|
+
get_LOGGER().j2h("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.j4k_1.k3d_1.toString() + '.');
|
|
437
469
|
return null;
|
|
438
470
|
} else {
|
|
439
471
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
440
472
|
}
|
|
441
473
|
|
|
442
|
-
tmp_6.
|
|
443
|
-
var tmp_8 = this.
|
|
474
|
+
tmp_6.m4k_1 = tmp_7;
|
|
475
|
+
var tmp_8 = this.k4k_1;
|
|
444
476
|
if (tmp_8 instanceof Unit) {
|
|
445
|
-
get_LOGGER().
|
|
446
|
-
this.
|
|
477
|
+
get_LOGGER().j2h('Sending empty body for ' + this.j4k_1.k3d_1.toString());
|
|
478
|
+
this.j4k_1.m3d_1.n2d('Content-Type');
|
|
447
479
|
return EmptyContent_getInstance();
|
|
448
480
|
}
|
|
449
481
|
|
|
450
482
|
var tmp_9 = this;
|
|
451
|
-
var tmp0_1 = this.
|
|
483
|
+
var tmp0_1 = this.g4k_1;
|
|
452
484
|
var destination_0 = ArrayList_init_$Create$();
|
|
453
|
-
var _iterator__ex2g4s_4 = tmp0_1.
|
|
454
|
-
while (_iterator__ex2g4s_4.
|
|
455
|
-
var element_4 = _iterator__ex2g4s_4.
|
|
456
|
-
if (element_4.
|
|
457
|
-
destination_0.
|
|
485
|
+
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
486
|
+
while (_iterator__ex2g4s_4.u()) {
|
|
487
|
+
var element_4 = _iterator__ex2g4s_4.v();
|
|
488
|
+
if (element_4.r4j_1.t4j(this.m4k_1)) {
|
|
489
|
+
destination_0.e1(element_4);
|
|
458
490
|
}
|
|
459
491
|
}
|
|
460
492
|
|
|
461
493
|
var tmp_10;
|
|
462
|
-
if (!destination_0.
|
|
494
|
+
if (!destination_0.r()) {
|
|
463
495
|
tmp_10 = destination_0;
|
|
464
496
|
} else {
|
|
465
497
|
tmp_10 = null;
|
|
@@ -468,40 +500,40 @@
|
|
|
468
500
|
var tmp1_elvis_lhs = tmp_10;
|
|
469
501
|
var tmp_11;
|
|
470
502
|
if (tmp1_elvis_lhs == null) {
|
|
471
|
-
this.
|
|
472
|
-
get_LOGGER().
|
|
503
|
+
this.h4k_1;
|
|
504
|
+
get_LOGGER().j2h('None of the registered converters match request Content-Type=' + this.m4k_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.j4k_1.k3d_1.toString() + '.'));
|
|
473
505
|
return null;
|
|
474
506
|
} else {
|
|
475
507
|
tmp_11 = tmp1_elvis_lhs;
|
|
476
508
|
}
|
|
477
509
|
|
|
478
|
-
tmp_9.
|
|
479
|
-
if (this.
|
|
480
|
-
get_LOGGER().
|
|
510
|
+
tmp_9.l4k_1 = tmp_11;
|
|
511
|
+
if (this.j4k_1.w45() == null) {
|
|
512
|
+
get_LOGGER().j2h('Request has unknown body type. Skipping ContentNegotiation for ' + this.j4k_1.k3d_1.toString() + '.');
|
|
481
513
|
return null;
|
|
482
514
|
}
|
|
483
515
|
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
486
|
-
this.
|
|
516
|
+
this.j4k_1.m3d_1.n2d('Content-Type');
|
|
517
|
+
this.q4k_1 = this.l4k_1;
|
|
518
|
+
this.g8_1 = 1;
|
|
487
519
|
continue $sm;
|
|
488
520
|
case 1:
|
|
489
|
-
this.
|
|
490
|
-
this.
|
|
521
|
+
this.p4k_1 = this.q4k_1.t();
|
|
522
|
+
this.g8_1 = 2;
|
|
491
523
|
continue $sm;
|
|
492
524
|
case 2:
|
|
493
|
-
if (!this.
|
|
494
|
-
this.
|
|
525
|
+
if (!this.p4k_1.u()) {
|
|
526
|
+
this.g8_1 = 5;
|
|
495
527
|
continue $sm;
|
|
496
528
|
}
|
|
497
529
|
|
|
498
|
-
var element_5 = this.
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
501
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
502
|
-
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
503
|
-
var tmp_13 = ensureNotNull(this.
|
|
504
|
-
var this_0 = this.
|
|
530
|
+
var element_5 = this.p4k_1.v();
|
|
531
|
+
this.o4k_1 = element_5;
|
|
532
|
+
this.g8_1 = 3;
|
|
533
|
+
var tmp0_elvis_lhs_1 = charset(this.m4k_1);
|
|
534
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().o1p_1 : tmp0_elvis_lhs_1;
|
|
535
|
+
var tmp_13 = ensureNotNull(this.j4k_1.w45());
|
|
536
|
+
var this_0 = this.k4k_1;
|
|
505
537
|
var tmp_14;
|
|
506
538
|
if (!equals(this_0, NullBody_instance)) {
|
|
507
539
|
tmp_14 = this_0;
|
|
@@ -509,7 +541,7 @@
|
|
|
509
541
|
tmp_14 = null;
|
|
510
542
|
}
|
|
511
543
|
|
|
512
|
-
suspendResult = this.
|
|
544
|
+
suspendResult = this.o4k_1.p4j_1.n4m(this.m4k_1, tmp_12, tmp_13, tmp_14, this);
|
|
513
545
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
514
546
|
return suspendResult;
|
|
515
547
|
}
|
|
@@ -518,37 +550,37 @@
|
|
|
518
550
|
case 3:
|
|
519
551
|
var result = suspendResult;
|
|
520
552
|
if (!(result == null)) {
|
|
521
|
-
get_LOGGER().
|
|
553
|
+
get_LOGGER().j2h('Converted request body using ' + toString(this.o4k_1.p4j_1) + ' for ' + this.j4k_1.k3d_1.toString());
|
|
522
554
|
}
|
|
523
555
|
|
|
524
556
|
var result_0 = result;
|
|
525
557
|
if (!(result_0 == null)) {
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
558
|
+
this.n4k_1 = result_0;
|
|
559
|
+
this.g8_1 = 6;
|
|
528
560
|
continue $sm;
|
|
529
561
|
} else {
|
|
530
|
-
this.
|
|
562
|
+
this.g8_1 = 4;
|
|
531
563
|
continue $sm;
|
|
532
564
|
}
|
|
533
565
|
|
|
534
566
|
case 4:
|
|
535
|
-
this.
|
|
567
|
+
this.g8_1 = 2;
|
|
536
568
|
continue $sm;
|
|
537
569
|
case 5:
|
|
538
|
-
this.
|
|
570
|
+
this.n4k_1 = null;
|
|
539
571
|
if (false) {
|
|
540
|
-
this.
|
|
572
|
+
this.g8_1 = 1;
|
|
541
573
|
continue $sm;
|
|
542
574
|
}
|
|
543
575
|
|
|
544
|
-
this.
|
|
576
|
+
this.g8_1 = 6;
|
|
545
577
|
continue $sm;
|
|
546
578
|
case 6:
|
|
547
|
-
var tmp2_elvis_lhs = this.
|
|
579
|
+
var tmp2_elvis_lhs = this.n4k_1;
|
|
548
580
|
var tmp_15;
|
|
549
581
|
if (tmp2_elvis_lhs == null) {
|
|
550
|
-
var tmp_16 = "Can't convert " + toString(this.
|
|
551
|
-
throw new ContentConverterException(tmp_16 + joinToString(this.
|
|
582
|
+
var tmp_16 = "Can't convert " + toString(this.k4k_1) + ' with contentType ' + this.m4k_1.toString() + ' using converters ';
|
|
583
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.l4k_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
552
584
|
} else {
|
|
553
585
|
tmp_15 = tmp2_elvis_lhs;
|
|
554
586
|
}
|
|
@@ -556,68 +588,68 @@
|
|
|
556
588
|
var serializedContent = tmp_15;
|
|
557
589
|
return serializedContent;
|
|
558
590
|
case 7:
|
|
559
|
-
throw this.
|
|
591
|
+
throw this.j8_1;
|
|
560
592
|
}
|
|
561
593
|
} catch ($p) {
|
|
562
594
|
var e = $p;
|
|
563
|
-
if (this.
|
|
595
|
+
if (this.h8_1 === 7) {
|
|
564
596
|
throw e;
|
|
565
597
|
} else {
|
|
566
|
-
this.
|
|
567
|
-
this.
|
|
598
|
+
this.g8_1 = this.h8_1;
|
|
599
|
+
this.j8_1 = e;
|
|
568
600
|
}
|
|
569
601
|
}
|
|
570
602
|
while (true);
|
|
571
603
|
};
|
|
572
604
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
573
605
|
CoroutineImpl.call(this, resultContinuation);
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
606
|
+
this.z4k_1 = ignoredTypes;
|
|
607
|
+
this.a4l_1 = registrations;
|
|
608
|
+
this.b4l_1 = $this_createClientPlugin;
|
|
609
|
+
this.c4l_1 = requestUrl;
|
|
610
|
+
this.d4l_1 = info;
|
|
611
|
+
this.e4l_1 = body;
|
|
612
|
+
this.f4l_1 = responseContentType;
|
|
613
|
+
this.g4l_1 = charset;
|
|
582
614
|
}
|
|
583
|
-
protoOf($invoke$convertResponseCOROUTINE$).
|
|
584
|
-
var suspendResult = this.
|
|
615
|
+
protoOf($invoke$convertResponseCOROUTINE$).o8 = function () {
|
|
616
|
+
var suspendResult = this.i8_1;
|
|
585
617
|
$sm: do
|
|
586
618
|
try {
|
|
587
|
-
var tmp = this.
|
|
619
|
+
var tmp = this.g8_1;
|
|
588
620
|
switch (tmp) {
|
|
589
621
|
case 0:
|
|
590
|
-
this.
|
|
591
|
-
var tmp_0 = this.
|
|
622
|
+
this.h8_1 = 2;
|
|
623
|
+
var tmp_0 = this.e4l_1;
|
|
592
624
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
593
|
-
get_LOGGER().
|
|
625
|
+
get_LOGGER().j2h('Response body is already transformed. Skipping ContentNegotiation for ' + this.c4l_1.toString() + '.');
|
|
594
626
|
return null;
|
|
595
627
|
}
|
|
596
628
|
|
|
597
|
-
if (this.
|
|
598
|
-
get_LOGGER().
|
|
629
|
+
if (this.z4k_1.h2(this.d4l_1.c2h_1)) {
|
|
630
|
+
get_LOGGER().j2h('Response body type ' + toString(this.d4l_1.c2h_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c4l_1.toString() + '.'));
|
|
599
631
|
return null;
|
|
600
632
|
}
|
|
601
633
|
|
|
602
|
-
var tmp0 = this.
|
|
634
|
+
var tmp0 = this.a4l_1;
|
|
603
635
|
var destination = ArrayList_init_$Create$();
|
|
604
|
-
var _iterator__ex2g4s = tmp0.
|
|
605
|
-
while (_iterator__ex2g4s.
|
|
606
|
-
var element = _iterator__ex2g4s.
|
|
607
|
-
if (element.
|
|
608
|
-
destination.
|
|
636
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
637
|
+
while (_iterator__ex2g4s.u()) {
|
|
638
|
+
var element = _iterator__ex2g4s.v();
|
|
639
|
+
if (element.r4j_1.t4j(this.f4l_1)) {
|
|
640
|
+
destination.e1(element);
|
|
609
641
|
}
|
|
610
642
|
}
|
|
611
643
|
|
|
612
644
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
613
|
-
var _iterator__ex2g4s_0 = destination.
|
|
614
|
-
while (_iterator__ex2g4s_0.
|
|
615
|
-
var item = _iterator__ex2g4s_0.
|
|
616
|
-
destination_0.
|
|
645
|
+
var _iterator__ex2g4s_0 = destination.t();
|
|
646
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
647
|
+
var item = _iterator__ex2g4s_0.v();
|
|
648
|
+
destination_0.e1(item.p4j_1);
|
|
617
649
|
}
|
|
618
650
|
|
|
619
651
|
var tmp_1;
|
|
620
|
-
if (!destination_0.
|
|
652
|
+
if (!destination_0.r()) {
|
|
621
653
|
tmp_1 = destination_0;
|
|
622
654
|
} else {
|
|
623
655
|
tmp_1 = null;
|
|
@@ -626,16 +658,16 @@
|
|
|
626
658
|
var tmp0_elvis_lhs = tmp_1;
|
|
627
659
|
var tmp_2;
|
|
628
660
|
if (tmp0_elvis_lhs == null) {
|
|
629
|
-
this.
|
|
630
|
-
get_LOGGER().
|
|
661
|
+
this.b4l_1;
|
|
662
|
+
get_LOGGER().j2h('None of the registered converters match response with Content-Type=' + this.f4l_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c4l_1.toString() + '.'));
|
|
631
663
|
return null;
|
|
632
664
|
} else {
|
|
633
665
|
tmp_2 = tmp0_elvis_lhs;
|
|
634
666
|
}
|
|
635
667
|
|
|
636
668
|
var suitableConverters = tmp_2;
|
|
637
|
-
this.
|
|
638
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
669
|
+
this.g8_1 = 1;
|
|
670
|
+
suspendResult = deserialize(suitableConverters, this.e4l_1, this.d4l_1, this.g4l_1, this);
|
|
639
671
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
640
672
|
return suspendResult;
|
|
641
673
|
}
|
|
@@ -644,20 +676,20 @@
|
|
|
644
676
|
case 1:
|
|
645
677
|
var result = suspendResult;
|
|
646
678
|
if (!isInterface(result, ByteReadChannel)) {
|
|
647
|
-
get_LOGGER().
|
|
679
|
+
get_LOGGER().j2h('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.c4l_1.toString() + '.');
|
|
648
680
|
}
|
|
649
681
|
|
|
650
682
|
return result;
|
|
651
683
|
case 2:
|
|
652
|
-
throw this.
|
|
684
|
+
throw this.j8_1;
|
|
653
685
|
}
|
|
654
686
|
} catch ($p) {
|
|
655
687
|
var e = $p;
|
|
656
|
-
if (this.
|
|
688
|
+
if (this.h8_1 === 2) {
|
|
657
689
|
throw e;
|
|
658
690
|
} else {
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
691
|
+
this.g8_1 = this.h8_1;
|
|
692
|
+
this.j8_1 = e;
|
|
661
693
|
}
|
|
662
694
|
}
|
|
663
695
|
while (true);
|
|
@@ -667,7 +699,7 @@
|
|
|
667
699
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
668
700
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
669
701
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
670
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
702
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ob(), PrimitiveClasses_getInstance().kb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
|
|
671
703
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
672
704
|
var name = 'ExcludedContentTypesAttr';
|
|
673
705
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -693,6 +725,19 @@
|
|
|
693
725
|
ContentNegotiation = createClientPlugin('ContentNegotiation', tmp_2, ContentNegotiation$lambda);
|
|
694
726
|
}
|
|
695
727
|
}
|
|
728
|
+
function JsonContentTypeMatcher() {
|
|
729
|
+
}
|
|
730
|
+
protoOf(JsonContentTypeMatcher).t4j = function (contentType) {
|
|
731
|
+
if (contentType.v2j(Application_getInstance().b2i_1)) {
|
|
732
|
+
return true;
|
|
733
|
+
}
|
|
734
|
+
var value = contentType.u2j().toString();
|
|
735
|
+
return Application_getInstance().v2i(value) && endsWith(value, '+json', true);
|
|
736
|
+
};
|
|
737
|
+
var JsonContentTypeMatcher_instance;
|
|
738
|
+
function JsonContentTypeMatcher_getInstance() {
|
|
739
|
+
return JsonContentTypeMatcher_instance;
|
|
740
|
+
}
|
|
696
741
|
function get_DefaultIgnoredTypes() {
|
|
697
742
|
_init_properties_DefaultIgnoredTypes_web_kt__6eddjw();
|
|
698
743
|
return DefaultIgnoredTypes;
|
|
@@ -706,6 +751,12 @@
|
|
|
706
751
|
DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
|
|
707
752
|
}
|
|
708
753
|
}
|
|
754
|
+
//region block: post-declaration
|
|
755
|
+
protoOf(ContentNegotiationConfig).m39 = register$default;
|
|
756
|
+
//endregion
|
|
757
|
+
//region block: init
|
|
758
|
+
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|
|
759
|
+
//endregion
|
|
709
760
|
//region block: exports
|
|
710
761
|
_.$_$ = _.$_$ || {};
|
|
711
762
|
_.$_$.a = get_ContentNegotiation;
|