@xiuper/mpp-core 0.0.2 → 0.2.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-DateTime-library-kotlinx-datetime.js +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
package/ktor-ktor-server-cio.js
CHANGED
|
@@ -40,31 +40,31 @@
|
|
|
40
40
|
'use strict';
|
|
41
41
|
//region block: imports
|
|
42
42
|
var imul = Math.imul;
|
|
43
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
44
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
43
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
44
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
45
45
|
var ApplicationEngineFactory = kotlin_io_ktor_ktor_server_core.$_$.m;
|
|
46
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
46
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
47
47
|
var VOID = kotlin_kotlin.$_$.h;
|
|
48
48
|
var BaseApplicationCall = kotlin_io_ktor_ktor_server_core.$_$.n;
|
|
49
49
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
50
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
51
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
52
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
53
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
54
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
50
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
51
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
52
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
53
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
54
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
56
56
|
var get_ApplicationStopPreparing = kotlin_io_ktor_ktor_server_core.$_$.f;
|
|
57
57
|
var Configuration = kotlin_io_ktor_ktor_server_core.$_$.o;
|
|
58
|
-
var toLong = kotlin_kotlin.$_$.
|
|
58
|
+
var toLong = kotlin_kotlin.$_$.bf;
|
|
59
59
|
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.a1;
|
|
60
60
|
var Phases_getInstance = kotlin_io_ktor_ktor_server_core.$_$.e;
|
|
61
61
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
62
|
-
var toLong_0 = kotlin_kotlin.$_$.
|
|
63
|
-
var Long = kotlin_kotlin.$_$.
|
|
64
|
-
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
65
|
-
var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
62
|
+
var toLong_0 = kotlin_kotlin.$_$.nj;
|
|
63
|
+
var Long = kotlin_kotlin.$_$.wk;
|
|
64
|
+
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
65
|
+
var CoroutineScope_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
66
66
|
var CoroutineStart_LAZY_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
67
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
67
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p2;
|
|
68
68
|
var Request = kotlin_io_ktor_ktor_http_cio.$_$.i;
|
|
69
69
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
70
70
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.k;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.l;
|
|
74
74
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
75
75
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
76
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
76
|
+
var arrayOf = kotlin_kotlin.$_$.rl;
|
|
77
77
|
var createKType = kotlin_kotlin.$_$.c;
|
|
78
78
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.c1;
|
|
79
79
|
var initContextInDebugMode = kotlin_io_ktor_ktor_utils.$_$.d;
|
|
@@ -82,38 +82,38 @@
|
|
|
82
82
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.b3;
|
|
83
83
|
var Companion_getInstance_1 = kotlin_io_ktor_ktor_server_core.$_$.d;
|
|
84
84
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.p7;
|
|
85
|
-
var to = kotlin_kotlin.$_$.
|
|
85
|
+
var to = kotlin_kotlin.$_$.lm;
|
|
86
86
|
var withPort = kotlin_io_ktor_ktor_server_core.$_$.t;
|
|
87
|
-
var joinAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
87
|
+
var joinAll = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
88
88
|
var get_ServerReady = kotlin_io_ktor_ktor_server_core.$_$.i;
|
|
89
89
|
var raiseCatching = kotlin_io_ktor_ktor_events.$_$.c;
|
|
90
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
91
|
-
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
90
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
91
|
+
var withTimeoutOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
92
92
|
var BaseApplicationEngine = kotlin_io_ktor_ktor_server_core.$_$.p;
|
|
93
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
94
|
-
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
95
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
93
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
94
|
+
var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.w1;
|
|
95
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
96
96
|
var RequestCookies = kotlin_io_ktor_ktor_server_core.$_$.w;
|
|
97
97
|
var encodeParameters = kotlin_io_ktor_ktor_server_core.$_$.y;
|
|
98
|
-
var toString = kotlin_kotlin.$_$.
|
|
98
|
+
var toString = kotlin_kotlin.$_$.df;
|
|
99
99
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j3;
|
|
100
|
-
var indexOf = kotlin_kotlin.$_$.
|
|
100
|
+
var indexOf = kotlin_kotlin.$_$.fh;
|
|
101
101
|
var Companion_getInstance_2 = kotlin_io_ktor_ktor_http.$_$.m;
|
|
102
102
|
var parseQueryString = kotlin_io_ktor_ktor_http.$_$.k2;
|
|
103
103
|
var BaseApplicationRequest = kotlin_io_ktor_ktor_server_core.$_$.q;
|
|
104
|
-
var lazy = kotlin_kotlin.$_$.
|
|
104
|
+
var lazy = kotlin_kotlin.$_$.cm;
|
|
105
105
|
var CIOHeaders = kotlin_io_ktor_ktor_http_cio.$_$.e;
|
|
106
106
|
var Companion_getInstance_3 = kotlin_io_ktor_ktor_http.$_$.j;
|
|
107
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
108
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
107
|
+
var KProperty1 = kotlin_kotlin.$_$.wf;
|
|
108
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ud;
|
|
109
109
|
var Companion_getInstance_4 = kotlin_io_ktor_ktor_http.$_$.n;
|
|
110
110
|
var get_hostname = kotlin_io_ktor_ktor_utils.$_$.x;
|
|
111
|
-
var substringBefore = kotlin_kotlin.$_$.
|
|
111
|
+
var substringBefore = kotlin_kotlin.$_$.xi;
|
|
112
112
|
var get_port = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
113
|
-
var substringAfter = kotlin_kotlin.$_$.
|
|
114
|
-
var toInt = kotlin_kotlin.$_$.
|
|
115
|
-
var substringAfterLast = kotlin_kotlin.$_$.
|
|
116
|
-
var substringBeforeLast = kotlin_kotlin.$_$.
|
|
113
|
+
var substringAfter = kotlin_kotlin.$_$.ui;
|
|
114
|
+
var toInt = kotlin_kotlin.$_$.kj;
|
|
115
|
+
var substringAfterLast = kotlin_kotlin.$_$.si;
|
|
116
|
+
var substringBeforeLast = kotlin_kotlin.$_$.vi;
|
|
117
117
|
var get_address = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
118
118
|
var forEach = kotlin_io_ktor_ktor_utils.$_$.i1;
|
|
119
119
|
var Parameters = kotlin_io_ktor_ktor_http.$_$.j1;
|
|
@@ -126,39 +126,39 @@
|
|
|
126
126
|
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.u;
|
|
127
127
|
var BaseApplicationResponse = kotlin_io_ktor_ktor_server_core.$_$.r;
|
|
128
128
|
var RequestResponseBuilder = kotlin_io_ktor_ktor_http_cio.$_$.h;
|
|
129
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
129
|
+
var ensureNotNull = kotlin_kotlin.$_$.wl;
|
|
130
130
|
var writePacket = kotlin_io_ktor_ktor_io.$_$.q;
|
|
131
131
|
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
132
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
133
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
134
|
-
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
135
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
132
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
133
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.rd;
|
|
134
|
+
var CoroutineName = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
135
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
136
136
|
var CoroutineStart_UNDISPATCHED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
|
|
137
137
|
var SelectorManager = kotlin_io_ktor_ktor_network.$_$.b;
|
|
138
138
|
var Companion_getInstance_5 = kotlin_kotlin.$_$.w5;
|
|
139
139
|
var DurationUnit_SECONDS_getInstance = kotlin_kotlin.$_$.m;
|
|
140
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
141
|
-
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
140
|
+
var toDuration = kotlin_kotlin.$_$.fk;
|
|
141
|
+
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e2;
|
|
142
142
|
var aSocket = kotlin_io_ktor_ktor_network.$_$.e;
|
|
143
|
-
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
143
|
+
var Key_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
144
144
|
var DefaultUncaughtExceptionHandler_init_$Create$ = kotlin_io_ktor_ktor_server_core.$_$.b;
|
|
145
145
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
146
146
|
var openReadChannel = kotlin_io_ktor_ktor_network.$_$.f;
|
|
147
147
|
var openWriteChannel = kotlin_io_ktor_ktor_network.$_$.g;
|
|
148
|
-
var cancel_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
148
|
+
var cancel_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j2;
|
|
149
149
|
var ClosedChannelException = kotlin_io_ktor_ktor_server_core.$_$.l;
|
|
150
150
|
var awaitClosed = kotlin_io_ktor_ktor_network.$_$.a;
|
|
151
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
151
|
+
var closeFinally = kotlin_kotlin.$_$.sl;
|
|
152
152
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.s;
|
|
153
153
|
var close = kotlin_io_ktor_ktor_io.$_$.g2;
|
|
154
154
|
var close_0 = kotlin_io_ktor_ktor_io.$_$.f2;
|
|
155
|
-
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
155
|
+
var Channel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
156
156
|
var parseRequest = kotlin_io_ktor_ktor_http_cio.$_$.b;
|
|
157
157
|
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.u;
|
|
158
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
158
|
+
var CancellationException = kotlin_kotlin.$_$.fc;
|
|
159
159
|
var TooLongLineException = kotlin_io_ktor_ktor_io.$_$.y;
|
|
160
160
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
161
|
-
var toList = kotlin_kotlin.$_$.
|
|
161
|
+
var toList = kotlin_kotlin.$_$.gg;
|
|
162
162
|
var Companion_getInstance_6 = kotlin_io_ktor_ktor_http_cio.$_$.c;
|
|
163
163
|
var ParserException = kotlin_io_ktor_ktor_http_cio.$_$.g;
|
|
164
164
|
var parseDecLong = kotlin_io_ktor_ktor_http_cio.$_$.d;
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
var ByteWriteChannel = kotlin_io_ktor_ktor_io.$_$.x1;
|
|
171
171
|
var parseHttpBody = kotlin_io_ktor_ktor_http_cio.$_$.a;
|
|
172
172
|
var ChannelReadException = kotlin_io_ktor_ktor_utils.$_$.i;
|
|
173
|
-
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
174
|
-
var ChannelResult__getOrNull_impl_f5e07h = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
175
|
-
var withTimeoutOrNull_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
173
|
+
var ChannelResult = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
174
|
+
var ChannelResult__getOrNull_impl_f5e07h = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
175
|
+
var withTimeoutOrNull_0 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
|
|
176
176
|
var copyTo = kotlin_io_ktor_ktor_io.$_$.c;
|
|
177
|
-
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
177
|
+
var _ChannelResult___get_isSuccess__impl__odq1z9 = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
178
178
|
var InetSocketAddress = kotlin_io_ktor_ktor_network.$_$.c;
|
|
179
179
|
var Path = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.h;
|
|
180
180
|
var get_SystemFileSystem = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
@@ -230,20 +230,20 @@
|
|
|
230
230
|
//endregion
|
|
231
231
|
function CIO() {
|
|
232
232
|
}
|
|
233
|
-
protoOf(CIO).
|
|
233
|
+
protoOf(CIO).kbm = function (configure) {
|
|
234
234
|
// Inline function 'kotlin.apply' call
|
|
235
235
|
var this_0 = new Configuration_0();
|
|
236
236
|
configure(this_0);
|
|
237
237
|
return this_0;
|
|
238
238
|
};
|
|
239
|
-
protoOf(CIO).
|
|
240
|
-
return this.
|
|
239
|
+
protoOf(CIO).pb1 = function (configure) {
|
|
240
|
+
return this.kbm(configure);
|
|
241
241
|
};
|
|
242
|
-
protoOf(CIO).
|
|
242
|
+
protoOf(CIO).lbm = function (environment, monitor, developmentMode, configuration, applicationProvider) {
|
|
243
243
|
return new CIOApplicationEngine(environment, monitor, developmentMode, configuration, applicationProvider);
|
|
244
244
|
};
|
|
245
|
-
protoOf(CIO).
|
|
246
|
-
return this.
|
|
245
|
+
protoOf(CIO).qb1 = function (environment, monitor, developmentMode, configuration, applicationProvider) {
|
|
246
|
+
return this.lbm(environment, monitor, developmentMode, configuration instanceof Configuration_0 ? configuration : THROW_CCE(), applicationProvider);
|
|
247
247
|
};
|
|
248
248
|
var CIO_instance;
|
|
249
249
|
function CIO_getInstance() {
|
|
@@ -251,36 +251,36 @@
|
|
|
251
251
|
}
|
|
252
252
|
function CIOApplicationCall(application, _request, input, output, engineDispatcher, appDispatcher, upgraded, remoteAddress, localAddress, coroutineContext) {
|
|
253
253
|
BaseApplicationCall.call(this, application);
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
256
|
-
this.
|
|
257
|
-
this.
|
|
254
|
+
this.obm_1 = coroutineContext;
|
|
255
|
+
this.pbm_1 = new CIOApplicationRequest(this, remoteAddress, localAddress, input, _request);
|
|
256
|
+
this.qbm_1 = new CIOApplicationResponse(this, output, input, engineDispatcher, appDispatcher, upgraded);
|
|
257
|
+
this.bam();
|
|
258
258
|
}
|
|
259
259
|
protoOf(CIOApplicationCall).z1v = function () {
|
|
260
|
-
return this.
|
|
260
|
+
return this.obm_1;
|
|
261
261
|
};
|
|
262
|
-
protoOf(CIOApplicationCall).
|
|
263
|
-
return this.
|
|
262
|
+
protoOf(CIOApplicationCall).k66 = function () {
|
|
263
|
+
return this.pbm_1;
|
|
264
264
|
};
|
|
265
|
-
protoOf(CIOApplicationCall).
|
|
266
|
-
return this.
|
|
265
|
+
protoOf(CIOApplicationCall).b64 = function () {
|
|
266
|
+
return this.qbm_1;
|
|
267
267
|
};
|
|
268
|
-
protoOf(CIOApplicationCall).
|
|
269
|
-
this.
|
|
268
|
+
protoOf(CIOApplicationCall).rbm = function () {
|
|
269
|
+
this.pbm_1.rbm();
|
|
270
270
|
};
|
|
271
271
|
function CIOApplicationEngine$handleRequest$slambda$slambda($this, $context, resultContinuation) {
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
272
|
+
this.mbn_1 = $this;
|
|
273
|
+
this.nbn_1 = $context;
|
|
274
274
|
CoroutineImpl.call(this, resultContinuation);
|
|
275
275
|
}
|
|
276
|
-
protoOf(CIOApplicationEngine$handleRequest$slambda$slambda).
|
|
277
|
-
var tmp = this.
|
|
276
|
+
protoOf(CIOApplicationEngine$handleRequest$slambda$slambda).f4s = function ($completion) {
|
|
277
|
+
var tmp = this.g4s($completion);
|
|
278
278
|
tmp.z9_1 = Unit_instance;
|
|
279
279
|
tmp.aa_1 = null;
|
|
280
280
|
return tmp.fa();
|
|
281
281
|
};
|
|
282
282
|
protoOf(CIOApplicationEngine$handleRequest$slambda$slambda).wb = function ($completion) {
|
|
283
|
-
return this.
|
|
283
|
+
return this.f4s($completion);
|
|
284
284
|
};
|
|
285
285
|
protoOf(CIOApplicationEngine$handleRequest$slambda$slambda).fa = function () {
|
|
286
286
|
var suspendResult = this.z9_1;
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
case 0:
|
|
292
292
|
this.y9_1 = 2;
|
|
293
293
|
this.x9_1 = 1;
|
|
294
|
-
suspendResult = this.
|
|
294
|
+
suspendResult = this.mbn_1.f54(this.nbn_1, Unit_instance, this);
|
|
295
295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
296
296
|
return suspendResult;
|
|
297
297
|
}
|
|
@@ -313,20 +313,20 @@
|
|
|
313
313
|
}
|
|
314
314
|
while (true);
|
|
315
315
|
};
|
|
316
|
-
protoOf(CIOApplicationEngine$handleRequest$slambda$slambda).
|
|
317
|
-
return new CIOApplicationEngine$handleRequest$slambda$slambda(this.
|
|
316
|
+
protoOf(CIOApplicationEngine$handleRequest$slambda$slambda).g4s = function (completion) {
|
|
317
|
+
return new CIOApplicationEngine$handleRequest$slambda$slambda(this.mbn_1, this.nbn_1, completion);
|
|
318
318
|
};
|
|
319
319
|
function CIOApplicationEngine$handleRequest$slambda$slambda_0($this, $context, resultContinuation) {
|
|
320
320
|
var i = new CIOApplicationEngine$handleRequest$slambda$slambda($this, $context, resultContinuation);
|
|
321
321
|
var l = function ($completion) {
|
|
322
|
-
return i.
|
|
322
|
+
return i.f4s($completion);
|
|
323
323
|
};
|
|
324
324
|
l.$arity = 0;
|
|
325
325
|
return l;
|
|
326
326
|
}
|
|
327
327
|
function CIOApplicationEngine$initServerJob$slambda$slambda(this$0, $environment, resultContinuation) {
|
|
328
|
-
this.
|
|
329
|
-
this.
|
|
328
|
+
this.wbn_1 = this$0;
|
|
329
|
+
this.xbn_1 = $environment;
|
|
330
330
|
CoroutineImpl.call(this, resultContinuation);
|
|
331
331
|
}
|
|
332
332
|
protoOf(CIOApplicationEngine$initServerJob$slambda$slambda).x2q = function ($this$withContext, $completion) {
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
var tmp = this.x9_1;
|
|
346
346
|
if (tmp === 0) {
|
|
347
347
|
this.y9_1 = 1;
|
|
348
|
-
this.
|
|
348
|
+
this.wbn_1.qam_1.j62(get_ApplicationStopPreparing(), this.xbn_1);
|
|
349
349
|
return Unit_instance;
|
|
350
350
|
} else if (tmp === 1) {
|
|
351
351
|
throw this.aa_1;
|
|
@@ -357,8 +357,8 @@
|
|
|
357
357
|
while (true);
|
|
358
358
|
};
|
|
359
359
|
protoOf(CIOApplicationEngine$initServerJob$slambda$slambda).y2q = function ($this$withContext, completion) {
|
|
360
|
-
var i = new CIOApplicationEngine$initServerJob$slambda$slambda(this.
|
|
361
|
-
i.
|
|
360
|
+
var i = new CIOApplicationEngine$initServerJob$slambda$slambda(this.wbn_1, this.xbn_1, completion);
|
|
361
|
+
i.ybn_1 = $this$withContext;
|
|
362
362
|
return i;
|
|
363
363
|
};
|
|
364
364
|
function CIOApplicationEngine$initServerJob$slambda$slambda_0(this$0, $environment, resultContinuation) {
|
|
@@ -371,16 +371,16 @@
|
|
|
371
371
|
}
|
|
372
372
|
function Configuration_0() {
|
|
373
373
|
Configuration.call(this);
|
|
374
|
-
this.
|
|
375
|
-
this.
|
|
374
|
+
this.gbo_1 = 45;
|
|
375
|
+
this.hbo_1 = false;
|
|
376
376
|
}
|
|
377
377
|
function startConnector($this, _this__u8e3s4, connectorSpec) {
|
|
378
378
|
var tmp;
|
|
379
379
|
if (isInterface(connectorSpec, UnixSocketConnectorConfig)) {
|
|
380
|
-
var settings = new UnixSocketServerSettings(connectorSpec.
|
|
380
|
+
var settings = new UnixSocketServerSettings(connectorSpec.tbo(), toLong($this.mbo_1.gbo_1));
|
|
381
381
|
tmp = unixSocketServer(_this__u8e3s4, settings, CIOApplicationEngine$startConnector$slambda_0($this, null));
|
|
382
382
|
} else {
|
|
383
|
-
var settings_0 = new HttpServerSettings(connectorSpec.
|
|
383
|
+
var settings_0 = new HttpServerSettings(connectorSpec.ab2(), connectorSpec.q5h(), toLong($this.mbo_1.gbo_1), $this.mbo_1.hbo_1);
|
|
384
384
|
tmp = httpServer(_this__u8e3s4, settings_0, CIOApplicationEngine$startConnector$slambda_2($this, null));
|
|
385
385
|
}
|
|
386
386
|
return tmp;
|
|
@@ -389,26 +389,26 @@
|
|
|
389
389
|
var continueResponse = 'HTTP/1.1 100 Continue\r\n';
|
|
390
390
|
var expectHeaderValue = '100-continue';
|
|
391
391
|
var expectedHeaderPhase = new PipelinePhase('ExpectedHeaderPhase');
|
|
392
|
-
call.
|
|
393
|
-
var tmp = call.
|
|
394
|
-
tmp.
|
|
392
|
+
call.pbm_1.cah().c54(Phases_getInstance().say_1, expectedHeaderPhase);
|
|
393
|
+
var tmp = call.pbm_1.cah();
|
|
394
|
+
tmp.h54(expectedHeaderPhase, CIOApplicationEngine$addHandlerForExpectedHeader$slambda_0(call, $this, expectHeaderValue, output, continueResponse, null));
|
|
395
395
|
}
|
|
396
396
|
function hasBody($this, request) {
|
|
397
|
-
var tmp0_safe_receiver = request.
|
|
397
|
+
var tmp0_safe_receiver = request.p5c().cf(HttpHeaders_getInstance().z58_1);
|
|
398
398
|
var contentLength = tmp0_safe_receiver == null ? null : toLong_0(tmp0_safe_receiver);
|
|
399
|
-
var transferEncoding = request.
|
|
399
|
+
var transferEncoding = request.p5c().cf(HttpHeaders_getInstance().g5b_1);
|
|
400
400
|
return !(transferEncoding == null) || (!(contentLength == null) && contentLength.j1(new Long(0, 0)) > 0);
|
|
401
401
|
}
|
|
402
402
|
function handleRequest($this, _this__u8e3s4, request, $completion) {
|
|
403
|
-
return withContext($this.
|
|
403
|
+
return withContext($this.pbo_1, CIOApplicationEngine$handleRequest$slambda_0($this, request, _this__u8e3s4, null), $completion);
|
|
404
404
|
}
|
|
405
405
|
function initServerJob($this) {
|
|
406
|
-
var environment = $this.
|
|
407
|
-
var userDispatcher = $this.
|
|
408
|
-
var stopRequest = $this.
|
|
409
|
-
var startupJob = $this.
|
|
410
|
-
var cioConnectors = $this.
|
|
411
|
-
var tmp = CoroutineScope_0($this.
|
|
406
|
+
var environment = $this.pam_1;
|
|
407
|
+
var userDispatcher = $this.pbo_1;
|
|
408
|
+
var stopRequest = $this.rbo_1;
|
|
409
|
+
var startupJob = $this.qbo_1;
|
|
410
|
+
var cioConnectors = $this.sam_1;
|
|
411
|
+
var tmp = CoroutineScope_0($this.nbo_1().sab_1.am($this.obo_1));
|
|
412
412
|
var tmp_0 = CoroutineStart_LAZY_getInstance();
|
|
413
413
|
return launch(tmp, VOID, tmp_0, CIOApplicationEngine$initServerJob$slambda_0($this, cioConnectors, stopRequest, startupJob, userDispatcher, environment, null));
|
|
414
414
|
}
|
|
@@ -418,30 +418,30 @@
|
|
|
418
418
|
null;
|
|
419
419
|
else {
|
|
420
420
|
// Inline function 'kotlin.let' call
|
|
421
|
-
this$0.
|
|
421
|
+
this$0.rbo_1.x24(cause);
|
|
422
422
|
}
|
|
423
423
|
if (cause == null)
|
|
424
424
|
null;
|
|
425
425
|
else {
|
|
426
426
|
// Inline function 'kotlin.let' call
|
|
427
|
-
this$0.
|
|
427
|
+
this$0.qbo_1.x24(cause);
|
|
428
428
|
}
|
|
429
429
|
return Unit_instance;
|
|
430
430
|
};
|
|
431
431
|
}
|
|
432
432
|
function CIOApplicationEngine$start$slambda(this$0, $wait, resultContinuation) {
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
433
|
+
this.cbp_1 = this$0;
|
|
434
|
+
this.dbp_1 = $wait;
|
|
435
435
|
CoroutineImpl.call(this, resultContinuation);
|
|
436
436
|
}
|
|
437
|
-
protoOf(CIOApplicationEngine$start$slambda).
|
|
437
|
+
protoOf(CIOApplicationEngine$start$slambda).cal = function ($this$runBlockingBridge, $completion) {
|
|
438
438
|
var tmp = this.y2q($this$runBlockingBridge, $completion);
|
|
439
439
|
tmp.z9_1 = Unit_instance;
|
|
440
440
|
tmp.aa_1 = null;
|
|
441
441
|
return tmp.fa();
|
|
442
442
|
};
|
|
443
443
|
protoOf(CIOApplicationEngine$start$slambda).ra = function (p1, $completion) {
|
|
444
|
-
return this.
|
|
444
|
+
return this.cal((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
445
445
|
};
|
|
446
446
|
protoOf(CIOApplicationEngine$start$slambda).fa = function () {
|
|
447
447
|
var suspendResult = this.z9_1;
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
case 0:
|
|
453
453
|
this.y9_1 = 2;
|
|
454
454
|
this.x9_1 = 1;
|
|
455
|
-
suspendResult = this.
|
|
455
|
+
suspendResult = this.cbp_1.sal(this.dbp_1, this);
|
|
456
456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
457
457
|
return suspendResult;
|
|
458
458
|
}
|
|
@@ -475,30 +475,30 @@
|
|
|
475
475
|
while (true);
|
|
476
476
|
};
|
|
477
477
|
protoOf(CIOApplicationEngine$start$slambda).y2q = function ($this$runBlockingBridge, completion) {
|
|
478
|
-
var i = new CIOApplicationEngine$start$slambda(this.
|
|
479
|
-
i.
|
|
478
|
+
var i = new CIOApplicationEngine$start$slambda(this.cbp_1, this.dbp_1, completion);
|
|
479
|
+
i.ebp_1 = $this$runBlockingBridge;
|
|
480
480
|
return i;
|
|
481
481
|
};
|
|
482
482
|
function CIOApplicationEngine$start$slambda_0(this$0, $wait, resultContinuation) {
|
|
483
483
|
var i = new CIOApplicationEngine$start$slambda(this$0, $wait, resultContinuation);
|
|
484
484
|
var l = function ($this$runBlockingBridge, $completion) {
|
|
485
|
-
return i.
|
|
485
|
+
return i.cal($this$runBlockingBridge, $completion);
|
|
486
486
|
};
|
|
487
487
|
l.$arity = 1;
|
|
488
488
|
return l;
|
|
489
489
|
}
|
|
490
490
|
function CIOApplicationEngine$stopSuspend$slambda(this$0, resultContinuation) {
|
|
491
|
-
this.
|
|
491
|
+
this.nbp_1 = this$0;
|
|
492
492
|
CoroutineImpl.call(this, resultContinuation);
|
|
493
493
|
}
|
|
494
|
-
protoOf(CIOApplicationEngine$stopSuspend$slambda).
|
|
494
|
+
protoOf(CIOApplicationEngine$stopSuspend$slambda).pbp = function ($this$withTimeoutOrNull, $completion) {
|
|
495
495
|
var tmp = this.y2q($this$withTimeoutOrNull, $completion);
|
|
496
496
|
tmp.z9_1 = Unit_instance;
|
|
497
497
|
tmp.aa_1 = null;
|
|
498
498
|
return tmp.fa();
|
|
499
499
|
};
|
|
500
500
|
protoOf(CIOApplicationEngine$stopSuspend$slambda).ra = function (p1, $completion) {
|
|
501
|
-
return this.
|
|
501
|
+
return this.pbp((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
502
502
|
};
|
|
503
503
|
protoOf(CIOApplicationEngine$stopSuspend$slambda).fa = function () {
|
|
504
504
|
var suspendResult = this.z9_1;
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
case 0:
|
|
510
510
|
this.y9_1 = 2;
|
|
511
511
|
this.x9_1 = 1;
|
|
512
|
-
suspendResult = this.
|
|
512
|
+
suspendResult = this.nbp_1.sbo_1.g1x(this);
|
|
513
513
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
514
514
|
return suspendResult;
|
|
515
515
|
}
|
|
@@ -532,20 +532,20 @@
|
|
|
532
532
|
while (true);
|
|
533
533
|
};
|
|
534
534
|
protoOf(CIOApplicationEngine$stopSuspend$slambda).y2q = function ($this$withTimeoutOrNull, completion) {
|
|
535
|
-
var i = new CIOApplicationEngine$stopSuspend$slambda(this.
|
|
536
|
-
i.
|
|
535
|
+
var i = new CIOApplicationEngine$stopSuspend$slambda(this.nbp_1, completion);
|
|
536
|
+
i.obp_1 = $this$withTimeoutOrNull;
|
|
537
537
|
return i;
|
|
538
538
|
};
|
|
539
539
|
function CIOApplicationEngine$stopSuspend$slambda_0(this$0, resultContinuation) {
|
|
540
540
|
var i = new CIOApplicationEngine$stopSuspend$slambda(this$0, resultContinuation);
|
|
541
541
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
542
|
-
return i.
|
|
542
|
+
return i.pbp($this$withTimeoutOrNull, $completion);
|
|
543
543
|
};
|
|
544
544
|
l.$arity = 1;
|
|
545
545
|
return l;
|
|
546
546
|
}
|
|
547
547
|
function CIOApplicationEngine$stopSuspend$slambda_1(this$0, resultContinuation) {
|
|
548
|
-
this.
|
|
548
|
+
this.ybp_1 = this$0;
|
|
549
549
|
CoroutineImpl.call(this, resultContinuation);
|
|
550
550
|
}
|
|
551
551
|
protoOf(CIOApplicationEngine$stopSuspend$slambda_1).x2q = function ($this$withTimeoutOrNull, $completion) {
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
case 0:
|
|
567
567
|
this.y9_1 = 2;
|
|
568
568
|
this.x9_1 = 1;
|
|
569
|
-
suspendResult = this.
|
|
569
|
+
suspendResult = this.ybp_1.sbo_1.g1x(this);
|
|
570
570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
571
571
|
return suspendResult;
|
|
572
572
|
}
|
|
@@ -589,8 +589,8 @@
|
|
|
589
589
|
while (true);
|
|
590
590
|
};
|
|
591
591
|
protoOf(CIOApplicationEngine$stopSuspend$slambda_1).y2q = function ($this$withTimeoutOrNull, completion) {
|
|
592
|
-
var i = new CIOApplicationEngine$stopSuspend$slambda_1(this.
|
|
593
|
-
i.
|
|
592
|
+
var i = new CIOApplicationEngine$stopSuspend$slambda_1(this.ybp_1, completion);
|
|
593
|
+
i.zbp_1 = $this$withTimeoutOrNull;
|
|
594
594
|
return i;
|
|
595
595
|
};
|
|
596
596
|
function CIOApplicationEngine$stopSuspend$slambda_2(this$0, resultContinuation) {
|
|
@@ -602,9 +602,9 @@
|
|
|
602
602
|
return l;
|
|
603
603
|
}
|
|
604
604
|
function CIOApplicationEngine$stop$slambda(this$0, $gracePeriodMillis, $timeoutMillis, resultContinuation) {
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
605
|
+
this.ibq_1 = this$0;
|
|
606
|
+
this.jbq_1 = $gracePeriodMillis;
|
|
607
|
+
this.kbq_1 = $timeoutMillis;
|
|
608
608
|
CoroutineImpl.call(this, resultContinuation);
|
|
609
609
|
}
|
|
610
610
|
protoOf(CIOApplicationEngine$stop$slambda).x2q = function ($this$runBlockingBridge, $completion) {
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
case 0:
|
|
626
626
|
this.y9_1 = 2;
|
|
627
627
|
this.x9_1 = 1;
|
|
628
|
-
suspendResult = this.
|
|
628
|
+
suspendResult = this.ibq_1.tal(this.jbq_1, this.kbq_1, this);
|
|
629
629
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
630
630
|
return suspendResult;
|
|
631
631
|
}
|
|
@@ -648,8 +648,8 @@
|
|
|
648
648
|
while (true);
|
|
649
649
|
};
|
|
650
650
|
protoOf(CIOApplicationEngine$stop$slambda).y2q = function ($this$runBlockingBridge, completion) {
|
|
651
|
-
var i = new CIOApplicationEngine$stop$slambda(this.
|
|
652
|
-
i.
|
|
651
|
+
var i = new CIOApplicationEngine$stop$slambda(this.ibq_1, this.jbq_1, this.kbq_1, completion);
|
|
652
|
+
i.lbq_1 = $this$runBlockingBridge;
|
|
653
653
|
return i;
|
|
654
654
|
};
|
|
655
655
|
function CIOApplicationEngine$stop$slambda_0(this$0, $gracePeriodMillis, $timeoutMillis, resultContinuation) {
|
|
@@ -661,18 +661,18 @@
|
|
|
661
661
|
return l;
|
|
662
662
|
}
|
|
663
663
|
function CIOApplicationEngine$startConnector$slambda(this$0, resultContinuation) {
|
|
664
|
-
this.
|
|
664
|
+
this.ubq_1 = this$0;
|
|
665
665
|
CoroutineImpl.call(this, resultContinuation);
|
|
666
666
|
}
|
|
667
|
-
protoOf(CIOApplicationEngine$startConnector$slambda).
|
|
668
|
-
var tmp = this.
|
|
667
|
+
protoOf(CIOApplicationEngine$startConnector$slambda).xbq = function ($this$unixSocketServer, request, $completion) {
|
|
668
|
+
var tmp = this.ybq($this$unixSocketServer, request, $completion);
|
|
669
669
|
tmp.z9_1 = Unit_instance;
|
|
670
670
|
tmp.aa_1 = null;
|
|
671
671
|
return tmp.fa();
|
|
672
672
|
};
|
|
673
673
|
protoOf(CIOApplicationEngine$startConnector$slambda).sa = function (p1, p2, $completion) {
|
|
674
674
|
var tmp = p1 instanceof ServerRequestScope ? p1 : THROW_CCE();
|
|
675
|
-
return this.
|
|
675
|
+
return this.xbq(tmp, p2 instanceof Request ? p2 : THROW_CCE(), $completion);
|
|
676
676
|
};
|
|
677
677
|
protoOf(CIOApplicationEngine$startConnector$slambda).fa = function () {
|
|
678
678
|
var suspendResult = this.z9_1;
|
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
case 0:
|
|
684
684
|
this.y9_1 = 2;
|
|
685
685
|
this.x9_1 = 1;
|
|
686
|
-
suspendResult = handleRequest(this.
|
|
686
|
+
suspendResult = handleRequest(this.ubq_1, this.vbq_1, this.wbq_1, this);
|
|
687
687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
688
688
|
return suspendResult;
|
|
689
689
|
}
|
|
@@ -705,33 +705,33 @@
|
|
|
705
705
|
}
|
|
706
706
|
while (true);
|
|
707
707
|
};
|
|
708
|
-
protoOf(CIOApplicationEngine$startConnector$slambda).
|
|
709
|
-
var i = new CIOApplicationEngine$startConnector$slambda(this.
|
|
710
|
-
i.
|
|
711
|
-
i.
|
|
708
|
+
protoOf(CIOApplicationEngine$startConnector$slambda).ybq = function ($this$unixSocketServer, request, completion) {
|
|
709
|
+
var i = new CIOApplicationEngine$startConnector$slambda(this.ubq_1, completion);
|
|
710
|
+
i.vbq_1 = $this$unixSocketServer;
|
|
711
|
+
i.wbq_1 = request;
|
|
712
712
|
return i;
|
|
713
713
|
};
|
|
714
714
|
function CIOApplicationEngine$startConnector$slambda_0(this$0, resultContinuation) {
|
|
715
715
|
var i = new CIOApplicationEngine$startConnector$slambda(this$0, resultContinuation);
|
|
716
716
|
var l = function ($this$unixSocketServer, request, $completion) {
|
|
717
|
-
return i.
|
|
717
|
+
return i.xbq($this$unixSocketServer, request, $completion);
|
|
718
718
|
};
|
|
719
719
|
l.$arity = 2;
|
|
720
720
|
return l;
|
|
721
721
|
}
|
|
722
722
|
function CIOApplicationEngine$startConnector$slambda_1(this$0, resultContinuation) {
|
|
723
|
-
this.
|
|
723
|
+
this.hbr_1 = this$0;
|
|
724
724
|
CoroutineImpl.call(this, resultContinuation);
|
|
725
725
|
}
|
|
726
|
-
protoOf(CIOApplicationEngine$startConnector$slambda_1).
|
|
727
|
-
var tmp = this.
|
|
726
|
+
protoOf(CIOApplicationEngine$startConnector$slambda_1).xbq = function ($this$httpServer, request, $completion) {
|
|
727
|
+
var tmp = this.ybq($this$httpServer, request, $completion);
|
|
728
728
|
tmp.z9_1 = Unit_instance;
|
|
729
729
|
tmp.aa_1 = null;
|
|
730
730
|
return tmp.fa();
|
|
731
731
|
};
|
|
732
732
|
protoOf(CIOApplicationEngine$startConnector$slambda_1).sa = function (p1, p2, $completion) {
|
|
733
733
|
var tmp = p1 instanceof ServerRequestScope ? p1 : THROW_CCE();
|
|
734
|
-
return this.
|
|
734
|
+
return this.xbq(tmp, p2 instanceof Request ? p2 : THROW_CCE(), $completion);
|
|
735
735
|
};
|
|
736
736
|
protoOf(CIOApplicationEngine$startConnector$slambda_1).fa = function () {
|
|
737
737
|
var suspendResult = this.z9_1;
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
case 0:
|
|
743
743
|
this.y9_1 = 2;
|
|
744
744
|
this.x9_1 = 1;
|
|
745
|
-
suspendResult = handleRequest(this.
|
|
745
|
+
suspendResult = handleRequest(this.hbr_1, this.ibr_1, this.jbr_1, this);
|
|
746
746
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
747
747
|
return suspendResult;
|
|
748
748
|
}
|
|
@@ -764,37 +764,37 @@
|
|
|
764
764
|
}
|
|
765
765
|
while (true);
|
|
766
766
|
};
|
|
767
|
-
protoOf(CIOApplicationEngine$startConnector$slambda_1).
|
|
768
|
-
var i = new CIOApplicationEngine$startConnector$slambda_1(this.
|
|
769
|
-
i.
|
|
770
|
-
i.
|
|
767
|
+
protoOf(CIOApplicationEngine$startConnector$slambda_1).ybq = function ($this$httpServer, request, completion) {
|
|
768
|
+
var i = new CIOApplicationEngine$startConnector$slambda_1(this.hbr_1, completion);
|
|
769
|
+
i.ibr_1 = $this$httpServer;
|
|
770
|
+
i.jbr_1 = request;
|
|
771
771
|
return i;
|
|
772
772
|
};
|
|
773
773
|
function CIOApplicationEngine$startConnector$slambda_2(this$0, resultContinuation) {
|
|
774
774
|
var i = new CIOApplicationEngine$startConnector$slambda_1(this$0, resultContinuation);
|
|
775
775
|
var l = function ($this$httpServer, request, $completion) {
|
|
776
|
-
return i.
|
|
776
|
+
return i.xbq($this$httpServer, request, $completion);
|
|
777
777
|
};
|
|
778
778
|
l.$arity = 2;
|
|
779
779
|
return l;
|
|
780
780
|
}
|
|
781
781
|
function CIOApplicationEngine$addHandlerForExpectedHeader$slambda($call, this$0, $expectHeaderValue, $output, $continueResponse, resultContinuation) {
|
|
782
|
-
this.
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
782
|
+
this.sbr_1 = $call;
|
|
783
|
+
this.tbr_1 = this$0;
|
|
784
|
+
this.ubr_1 = $expectHeaderValue;
|
|
785
|
+
this.vbr_1 = $output;
|
|
786
|
+
this.wbr_1 = $continueResponse;
|
|
787
787
|
CoroutineImpl.call(this, resultContinuation);
|
|
788
788
|
}
|
|
789
|
-
protoOf(CIOApplicationEngine$addHandlerForExpectedHeader$slambda).
|
|
790
|
-
var tmp = this.
|
|
789
|
+
protoOf(CIOApplicationEngine$addHandlerForExpectedHeader$slambda).rap = function ($this$intercept, it, $completion) {
|
|
790
|
+
var tmp = this.sap($this$intercept, it, $completion);
|
|
791
791
|
tmp.z9_1 = Unit_instance;
|
|
792
792
|
tmp.aa_1 = null;
|
|
793
793
|
return tmp.fa();
|
|
794
794
|
};
|
|
795
795
|
protoOf(CIOApplicationEngine$addHandlerForExpectedHeader$slambda).sa = function (p1, p2, $completion) {
|
|
796
796
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
797
|
-
return this.
|
|
797
|
+
return this.rap(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
798
798
|
};
|
|
799
799
|
protoOf(CIOApplicationEngine$addHandlerForExpectedHeader$slambda).fa = function () {
|
|
800
800
|
var suspendResult = this.z9_1;
|
|
@@ -804,10 +804,10 @@
|
|
|
804
804
|
switch (tmp) {
|
|
805
805
|
case 0:
|
|
806
806
|
this.y9_1 = 5;
|
|
807
|
-
this.
|
|
808
|
-
this.
|
|
807
|
+
this.zbr_1 = this.sbr_1.pbm_1;
|
|
808
|
+
this.abs_1 = Companion_getInstance().pr(get_httpVersion(this.zbr_1));
|
|
809
809
|
var tmp_0 = this;
|
|
810
|
-
var tmp0_safe_receiver = this.
|
|
810
|
+
var tmp0_safe_receiver = this.sbr_1.pbm_1.p5c().cf(HttpHeaders_getInstance().k59_1);
|
|
811
811
|
var tmp_1;
|
|
812
812
|
if (tmp0_safe_receiver == null) {
|
|
813
813
|
tmp_1 = null;
|
|
@@ -815,19 +815,19 @@
|
|
|
815
815
|
tmp_1 = tmp0_safe_receiver.toLowerCase();
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
-
tmp_0.
|
|
819
|
-
this.
|
|
820
|
-
if (this.
|
|
818
|
+
tmp_0.bbs_1 = tmp_1;
|
|
819
|
+
this.cbs_1 = hasBody(this.tbr_1, this.zbr_1);
|
|
820
|
+
if (this.bbs_1 == null || this.abs_1.equals(Companion_getInstance().c5d_1) || !this.cbs_1) {
|
|
821
821
|
return Unit_instance;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
-
if (!(this.
|
|
824
|
+
if (!(this.bbs_1 === this.ubr_1)) {
|
|
825
825
|
var tmp_2 = this;
|
|
826
|
-
tmp_2.
|
|
826
|
+
tmp_2.ebs_1 = this.sbr_1;
|
|
827
827
|
var tmp_3 = this;
|
|
828
|
-
tmp_3.
|
|
829
|
-
this.
|
|
830
|
-
this.
|
|
828
|
+
tmp_3.fbs_1 = Companion_getInstance_0().u5e_1;
|
|
829
|
+
this.gbs_1 = this.ebs_1;
|
|
830
|
+
this.hbs_1 = this.fbs_1;
|
|
831
831
|
this.x9_1 = 3;
|
|
832
832
|
var tmp_4 = getKClass(HttpStatusCode);
|
|
833
833
|
var tmp_5;
|
|
@@ -843,20 +843,20 @@
|
|
|
843
843
|
}
|
|
844
844
|
tmp_5 = tmp_6;
|
|
845
845
|
}
|
|
846
|
-
suspendResult = this.
|
|
846
|
+
suspendResult = this.gbs_1.pah(this.hbs_1, new TypeInfo(tmp_4, tmp_5), this);
|
|
847
847
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
848
848
|
return suspendResult;
|
|
849
849
|
}
|
|
850
850
|
continue $sm;
|
|
851
851
|
} else {
|
|
852
852
|
var tmp_7 = this;
|
|
853
|
-
tmp_7.
|
|
854
|
-
this.
|
|
853
|
+
tmp_7.ibs_1 = this.vbr_1;
|
|
854
|
+
this.jbs_1 = this.ibs_1;
|
|
855
855
|
var tmp_8 = this;
|
|
856
|
-
tmp_8.
|
|
857
|
-
this.
|
|
856
|
+
tmp_8.kbs_1 = this.jbs_1;
|
|
857
|
+
this.lbs_1 = this.kbs_1;
|
|
858
858
|
this.x9_1 = 1;
|
|
859
|
-
suspendResult = writeStringUtf8(this.
|
|
859
|
+
suspendResult = writeStringUtf8(this.vbr_1, this.wbr_1, this);
|
|
860
860
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
861
861
|
return suspendResult;
|
|
862
862
|
}
|
|
@@ -865,18 +865,18 @@
|
|
|
865
865
|
|
|
866
866
|
case 1:
|
|
867
867
|
this.x9_1 = 2;
|
|
868
|
-
suspendResult = this.
|
|
868
|
+
suspendResult = this.vbr_1.h4h(this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
continue $sm;
|
|
874
874
|
case 2:
|
|
875
|
-
this.
|
|
875
|
+
this.dbs_1 = this.jbs_1;
|
|
876
876
|
this.x9_1 = 4;
|
|
877
877
|
continue $sm;
|
|
878
878
|
case 3:
|
|
879
|
-
this.
|
|
879
|
+
this.dbs_1 = Unit_instance;
|
|
880
880
|
this.x9_1 = 4;
|
|
881
881
|
continue $sm;
|
|
882
882
|
case 4:
|
|
@@ -895,24 +895,24 @@
|
|
|
895
895
|
}
|
|
896
896
|
while (true);
|
|
897
897
|
};
|
|
898
|
-
protoOf(CIOApplicationEngine$addHandlerForExpectedHeader$slambda).
|
|
899
|
-
var i = new CIOApplicationEngine$addHandlerForExpectedHeader$slambda(this.
|
|
900
|
-
i.
|
|
901
|
-
i.
|
|
898
|
+
protoOf(CIOApplicationEngine$addHandlerForExpectedHeader$slambda).sap = function ($this$intercept, it, completion) {
|
|
899
|
+
var i = new CIOApplicationEngine$addHandlerForExpectedHeader$slambda(this.sbr_1, this.tbr_1, this.ubr_1, this.vbr_1, this.wbr_1, completion);
|
|
900
|
+
i.xbr_1 = $this$intercept;
|
|
901
|
+
i.ybr_1 = it;
|
|
902
902
|
return i;
|
|
903
903
|
};
|
|
904
904
|
function CIOApplicationEngine$addHandlerForExpectedHeader$slambda_0($call, this$0, $expectHeaderValue, $output, $continueResponse, resultContinuation) {
|
|
905
905
|
var i = new CIOApplicationEngine$addHandlerForExpectedHeader$slambda($call, this$0, $expectHeaderValue, $output, $continueResponse, resultContinuation);
|
|
906
906
|
var l = function ($this$intercept, it, $completion) {
|
|
907
|
-
return i.
|
|
907
|
+
return i.rap($this$intercept, it, $completion);
|
|
908
908
|
};
|
|
909
909
|
l.$arity = 2;
|
|
910
910
|
return l;
|
|
911
911
|
}
|
|
912
912
|
function CIOApplicationEngine$handleRequest$slambda(this$0, $request, $this_handleRequest, resultContinuation) {
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
913
|
+
this.ubs_1 = this$0;
|
|
914
|
+
this.vbs_1 = $request;
|
|
915
|
+
this.wbs_1 = $this_handleRequest;
|
|
916
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
917
917
|
}
|
|
918
918
|
protoOf(CIOApplicationEngine$handleRequest$slambda).x2q = function ($this$requestContext, $completion) {
|
|
@@ -932,28 +932,28 @@
|
|
|
932
932
|
switch (tmp) {
|
|
933
933
|
case 0:
|
|
934
934
|
this.y9_1 = 7;
|
|
935
|
-
this.
|
|
935
|
+
this.ybs_1 = new CIOApplicationCall(this.ubs_1.nbo_1(), this.vbs_1, this.wbs_1.gbt_1, this.wbs_1.hbt_1, this.ubs_1.obo_1, this.ubs_1.pbo_1, this.wbs_1.kbt_1, this.wbs_1.ibt_1, this.wbs_1.jbt_1, this.xbs_1.z1v());
|
|
936
936
|
this.x9_1 = 1;
|
|
937
937
|
continue $sm;
|
|
938
938
|
case 1:
|
|
939
939
|
this.y9_1 = 6;
|
|
940
940
|
this.y9_1 = 3;
|
|
941
|
-
addHandlerForExpectedHeader(this.
|
|
941
|
+
addHandlerForExpectedHeader(this.ubs_1, this.wbs_1.hbt_1, this.ybs_1);
|
|
942
942
|
var tmp_0 = this;
|
|
943
|
-
tmp_0.
|
|
943
|
+
tmp_0.abt_1 = this.ubs_1.ram_1;
|
|
944
944
|
var tmp_1 = this;
|
|
945
|
-
tmp_1.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
945
|
+
tmp_1.bbt_1 = this.ybs_1;
|
|
946
|
+
this.cbt_1 = this.abt_1;
|
|
947
|
+
this.dbt_1 = this.bbt_1;
|
|
948
948
|
this.x9_1 = 2;
|
|
949
|
-
suspendResult = initContextInDebugMode(CIOApplicationEngine$handleRequest$slambda$slambda_0(this.
|
|
949
|
+
suspendResult = initContextInDebugMode(CIOApplicationEngine$handleRequest$slambda$slambda_0(this.cbt_1, this.dbt_1, null), this);
|
|
950
950
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
951
951
|
return suspendResult;
|
|
952
952
|
}
|
|
953
953
|
|
|
954
954
|
continue $sm;
|
|
955
955
|
case 2:
|
|
956
|
-
this.
|
|
956
|
+
this.zbs_1 = Unit_instance;
|
|
957
957
|
this.y9_1 = 7;
|
|
958
958
|
this.x9_1 = 5;
|
|
959
959
|
continue $sm;
|
|
@@ -961,9 +961,9 @@
|
|
|
961
961
|
this.y9_1 = 6;
|
|
962
962
|
var tmp_2 = this.aa_1;
|
|
963
963
|
if (tmp_2 instanceof Error) {
|
|
964
|
-
this.
|
|
964
|
+
this.ebt_1 = this.aa_1;
|
|
965
965
|
this.x9_1 = 4;
|
|
966
|
-
suspendResult = handleFailure(this.
|
|
966
|
+
suspendResult = handleFailure(this.ybs_1, this.ebt_1, this);
|
|
967
967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
968
968
|
return suspendResult;
|
|
969
969
|
}
|
|
@@ -973,18 +973,18 @@
|
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
case 4:
|
|
976
|
-
this.
|
|
976
|
+
this.zbs_1 = suspendResult;
|
|
977
977
|
this.y9_1 = 7;
|
|
978
978
|
this.x9_1 = 5;
|
|
979
979
|
continue $sm;
|
|
980
980
|
case 5:
|
|
981
981
|
this.y9_1 = 7;
|
|
982
|
-
this.
|
|
982
|
+
this.ybs_1.rbm();
|
|
983
983
|
return Unit_instance;
|
|
984
984
|
case 6:
|
|
985
985
|
this.y9_1 = 7;
|
|
986
986
|
var t = this.aa_1;
|
|
987
|
-
this.
|
|
987
|
+
this.ybs_1.rbm();
|
|
988
988
|
throw t;
|
|
989
989
|
case 7:
|
|
990
990
|
throw this.aa_1;
|
|
@@ -1001,8 +1001,8 @@
|
|
|
1001
1001
|
while (true);
|
|
1002
1002
|
};
|
|
1003
1003
|
protoOf(CIOApplicationEngine$handleRequest$slambda).y2q = function ($this$requestContext, completion) {
|
|
1004
|
-
var i = new CIOApplicationEngine$handleRequest$slambda(this.
|
|
1005
|
-
i.
|
|
1004
|
+
var i = new CIOApplicationEngine$handleRequest$slambda(this.ubs_1, this.vbs_1, this.wbs_1, completion);
|
|
1005
|
+
i.xbs_1 = $this$requestContext;
|
|
1006
1006
|
return i;
|
|
1007
1007
|
};
|
|
1008
1008
|
function CIOApplicationEngine$handleRequest$slambda_0(this$0, $request, $this_handleRequest, resultContinuation) {
|
|
@@ -1014,12 +1014,12 @@
|
|
|
1014
1014
|
return l;
|
|
1015
1015
|
}
|
|
1016
1016
|
function CIOApplicationEngine$initServerJob$slambda(this$0, $cioConnectors, $stopRequest, $startupJob, $userDispatcher, $environment, resultContinuation) {
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1017
|
+
this.tbt_1 = this$0;
|
|
1018
|
+
this.ubt_1 = $cioConnectors;
|
|
1019
|
+
this.vbt_1 = $stopRequest;
|
|
1020
|
+
this.wbt_1 = $startupJob;
|
|
1021
|
+
this.xbt_1 = $userDispatcher;
|
|
1022
|
+
this.ybt_1 = $environment;
|
|
1023
1023
|
CoroutineImpl.call(this, resultContinuation);
|
|
1024
1024
|
}
|
|
1025
1025
|
protoOf(CIOApplicationEngine$initServerJob$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -1039,83 +1039,83 @@
|
|
|
1039
1039
|
switch (tmp) {
|
|
1040
1040
|
case 0:
|
|
1041
1041
|
this.y9_1 = 9;
|
|
1042
|
-
this.
|
|
1042
|
+
this.abu_1 = ArrayList_init_$Create$(this.tbt_1.mbo_1.qak_1.s());
|
|
1043
1043
|
this.y9_1 = 4;
|
|
1044
|
-
var _iterator__ex2g4s = this.
|
|
1044
|
+
var _iterator__ex2g4s = this.tbt_1.mbo_1.qak_1.p();
|
|
1045
1045
|
while (_iterator__ex2g4s.q()) {
|
|
1046
1046
|
var element = _iterator__ex2g4s.r();
|
|
1047
|
-
if (element.
|
|
1047
|
+
if (element.zb1().equals(Companion_getInstance_1().wb1_1)) {
|
|
1048
1048
|
throw UnsupportedOperationException_init_$Create$('CIO Engine does not currently support HTTPS. Please consider using a different engine if you require HTTPS');
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
1052
|
var tmp_0 = this;
|
|
1053
|
-
var this_0 = this.
|
|
1053
|
+
var this_0 = this.tbt_1.mbo_1.qak_1;
|
|
1054
1054
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1055
1055
|
var _iterator__ex2g4s_0 = this_0.p();
|
|
1056
1056
|
while (_iterator__ex2g4s_0.q()) {
|
|
1057
1057
|
var item = _iterator__ex2g4s_0.r();
|
|
1058
|
-
destination.h(to(item, startConnector(this.
|
|
1058
|
+
destination.h(to(item, startConnector(this.tbt_1, this.zbt_1, item)));
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
tmp_0.
|
|
1062
|
-
var this_1 = this.
|
|
1061
|
+
tmp_0.cbu_1 = destination;
|
|
1062
|
+
var this_1 = this.cbu_1;
|
|
1063
1063
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
1064
1064
|
var _iterator__ex2g4s_1 = this_1.p();
|
|
1065
1065
|
while (_iterator__ex2g4s_1.q()) {
|
|
1066
1066
|
var item_0 = _iterator__ex2g4s_1.r();
|
|
1067
|
-
destination_0.h(item_0.
|
|
1067
|
+
destination_0.h(item_0.pi_1);
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
|
-
this.
|
|
1070
|
+
this.abu_1.t(destination_0);
|
|
1071
1071
|
var tmp_1 = this;
|
|
1072
|
-
tmp_1.
|
|
1073
|
-
this.
|
|
1072
|
+
tmp_1.dbu_1 = this.cbu_1;
|
|
1073
|
+
this.ebu_1 = this.dbu_1;
|
|
1074
1074
|
var tmp_2 = this;
|
|
1075
|
-
tmp_2.
|
|
1075
|
+
tmp_2.fbu_1 = this.ebu_1;
|
|
1076
1076
|
var tmp_3 = this;
|
|
1077
|
-
tmp_3.
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1077
|
+
tmp_3.gbu_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this.ebu_1, 10));
|
|
1078
|
+
this.hbu_1 = this.fbu_1;
|
|
1079
|
+
this.ibu_1 = this.gbu_1;
|
|
1080
|
+
this.jbu_1 = this.hbu_1.p();
|
|
1081
1081
|
this.x9_1 = 1;
|
|
1082
1082
|
continue $sm;
|
|
1083
1083
|
case 1:
|
|
1084
|
-
if (!this.
|
|
1084
|
+
if (!this.jbu_1.q()) {
|
|
1085
1085
|
this.x9_1 = 3;
|
|
1086
1086
|
continue $sm;
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
|
-
this.
|
|
1089
|
+
this.kbu_1 = this.jbu_1.r();
|
|
1090
1090
|
var tmp_4 = this;
|
|
1091
|
-
tmp_4.
|
|
1092
|
-
this.
|
|
1093
|
-
this.
|
|
1094
|
-
this.
|
|
1091
|
+
tmp_4.lbu_1 = this.kbu_1;
|
|
1092
|
+
this.mbu_1 = this.lbu_1;
|
|
1093
|
+
this.nbu_1 = this.mbu_1.ii();
|
|
1094
|
+
this.obu_1 = this.mbu_1.ji();
|
|
1095
1095
|
this.x9_1 = 2;
|
|
1096
|
-
suspendResult = this.
|
|
1096
|
+
suspendResult = this.obu_1.wbu_1.w21(this);
|
|
1097
1097
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1098
1098
|
return suspendResult;
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
continue $sm;
|
|
1102
1102
|
case 2:
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1105
|
-
this.
|
|
1103
|
+
this.pbu_1 = suspendResult;
|
|
1104
|
+
this.qbu_1 = to(this.nbu_1, this.pbu_1);
|
|
1105
|
+
this.ibu_1.h(this.qbu_1);
|
|
1106
1106
|
this.x9_1 = 1;
|
|
1107
1107
|
continue $sm;
|
|
1108
1108
|
case 3:
|
|
1109
|
-
this.
|
|
1109
|
+
this.rbu_1 = this.ibu_1;
|
|
1110
1110
|
var tmp_5 = this;
|
|
1111
|
-
var this_2 = this.
|
|
1111
|
+
var this_2 = this.rbu_1;
|
|
1112
1112
|
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
1113
1113
|
var _iterator__ex2g4s_2 = this_2.p();
|
|
1114
1114
|
while (_iterator__ex2g4s_2.q()) {
|
|
1115
1115
|
var item_1 = _iterator__ex2g4s_2.r();
|
|
1116
|
-
var connector = item_1.
|
|
1117
|
-
var socket = item_1.
|
|
1118
|
-
var tmp0_safe_receiver = get_port_0(socket.
|
|
1116
|
+
var connector = item_1.ii();
|
|
1117
|
+
var socket = item_1.ji();
|
|
1118
|
+
var tmp0_safe_receiver = get_port_0(socket.ob3());
|
|
1119
1119
|
var tmp_6;
|
|
1120
1120
|
if (tmp0_safe_receiver == null) {
|
|
1121
1121
|
tmp_6 = null;
|
|
@@ -1126,8 +1126,8 @@
|
|
|
1126
1126
|
destination_1.h(tmp1_elvis_lhs == null ? connector : tmp1_elvis_lhs);
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
|
-
tmp_5.
|
|
1130
|
-
this.
|
|
1129
|
+
tmp_5.sbu_1 = destination_1;
|
|
1130
|
+
this.bbu_1 = this.ubt_1.n24(this.sbu_1);
|
|
1131
1131
|
this.y9_1 = 9;
|
|
1132
1132
|
this.x9_1 = 5;
|
|
1133
1133
|
continue $sm;
|
|
@@ -1135,39 +1135,39 @@
|
|
|
1135
1135
|
this.y9_1 = 9;
|
|
1136
1136
|
var tmp_7 = this.aa_1;
|
|
1137
1137
|
if (tmp_7 instanceof Error) {
|
|
1138
|
-
this.
|
|
1138
|
+
this.tbu_1 = this.aa_1;
|
|
1139
1139
|
var tmp_8 = this;
|
|
1140
|
-
var _iterator__ex2g4s_3 = this.
|
|
1140
|
+
var _iterator__ex2g4s_3 = this.abu_1.p();
|
|
1141
1141
|
while (_iterator__ex2g4s_3.q()) {
|
|
1142
1142
|
var element_0 = _iterator__ex2g4s_3.r();
|
|
1143
|
-
element_0.
|
|
1143
|
+
element_0.ubu_1.k1x();
|
|
1144
1144
|
}
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1147
|
-
throw this.
|
|
1145
|
+
this.vbt_1.x24(this.tbu_1);
|
|
1146
|
+
this.wbt_1.x24(this.tbu_1);
|
|
1147
|
+
throw this.tbu_1;
|
|
1148
1148
|
} else {
|
|
1149
1149
|
throw this.aa_1;
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
1152
|
case 5:
|
|
1153
1153
|
this.y9_1 = 9;
|
|
1154
|
-
this.
|
|
1154
|
+
this.wbt_1.n24(Unit_instance);
|
|
1155
1155
|
this.x9_1 = 6;
|
|
1156
|
-
suspendResult = this.
|
|
1156
|
+
suspendResult = this.vbt_1.g1x(this);
|
|
1157
1157
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1158
1158
|
return suspendResult;
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
1161
|
continue $sm;
|
|
1162
1162
|
case 6:
|
|
1163
|
-
var _iterator__ex2g4s_4 = this.
|
|
1163
|
+
var _iterator__ex2g4s_4 = this.abu_1.p();
|
|
1164
1164
|
while (_iterator__ex2g4s_4.q()) {
|
|
1165
1165
|
var element_1 = _iterator__ex2g4s_4.r();
|
|
1166
|
-
element_1.
|
|
1166
|
+
element_1.vbu_1.k1x();
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
this.x9_1 = 7;
|
|
1170
|
-
suspendResult = withContext(this.
|
|
1170
|
+
suspendResult = withContext(this.xbt_1, CIOApplicationEngine$initServerJob$slambda$slambda_0(this.tbt_1, this.ybt_1, null), this);
|
|
1171
1171
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1172
1172
|
return suspendResult;
|
|
1173
1173
|
}
|
|
@@ -1175,12 +1175,12 @@
|
|
|
1175
1175
|
continue $sm;
|
|
1176
1176
|
case 7:
|
|
1177
1177
|
this.x9_1 = 8;
|
|
1178
|
-
var this_3 = this.
|
|
1178
|
+
var this_3 = this.abu_1;
|
|
1179
1179
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
1180
1180
|
var _iterator__ex2g4s_5 = this_3.p();
|
|
1181
1181
|
while (_iterator__ex2g4s_5.q()) {
|
|
1182
1182
|
var item_2 = _iterator__ex2g4s_5.r();
|
|
1183
|
-
destination_2.h(item_2.
|
|
1183
|
+
destination_2.h(item_2.ubu_1);
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
suspendResult = joinAll(destination_2, this);
|
|
@@ -1206,8 +1206,8 @@
|
|
|
1206
1206
|
while (true);
|
|
1207
1207
|
};
|
|
1208
1208
|
protoOf(CIOApplicationEngine$initServerJob$slambda).y2q = function ($this$launch, completion) {
|
|
1209
|
-
var i = new CIOApplicationEngine$initServerJob$slambda(this.
|
|
1210
|
-
i.
|
|
1209
|
+
var i = new CIOApplicationEngine$initServerJob$slambda(this.tbt_1, this.ubt_1, this.vbt_1, this.wbt_1, this.xbt_1, this.ybt_1, completion);
|
|
1210
|
+
i.zbt_1 = $this$launch;
|
|
1211
1211
|
return i;
|
|
1212
1212
|
};
|
|
1213
1213
|
function CIOApplicationEngine$initServerJob$slambda_0(this$0, $cioConnectors, $stopRequest, $startupJob, $userDispatcher, $environment, resultContinuation) {
|
|
@@ -1220,8 +1220,8 @@
|
|
|
1220
1220
|
}
|
|
1221
1221
|
function $startSuspendCOROUTINE$(_this__u8e3s4, wait, resultContinuation) {
|
|
1222
1222
|
CoroutineImpl.call(this, resultContinuation);
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1223
|
+
this.fbv_1 = _this__u8e3s4;
|
|
1224
|
+
this.gbv_1 = wait;
|
|
1225
1225
|
}
|
|
1226
1226
|
protoOf($startSuspendCOROUTINE$).fa = function () {
|
|
1227
1227
|
var suspendResult = this.z9_1;
|
|
@@ -1231,19 +1231,19 @@
|
|
|
1231
1231
|
switch (tmp) {
|
|
1232
1232
|
case 0:
|
|
1233
1233
|
this.y9_1 = 4;
|
|
1234
|
-
this.
|
|
1234
|
+
this.fbv_1.sbo_1.x1w();
|
|
1235
1235
|
this.x9_1 = 1;
|
|
1236
|
-
suspendResult = this.
|
|
1236
|
+
suspendResult = this.fbv_1.qbo_1.w21(this);
|
|
1237
1237
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1238
1238
|
return suspendResult;
|
|
1239
1239
|
}
|
|
1240
1240
|
|
|
1241
1241
|
continue $sm;
|
|
1242
1242
|
case 1:
|
|
1243
|
-
raiseCatching(this.
|
|
1244
|
-
if (this.
|
|
1243
|
+
raiseCatching(this.fbv_1.qam_1, get_ServerReady(), this.fbv_1.pam_1, this.fbv_1.pam_1.oam());
|
|
1244
|
+
if (this.gbv_1) {
|
|
1245
1245
|
this.x9_1 = 2;
|
|
1246
|
-
suspendResult = this.
|
|
1246
|
+
suspendResult = this.fbv_1.sbo_1.g1x(this);
|
|
1247
1247
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1248
1248
|
return suspendResult;
|
|
1249
1249
|
}
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
this.x9_1 = 3;
|
|
1258
1258
|
continue $sm;
|
|
1259
1259
|
case 3:
|
|
1260
|
-
return this.
|
|
1260
|
+
return this.fbv_1;
|
|
1261
1261
|
case 4:
|
|
1262
1262
|
throw this.aa_1;
|
|
1263
1263
|
}
|
|
@@ -1274,9 +1274,9 @@
|
|
|
1274
1274
|
};
|
|
1275
1275
|
function $stopSuspendCOROUTINE$(_this__u8e3s4, gracePeriodMillis, timeoutMillis, resultContinuation) {
|
|
1276
1276
|
CoroutineImpl.call(this, resultContinuation);
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1277
|
+
this.pbv_1 = _this__u8e3s4;
|
|
1278
|
+
this.qbv_1 = gracePeriodMillis;
|
|
1279
|
+
this.rbv_1 = timeoutMillis;
|
|
1280
1280
|
}
|
|
1281
1281
|
protoOf($stopSuspendCOROUTINE$).fa = function () {
|
|
1282
1282
|
var suspendResult = this.z9_1;
|
|
@@ -1286,21 +1286,21 @@
|
|
|
1286
1286
|
switch (tmp) {
|
|
1287
1287
|
case 0:
|
|
1288
1288
|
this.y9_1 = 4;
|
|
1289
|
-
this.
|
|
1289
|
+
this.pbv_1.rbo_1.y24();
|
|
1290
1290
|
this.x9_1 = 1;
|
|
1291
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1291
|
+
suspendResult = withTimeoutOrNull(this.qbv_1, CIOApplicationEngine$stopSuspend$slambda_0(this.pbv_1, null), this);
|
|
1292
1292
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1293
1293
|
return suspendResult;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
1296
|
continue $sm;
|
|
1297
1297
|
case 1:
|
|
1298
|
-
this.
|
|
1299
|
-
if (this.
|
|
1300
|
-
this.
|
|
1298
|
+
this.sbv_1 = suspendResult;
|
|
1299
|
+
if (this.sbv_1 == null) {
|
|
1300
|
+
this.pbv_1.sbo_1.k1x();
|
|
1301
1301
|
this.x9_1 = 2;
|
|
1302
|
-
var tmp_0 = this.
|
|
1303
|
-
suspendResult = withTimeoutOrNull(tmp_0, CIOApplicationEngine$stopSuspend$slambda_2(this.
|
|
1302
|
+
var tmp_0 = this.rbv_1.c3(this.qbv_1);
|
|
1303
|
+
suspendResult = withTimeoutOrNull(tmp_0, CIOApplicationEngine$stopSuspend$slambda_2(this.pbv_1, null), this);
|
|
1304
1304
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1305
1305
|
return suspendResult;
|
|
1306
1306
|
}
|
|
@@ -1331,33 +1331,33 @@
|
|
|
1331
1331
|
};
|
|
1332
1332
|
function CIOApplicationEngine(environment, monitor, developmentMode, configuration, applicationProvider) {
|
|
1333
1333
|
BaseApplicationEngine.call(this, environment, monitor, developmentMode);
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
var tmp = this.
|
|
1334
|
+
this.mbo_1 = configuration;
|
|
1335
|
+
this.nbo_1 = applicationProvider;
|
|
1336
|
+
this.obo_1 = get_IOBridge(Dispatchers_getInstance());
|
|
1337
|
+
this.pbo_1 = get_IOBridge(Dispatchers_getInstance());
|
|
1338
|
+
this.qbo_1 = CompletableDeferred();
|
|
1339
|
+
this.rbo_1 = Job();
|
|
1340
|
+
this.sbo_1 = Job();
|
|
1341
|
+
this.sbo_1 = initServerJob(this);
|
|
1342
|
+
var tmp = this.sbo_1;
|
|
1343
1343
|
tmp.c1x(CIOApplicationEngine$lambda(this));
|
|
1344
1344
|
}
|
|
1345
|
-
protoOf(CIOApplicationEngine).
|
|
1345
|
+
protoOf(CIOApplicationEngine).sal = function (wait, $completion) {
|
|
1346
1346
|
var tmp = new $startSuspendCOROUTINE$(this, wait, $completion);
|
|
1347
1347
|
tmp.z9_1 = Unit_instance;
|
|
1348
1348
|
tmp.aa_1 = null;
|
|
1349
1349
|
return tmp.fa();
|
|
1350
1350
|
};
|
|
1351
|
-
protoOf(CIOApplicationEngine).
|
|
1351
|
+
protoOf(CIOApplicationEngine).dal = function (wait) {
|
|
1352
1352
|
return runBlockingBridge(CIOApplicationEngine$start$slambda_0(this, wait, null));
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(CIOApplicationEngine).
|
|
1354
|
+
protoOf(CIOApplicationEngine).tal = function (gracePeriodMillis, timeoutMillis, $completion) {
|
|
1355
1355
|
var tmp = new $stopSuspendCOROUTINE$(this, gracePeriodMillis, timeoutMillis, $completion);
|
|
1356
1356
|
tmp.z9_1 = Unit_instance;
|
|
1357
1357
|
tmp.aa_1 = null;
|
|
1358
1358
|
return tmp.fa();
|
|
1359
1359
|
};
|
|
1360
|
-
protoOf(CIOApplicationEngine).
|
|
1360
|
+
protoOf(CIOApplicationEngine).qal = function (gracePeriodMillis, timeoutMillis) {
|
|
1361
1361
|
return runBlockingBridge(CIOApplicationEngine$stop$slambda_0(this, gracePeriodMillis, timeoutMillis, null));
|
|
1362
1362
|
};
|
|
1363
1363
|
function CIOApplicationRequest$cookies$delegate$lambda(this$0) {
|
|
@@ -1367,22 +1367,22 @@
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function CIOApplicationRequest$_get_cookies_$ref_25ojf9() {
|
|
1369
1369
|
return function (p0) {
|
|
1370
|
-
return p0.
|
|
1370
|
+
return p0.baq();
|
|
1371
1371
|
};
|
|
1372
1372
|
}
|
|
1373
1373
|
function CIOApplicationRequest$queryParameters$delegate$lambda(this$0) {
|
|
1374
1374
|
return function () {
|
|
1375
|
-
return toQueryParameters(encodeParameters(this$0, this$0.
|
|
1375
|
+
return toQueryParameters(encodeParameters(this$0, this$0.aaq()));
|
|
1376
1376
|
};
|
|
1377
1377
|
}
|
|
1378
1378
|
function CIOApplicationRequest$_get_queryParameters_$ref_pun7y() {
|
|
1379
1379
|
return function (p0) {
|
|
1380
|
-
return p0.
|
|
1380
|
+
return p0.yal();
|
|
1381
1381
|
};
|
|
1382
1382
|
}
|
|
1383
1383
|
function CIOApplicationRequest$rawQueryParameters$delegate$lambda(this$0) {
|
|
1384
1384
|
return function () {
|
|
1385
|
-
var uri = toString(this$0.
|
|
1385
|
+
var uri = toString(this$0.xbm_1.n5x_1);
|
|
1386
1386
|
// Inline function 'kotlin.takeIf' call
|
|
1387
1387
|
var this_0 = indexOf(uri, _Char___init__impl__6a9atx(63));
|
|
1388
1388
|
var tmp;
|
|
@@ -1394,7 +1394,7 @@
|
|
|
1394
1394
|
var tmp0_elvis_lhs = tmp;
|
|
1395
1395
|
var tmp_0;
|
|
1396
1396
|
if (tmp0_elvis_lhs == null) {
|
|
1397
|
-
return Companion_getInstance_2().
|
|
1397
|
+
return Companion_getInstance_2().p5f_1;
|
|
1398
1398
|
} else {
|
|
1399
1399
|
tmp_0 = tmp0_elvis_lhs;
|
|
1400
1400
|
}
|
|
@@ -1404,91 +1404,91 @@
|
|
|
1404
1404
|
}
|
|
1405
1405
|
function CIOApplicationRequest$_get_rawQueryParameters_$ref_ciofdg() {
|
|
1406
1406
|
return function (p0) {
|
|
1407
|
-
return p0.
|
|
1407
|
+
return p0.aaq();
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
1410
|
function CIOApplicationRequest(call, remoteAddress, localAddress, input, request) {
|
|
1411
1411
|
BaseApplicationRequest.call(this, call);
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1412
|
+
this.wbm_1 = input;
|
|
1413
|
+
this.xbm_1 = request;
|
|
1414
1414
|
var tmp = this;
|
|
1415
|
-
tmp.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1415
|
+
tmp.ybm_1 = lazy(CIOApplicationRequest$cookies$delegate$lambda(this));
|
|
1416
|
+
this.zbm_1 = this.wbm_1;
|
|
1417
|
+
this.abn_1 = new CIOHeaders(this.xbm_1.p5x_1);
|
|
1418
1418
|
var tmp_0 = this;
|
|
1419
|
-
tmp_0.
|
|
1419
|
+
tmp_0.bbn_1 = lazy(CIOApplicationRequest$queryParameters$delegate$lambda(this));
|
|
1420
1420
|
var tmp_1 = this;
|
|
1421
|
-
tmp_1.
|
|
1421
|
+
tmp_1.cbn_1 = lazy(CIOApplicationRequest$rawQueryParameters$delegate$lambda(this));
|
|
1422
1422
|
var tmp_2 = this;
|
|
1423
|
-
var tmp_3 = toString(this.
|
|
1424
|
-
var tmp_4 = toString(this.
|
|
1425
|
-
var tmp0_safe_receiver = this.
|
|
1426
|
-
tmp_2.
|
|
1423
|
+
var tmp_3 = toString(this.xbm_1.o5x_1);
|
|
1424
|
+
var tmp_4 = toString(this.xbm_1.n5x_1);
|
|
1425
|
+
var tmp0_safe_receiver = this.xbm_1.p5x_1.cf(HttpHeaders_getInstance().o59_1);
|
|
1426
|
+
tmp_2.dbn_1 = new CIOConnectionPoint(remoteAddress, localAddress, tmp_3, tmp_4, tmp0_safe_receiver == null ? null : toString(tmp0_safe_receiver), Companion_getInstance_3().dt(this.xbm_1.m5x_1.y5c_1));
|
|
1427
1427
|
}
|
|
1428
|
-
protoOf(CIOApplicationRequest).
|
|
1429
|
-
var tmp0 = this.
|
|
1428
|
+
protoOf(CIOApplicationRequest).baq = function () {
|
|
1429
|
+
var tmp0 = this.ybm_1;
|
|
1430
1430
|
var tmp = KProperty1;
|
|
1431
1431
|
// Inline function 'kotlin.getValue' call
|
|
1432
1432
|
getPropertyCallableRef('cookies', 1, tmp, CIOApplicationRequest$_get_cookies_$ref_25ojf9(), null);
|
|
1433
1433
|
return tmp0.b1();
|
|
1434
1434
|
};
|
|
1435
|
-
protoOf(CIOApplicationRequest).
|
|
1436
|
-
return this.
|
|
1435
|
+
protoOf(CIOApplicationRequest).yap = function () {
|
|
1436
|
+
return this.zbm_1;
|
|
1437
1437
|
};
|
|
1438
|
-
protoOf(CIOApplicationRequest).
|
|
1439
|
-
return this.
|
|
1438
|
+
protoOf(CIOApplicationRequest).xap = function () {
|
|
1439
|
+
return this.abn_1;
|
|
1440
1440
|
};
|
|
1441
|
-
protoOf(CIOApplicationRequest).
|
|
1442
|
-
var tmp0 = this.
|
|
1441
|
+
protoOf(CIOApplicationRequest).yal = function () {
|
|
1442
|
+
var tmp0 = this.bbn_1;
|
|
1443
1443
|
var tmp = KProperty1;
|
|
1444
1444
|
// Inline function 'kotlin.getValue' call
|
|
1445
1445
|
getPropertyCallableRef('queryParameters', 1, tmp, CIOApplicationRequest$_get_queryParameters_$ref_pun7y(), null);
|
|
1446
1446
|
return tmp0.b1();
|
|
1447
1447
|
};
|
|
1448
|
-
protoOf(CIOApplicationRequest).
|
|
1449
|
-
var tmp0 = this.
|
|
1448
|
+
protoOf(CIOApplicationRequest).aaq = function () {
|
|
1449
|
+
var tmp0 = this.cbn_1;
|
|
1450
1450
|
var tmp = KProperty1;
|
|
1451
1451
|
// Inline function 'kotlin.getValue' call
|
|
1452
1452
|
getPropertyCallableRef('rawQueryParameters', 1, tmp, CIOApplicationRequest$_get_rawQueryParameters_$ref_ciofdg(), null);
|
|
1453
1453
|
return tmp0.b1();
|
|
1454
1454
|
};
|
|
1455
|
-
protoOf(CIOApplicationRequest).
|
|
1456
|
-
return this.
|
|
1455
|
+
protoOf(CIOApplicationRequest).zap = function () {
|
|
1456
|
+
return this.dbn_1;
|
|
1457
1457
|
};
|
|
1458
|
-
protoOf(CIOApplicationRequest).
|
|
1459
|
-
this.
|
|
1458
|
+
protoOf(CIOApplicationRequest).rbm = function () {
|
|
1459
|
+
this.xbm_1.m1h();
|
|
1460
1460
|
};
|
|
1461
1461
|
function toQueryParameters(_this__u8e3s4) {
|
|
1462
1462
|
var parameters = _this__u8e3s4;
|
|
1463
1463
|
return new toQueryParameters$1(parameters);
|
|
1464
1464
|
}
|
|
1465
1465
|
function CIOConnectionPoint(remoteNetworkAddress, localNetworkAddress, version, uri, hostHeaderValue, method) {
|
|
1466
|
-
this.
|
|
1467
|
-
this.
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1472
|
-
this.
|
|
1466
|
+
this.tbv_1 = remoteNetworkAddress;
|
|
1467
|
+
this.ubv_1 = localNetworkAddress;
|
|
1468
|
+
this.vbv_1 = version;
|
|
1469
|
+
this.wbv_1 = uri;
|
|
1470
|
+
this.xbv_1 = hostHeaderValue;
|
|
1471
|
+
this.ybv_1 = method;
|
|
1472
|
+
this.zbv_1 = Companion_getInstance_4().p5h(this.ib3()).d5g_1;
|
|
1473
1473
|
}
|
|
1474
|
-
protoOf(CIOConnectionPoint).
|
|
1475
|
-
return this.
|
|
1474
|
+
protoOf(CIOConnectionPoint).a67 = function () {
|
|
1475
|
+
return this.vbv_1;
|
|
1476
1476
|
};
|
|
1477
|
-
protoOf(CIOConnectionPoint).
|
|
1478
|
-
return this.
|
|
1477
|
+
protoOf(CIOConnectionPoint).fb3 = function () {
|
|
1478
|
+
return this.wbv_1;
|
|
1479
1479
|
};
|
|
1480
|
-
protoOf(CIOConnectionPoint).
|
|
1481
|
-
return this.
|
|
1480
|
+
protoOf(CIOConnectionPoint).s66 = function () {
|
|
1481
|
+
return this.ybv_1;
|
|
1482
1482
|
};
|
|
1483
|
-
protoOf(CIOConnectionPoint).
|
|
1483
|
+
protoOf(CIOConnectionPoint).ib3 = function () {
|
|
1484
1484
|
return 'http';
|
|
1485
1485
|
};
|
|
1486
|
-
protoOf(CIOConnectionPoint).
|
|
1487
|
-
var tmp0_safe_receiver = this.
|
|
1486
|
+
protoOf(CIOConnectionPoint).ab2 = function () {
|
|
1487
|
+
var tmp0_safe_receiver = this.ubv_1;
|
|
1488
1488
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_hostname(tmp0_safe_receiver);
|
|
1489
1489
|
var tmp;
|
|
1490
1490
|
if (tmp1_elvis_lhs == null) {
|
|
1491
|
-
var tmp2_safe_receiver = this.
|
|
1491
|
+
var tmp2_safe_receiver = this.xbv_1;
|
|
1492
1492
|
tmp = tmp2_safe_receiver == null ? null : substringBefore(tmp2_safe_receiver, ':');
|
|
1493
1493
|
} else {
|
|
1494
1494
|
tmp = tmp1_elvis_lhs;
|
|
@@ -1496,12 +1496,12 @@
|
|
|
1496
1496
|
var tmp3_elvis_lhs = tmp;
|
|
1497
1497
|
return tmp3_elvis_lhs == null ? 'localhost' : tmp3_elvis_lhs;
|
|
1498
1498
|
};
|
|
1499
|
-
protoOf(CIOConnectionPoint).
|
|
1500
|
-
var tmp0_safe_receiver = this.
|
|
1499
|
+
protoOf(CIOConnectionPoint).q5h = function () {
|
|
1500
|
+
var tmp0_safe_receiver = this.ubv_1;
|
|
1501
1501
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_port(tmp0_safe_receiver);
|
|
1502
1502
|
var tmp;
|
|
1503
1503
|
if (tmp1_elvis_lhs == null) {
|
|
1504
|
-
var tmp2_safe_receiver = this.
|
|
1504
|
+
var tmp2_safe_receiver = this.xbv_1;
|
|
1505
1505
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : substringAfter(tmp2_safe_receiver, ':', '80');
|
|
1506
1506
|
tmp = tmp3_safe_receiver == null ? null : toInt(tmp3_safe_receiver);
|
|
1507
1507
|
} else {
|
|
@@ -1510,67 +1510,67 @@
|
|
|
1510
1510
|
var tmp4_elvis_lhs = tmp;
|
|
1511
1511
|
return tmp4_elvis_lhs == null ? 80 : tmp4_elvis_lhs;
|
|
1512
1512
|
};
|
|
1513
|
-
protoOf(CIOConnectionPoint).
|
|
1514
|
-
var tmp0_safe_receiver = this.
|
|
1513
|
+
protoOf(CIOConnectionPoint).qb3 = function () {
|
|
1514
|
+
var tmp0_safe_receiver = this.ubv_1;
|
|
1515
1515
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_port(tmp0_safe_receiver);
|
|
1516
|
-
return tmp1_elvis_lhs == null ? this.
|
|
1516
|
+
return tmp1_elvis_lhs == null ? this.zbv_1 : tmp1_elvis_lhs;
|
|
1517
1517
|
};
|
|
1518
|
-
protoOf(CIOConnectionPoint).
|
|
1519
|
-
var tmp0_safe_receiver = this.
|
|
1520
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : substringAfterLast(tmp0_safe_receiver, ':', this.
|
|
1518
|
+
protoOf(CIOConnectionPoint).sb3 = function () {
|
|
1519
|
+
var tmp0_safe_receiver = this.xbv_1;
|
|
1520
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : substringAfterLast(tmp0_safe_receiver, ':', this.zbv_1.toString());
|
|
1521
1521
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : toInt(tmp1_safe_receiver);
|
|
1522
|
-
return tmp2_elvis_lhs == null ? this.
|
|
1522
|
+
return tmp2_elvis_lhs == null ? this.qb3() : tmp2_elvis_lhs;
|
|
1523
1523
|
};
|
|
1524
|
-
protoOf(CIOConnectionPoint).
|
|
1525
|
-
var tmp0_safe_receiver = this.
|
|
1524
|
+
protoOf(CIOConnectionPoint).kb3 = function () {
|
|
1525
|
+
var tmp0_safe_receiver = this.ubv_1;
|
|
1526
1526
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_hostname(tmp0_safe_receiver);
|
|
1527
1527
|
return tmp1_elvis_lhs == null ? 'localhost' : tmp1_elvis_lhs;
|
|
1528
1528
|
};
|
|
1529
|
-
protoOf(CIOConnectionPoint).
|
|
1530
|
-
var tmp0_safe_receiver = this.
|
|
1529
|
+
protoOf(CIOConnectionPoint).mb3 = function () {
|
|
1530
|
+
var tmp0_safe_receiver = this.xbv_1;
|
|
1531
1531
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : substringBeforeLast(tmp0_safe_receiver, ':');
|
|
1532
|
-
return tmp1_elvis_lhs == null ? this.
|
|
1532
|
+
return tmp1_elvis_lhs == null ? this.kb3() : tmp1_elvis_lhs;
|
|
1533
1533
|
};
|
|
1534
|
-
protoOf(CIOConnectionPoint).
|
|
1535
|
-
var tmp0_safe_receiver = this.
|
|
1534
|
+
protoOf(CIOConnectionPoint).ob3 = function () {
|
|
1535
|
+
var tmp0_safe_receiver = this.ubv_1;
|
|
1536
1536
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_address(tmp0_safe_receiver);
|
|
1537
1537
|
return tmp1_elvis_lhs == null ? 'localhost' : tmp1_elvis_lhs;
|
|
1538
1538
|
};
|
|
1539
|
-
protoOf(CIOConnectionPoint).
|
|
1540
|
-
var tmp0_safe_receiver = this.
|
|
1539
|
+
protoOf(CIOConnectionPoint).ub3 = function () {
|
|
1540
|
+
var tmp0_safe_receiver = this.tbv_1;
|
|
1541
1541
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_hostname(tmp0_safe_receiver);
|
|
1542
1542
|
return tmp1_elvis_lhs == null ? 'unknown' : tmp1_elvis_lhs;
|
|
1543
1543
|
};
|
|
1544
|
-
protoOf(CIOConnectionPoint).
|
|
1545
|
-
var tmp0_safe_receiver = this.
|
|
1544
|
+
protoOf(CIOConnectionPoint).wb3 = function () {
|
|
1545
|
+
var tmp0_safe_receiver = this.tbv_1;
|
|
1546
1546
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_port(tmp0_safe_receiver);
|
|
1547
1547
|
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
1548
1548
|
};
|
|
1549
|
-
protoOf(CIOConnectionPoint).
|
|
1550
|
-
var tmp0_safe_receiver = this.
|
|
1549
|
+
protoOf(CIOConnectionPoint).yb3 = function () {
|
|
1550
|
+
var tmp0_safe_receiver = this.tbv_1;
|
|
1551
1551
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : get_address(tmp0_safe_receiver);
|
|
1552
1552
|
return tmp1_elvis_lhs == null ? 'unknown' : tmp1_elvis_lhs;
|
|
1553
1553
|
};
|
|
1554
1554
|
protoOf(CIOConnectionPoint).toString = function () {
|
|
1555
|
-
return 'CIOConnectionPoint(uri=' + this.
|
|
1555
|
+
return 'CIOConnectionPoint(uri=' + this.wbv_1 + ', method=' + this.ybv_1.toString() + ', version=' + this.vbv_1 + ', localAddress=' + this.ob3() + ', ' + ('localPort=' + this.qb3() + ', remoteAddress=' + this.yb3() + ', remotePort=' + this.wb3() + ')');
|
|
1556
1556
|
};
|
|
1557
1557
|
function toQueryParameters$1($parameters) {
|
|
1558
|
-
this.
|
|
1558
|
+
this.abw_1 = $parameters;
|
|
1559
1559
|
}
|
|
1560
|
-
protoOf(toQueryParameters$1).
|
|
1561
|
-
return this.
|
|
1560
|
+
protoOf(toQueryParameters$1).f4y = function () {
|
|
1561
|
+
return this.abw_1.f4y();
|
|
1562
1562
|
};
|
|
1563
|
-
protoOf(toQueryParameters$1).
|
|
1564
|
-
return this.
|
|
1563
|
+
protoOf(toQueryParameters$1).g4y = function (name) {
|
|
1564
|
+
return this.abw_1.g4y(name);
|
|
1565
1565
|
};
|
|
1566
|
-
protoOf(toQueryParameters$1).
|
|
1567
|
-
return this.
|
|
1566
|
+
protoOf(toQueryParameters$1).h4y = function () {
|
|
1567
|
+
return this.abw_1.h4y();
|
|
1568
1568
|
};
|
|
1569
|
-
protoOf(toQueryParameters$1).
|
|
1570
|
-
return this.
|
|
1569
|
+
protoOf(toQueryParameters$1).i4y = function () {
|
|
1570
|
+
return this.abw_1.i4y();
|
|
1571
1571
|
};
|
|
1572
1572
|
protoOf(toQueryParameters$1).m = function () {
|
|
1573
|
-
return this.
|
|
1573
|
+
return this.abw_1.m();
|
|
1574
1574
|
};
|
|
1575
1575
|
function sendResponseMessage($this, contentReady, $completion) {
|
|
1576
1576
|
var tmp = new $sendResponseMessageCOROUTINE$($this, contentReady, $completion);
|
|
@@ -1579,30 +1579,30 @@
|
|
|
1579
1579
|
return tmp.fa();
|
|
1580
1580
|
}
|
|
1581
1581
|
function preparedBodyChannel($this) {
|
|
1582
|
-
var chunked = $this.
|
|
1582
|
+
var chunked = $this.cbx_1.cf(HttpHeaders_getInstance().g5b_1) === 'chunked';
|
|
1583
1583
|
if (!chunked)
|
|
1584
|
-
return $this.
|
|
1585
|
-
var encoderJob = encodeChunked($this.
|
|
1586
|
-
var chunkedOutput = encoderJob.
|
|
1587
|
-
$this.
|
|
1588
|
-
$this.
|
|
1584
|
+
return $this.tbw_1;
|
|
1585
|
+
var encoderJob = encodeChunked($this.tbw_1, Dispatchers_getInstance().x29_1);
|
|
1586
|
+
var chunkedOutput = encoderJob.t4q_1;
|
|
1587
|
+
$this.abx_1 = chunkedOutput;
|
|
1588
|
+
$this.bbx_1 = encoderJob.u4q_1;
|
|
1589
1589
|
return chunkedOutput;
|
|
1590
1590
|
}
|
|
1591
1591
|
function CIOApplicationResponse$headers$1(this$0) {
|
|
1592
|
-
this.
|
|
1592
|
+
this.ebx_1 = this$0;
|
|
1593
1593
|
ResponseHeaders.call(this);
|
|
1594
1594
|
}
|
|
1595
|
-
protoOf(CIOApplicationResponse$headers$1).
|
|
1596
|
-
this.
|
|
1595
|
+
protoOf(CIOApplicationResponse$headers$1).bb5 = function (name, value) {
|
|
1596
|
+
this.ebx_1.zbw_1.s4y(name, value);
|
|
1597
1597
|
};
|
|
1598
|
-
protoOf(CIOApplicationResponse$headers$1).
|
|
1598
|
+
protoOf(CIOApplicationResponse$headers$1).ab5 = function (name) {
|
|
1599
1599
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1600
|
-
var tmp0_elvis_lhs = this.
|
|
1600
|
+
var tmp0_elvis_lhs = this.ebx_1.zbw_1.g4y(name);
|
|
1601
1601
|
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1602
1602
|
};
|
|
1603
1603
|
function CIOApplicationResponse$respondFromBytes$slambda($channel, $bytes, resultContinuation) {
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1604
|
+
this.nbx_1 = $channel;
|
|
1605
|
+
this.obx_1 = $bytes;
|
|
1606
1606
|
CoroutineImpl.call(this, resultContinuation);
|
|
1607
1607
|
}
|
|
1608
1608
|
protoOf(CIOApplicationResponse$respondFromBytes$slambda).x2q = function ($this$withContext, $completion) {
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
case 0:
|
|
1624
1624
|
this.y9_1 = 3;
|
|
1625
1625
|
this.x9_1 = 1;
|
|
1626
|
-
suspendResult = writeFully(this.
|
|
1626
|
+
suspendResult = writeFully(this.nbx_1, this.obx_1, VOID, VOID, this);
|
|
1627
1627
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1628
1628
|
return suspendResult;
|
|
1629
1629
|
}
|
|
@@ -1631,7 +1631,7 @@
|
|
|
1631
1631
|
continue $sm;
|
|
1632
1632
|
case 1:
|
|
1633
1633
|
this.x9_1 = 2;
|
|
1634
|
-
suspendResult = this.
|
|
1634
|
+
suspendResult = this.nbx_1.t4h(this);
|
|
1635
1635
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1636
1636
|
return suspendResult;
|
|
1637
1637
|
}
|
|
@@ -1654,8 +1654,8 @@
|
|
|
1654
1654
|
while (true);
|
|
1655
1655
|
};
|
|
1656
1656
|
protoOf(CIOApplicationResponse$respondFromBytes$slambda).y2q = function ($this$withContext, completion) {
|
|
1657
|
-
var i = new CIOApplicationResponse$respondFromBytes$slambda(this.
|
|
1658
|
-
i.
|
|
1657
|
+
var i = new CIOApplicationResponse$respondFromBytes$slambda(this.nbx_1, this.obx_1, completion);
|
|
1658
|
+
i.pbx_1 = $this$withContext;
|
|
1659
1659
|
return i;
|
|
1660
1660
|
};
|
|
1661
1661
|
function CIOApplicationResponse$respondFromBytes$slambda_0($channel, $bytes, resultContinuation) {
|
|
@@ -1668,7 +1668,7 @@
|
|
|
1668
1668
|
}
|
|
1669
1669
|
function $responseChannelCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1670
1670
|
CoroutineImpl.call(this, resultContinuation);
|
|
1671
|
-
this.
|
|
1671
|
+
this.ybx_1 = _this__u8e3s4;
|
|
1672
1672
|
}
|
|
1673
1673
|
protoOf($responseChannelCOROUTINE$).fa = function () {
|
|
1674
1674
|
var suspendResult = this.z9_1;
|
|
@@ -1679,14 +1679,14 @@
|
|
|
1679
1679
|
case 0:
|
|
1680
1680
|
this.y9_1 = 2;
|
|
1681
1681
|
this.x9_1 = 1;
|
|
1682
|
-
suspendResult = sendResponseMessage(this.
|
|
1682
|
+
suspendResult = sendResponseMessage(this.ybx_1, false, this);
|
|
1683
1683
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1684
1684
|
return suspendResult;
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
1687
1687
|
continue $sm;
|
|
1688
1688
|
case 1:
|
|
1689
|
-
return preparedBodyChannel(this.
|
|
1689
|
+
return preparedBodyChannel(this.ybx_1);
|
|
1690
1690
|
case 2:
|
|
1691
1691
|
throw this.aa_1;
|
|
1692
1692
|
}
|
|
@@ -1703,8 +1703,8 @@
|
|
|
1703
1703
|
};
|
|
1704
1704
|
function $respondUpgradeCOROUTINE$(_this__u8e3s4, upgrade, resultContinuation) {
|
|
1705
1705
|
CoroutineImpl.call(this, resultContinuation);
|
|
1706
|
-
this.
|
|
1707
|
-
this.
|
|
1706
|
+
this.hby_1 = _this__u8e3s4;
|
|
1707
|
+
this.iby_1 = upgrade;
|
|
1708
1708
|
}
|
|
1709
1709
|
protoOf($respondUpgradeCOROUTINE$).fa = function () {
|
|
1710
1710
|
var suspendResult = this.z9_1;
|
|
@@ -1715,7 +1715,7 @@
|
|
|
1715
1715
|
case 0:
|
|
1716
1716
|
this.y9_1 = 9;
|
|
1717
1717
|
this.x9_1 = 1;
|
|
1718
|
-
suspendResult = sendResponseMessage(this.
|
|
1718
|
+
suspendResult = sendResponseMessage(this.hby_1, false, this);
|
|
1719
1719
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1720
1720
|
return suspendResult;
|
|
1721
1721
|
}
|
|
@@ -1727,51 +1727,51 @@
|
|
|
1727
1727
|
case 2:
|
|
1728
1728
|
this.y9_1 = 7;
|
|
1729
1729
|
this.x9_1 = 3;
|
|
1730
|
-
suspendResult = this.
|
|
1730
|
+
suspendResult = this.iby_1.w5j(this.hby_1.ubw_1, this.hby_1.tbw_1, this.hby_1.vbw_1, this.hby_1.wbw_1, this);
|
|
1731
1731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1732
1732
|
return suspendResult;
|
|
1733
1733
|
}
|
|
1734
1734
|
|
|
1735
1735
|
continue $sm;
|
|
1736
1736
|
case 3:
|
|
1737
|
-
this.
|
|
1737
|
+
this.kby_1 = suspendResult;
|
|
1738
1738
|
this.x9_1 = 4;
|
|
1739
|
-
suspendResult = this.
|
|
1739
|
+
suspendResult = this.kby_1.g1x(this);
|
|
1740
1740
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1741
1741
|
return suspendResult;
|
|
1742
1742
|
}
|
|
1743
1743
|
|
|
1744
1744
|
continue $sm;
|
|
1745
1745
|
case 4:
|
|
1746
|
-
this.
|
|
1746
|
+
this.jby_1 = suspendResult;
|
|
1747
1747
|
this.y9_1 = 9;
|
|
1748
1748
|
this.x9_1 = 5;
|
|
1749
1749
|
continue $sm;
|
|
1750
1750
|
case 5:
|
|
1751
1751
|
this.y9_1 = 9;
|
|
1752
1752
|
this.x9_1 = 6;
|
|
1753
|
-
suspendResult = this.
|
|
1753
|
+
suspendResult = this.hby_1.tbw_1.t4h(this);
|
|
1754
1754
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1755
1755
|
return suspendResult;
|
|
1756
1756
|
}
|
|
1757
1757
|
|
|
1758
1758
|
continue $sm;
|
|
1759
1759
|
case 6:
|
|
1760
|
-
cancel(this.
|
|
1760
|
+
cancel(this.hby_1.ubw_1);
|
|
1761
1761
|
return Unit_instance;
|
|
1762
1762
|
case 7:
|
|
1763
1763
|
this.y9_1 = 9;
|
|
1764
|
-
this.
|
|
1764
|
+
this.lby_1 = this.aa_1;
|
|
1765
1765
|
this.x9_1 = 8;
|
|
1766
|
-
suspendResult = this.
|
|
1766
|
+
suspendResult = this.hby_1.tbw_1.t4h(this);
|
|
1767
1767
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1768
1768
|
return suspendResult;
|
|
1769
1769
|
}
|
|
1770
1770
|
|
|
1771
1771
|
continue $sm;
|
|
1772
1772
|
case 8:
|
|
1773
|
-
cancel(this.
|
|
1774
|
-
throw this.
|
|
1773
|
+
cancel(this.hby_1.ubw_1);
|
|
1774
|
+
throw this.lby_1;
|
|
1775
1775
|
case 9:
|
|
1776
1776
|
throw this.aa_1;
|
|
1777
1777
|
}
|
|
@@ -1788,8 +1788,8 @@
|
|
|
1788
1788
|
};
|
|
1789
1789
|
function $respondFromBytesCOROUTINE$(_this__u8e3s4, bytes, resultContinuation) {
|
|
1790
1790
|
CoroutineImpl.call(this, resultContinuation);
|
|
1791
|
-
this.
|
|
1792
|
-
this.
|
|
1791
|
+
this.uby_1 = _this__u8e3s4;
|
|
1792
|
+
this.vby_1 = bytes;
|
|
1793
1793
|
}
|
|
1794
1794
|
protoOf($respondFromBytesCOROUTINE$).fa = function () {
|
|
1795
1795
|
var suspendResult = this.z9_1;
|
|
@@ -1800,17 +1800,17 @@
|
|
|
1800
1800
|
case 0:
|
|
1801
1801
|
this.y9_1 = 3;
|
|
1802
1802
|
this.x9_1 = 1;
|
|
1803
|
-
suspendResult = sendResponseMessage(this.
|
|
1803
|
+
suspendResult = sendResponseMessage(this.uby_1, true, this);
|
|
1804
1804
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1805
1805
|
return suspendResult;
|
|
1806
1806
|
}
|
|
1807
1807
|
|
|
1808
1808
|
continue $sm;
|
|
1809
1809
|
case 1:
|
|
1810
|
-
this.
|
|
1810
|
+
this.wby_1 = preparedBodyChannel(this.uby_1);
|
|
1811
1811
|
this.x9_1 = 2;
|
|
1812
1812
|
var tmp_0 = Dispatchers_getInstance().x29_1;
|
|
1813
|
-
suspendResult = withContext(tmp_0, CIOApplicationResponse$respondFromBytes$slambda_0(this.
|
|
1813
|
+
suspendResult = withContext(tmp_0, CIOApplicationResponse$respondFromBytes$slambda_0(this.wby_1, this.vby_1, null), this);
|
|
1814
1814
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1815
1815
|
return suspendResult;
|
|
1816
1816
|
}
|
|
@@ -1834,8 +1834,8 @@
|
|
|
1834
1834
|
};
|
|
1835
1835
|
function $respondNoContentCOROUTINE$(_this__u8e3s4, content, resultContinuation) {
|
|
1836
1836
|
CoroutineImpl.call(this, resultContinuation);
|
|
1837
|
-
this.
|
|
1838
|
-
this.
|
|
1837
|
+
this.fbz_1 = _this__u8e3s4;
|
|
1838
|
+
this.gbz_1 = content;
|
|
1839
1839
|
}
|
|
1840
1840
|
protoOf($respondNoContentCOROUTINE$).fa = function () {
|
|
1841
1841
|
var suspendResult = this.z9_1;
|
|
@@ -1846,7 +1846,7 @@
|
|
|
1846
1846
|
case 0:
|
|
1847
1847
|
this.y9_1 = 3;
|
|
1848
1848
|
this.x9_1 = 1;
|
|
1849
|
-
suspendResult = sendResponseMessage(this.
|
|
1849
|
+
suspendResult = sendResponseMessage(this.fbz_1, true, this);
|
|
1850
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1851
1851
|
return suspendResult;
|
|
1852
1852
|
}
|
|
@@ -1854,7 +1854,7 @@
|
|
|
1854
1854
|
continue $sm;
|
|
1855
1855
|
case 1:
|
|
1856
1856
|
this.x9_1 = 2;
|
|
1857
|
-
suspendResult = this.
|
|
1857
|
+
suspendResult = this.fbz_1.tbw_1.t4h(this);
|
|
1858
1858
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1859
1859
|
return suspendResult;
|
|
1860
1860
|
}
|
|
@@ -1878,8 +1878,8 @@
|
|
|
1878
1878
|
};
|
|
1879
1879
|
function $respondOutgoingContentCOROUTINE$(_this__u8e3s4, content, resultContinuation) {
|
|
1880
1880
|
CoroutineImpl.call(this, resultContinuation);
|
|
1881
|
-
this.
|
|
1882
|
-
this.
|
|
1881
|
+
this.pbz_1 = _this__u8e3s4;
|
|
1882
|
+
this.qbz_1 = content;
|
|
1883
1883
|
}
|
|
1884
1884
|
protoOf($respondOutgoingContentCOROUTINE$).fa = function () {
|
|
1885
1885
|
var suspendResult = this.z9_1;
|
|
@@ -1889,13 +1889,13 @@
|
|
|
1889
1889
|
switch (tmp) {
|
|
1890
1890
|
case 0:
|
|
1891
1891
|
this.y9_1 = 6;
|
|
1892
|
-
var tmp_0 = this.
|
|
1892
|
+
var tmp_0 = this.qbz_1;
|
|
1893
1893
|
if (tmp_0 instanceof ProtocolUpgrade) {
|
|
1894
|
-
var tmp0_safe_receiver = this.
|
|
1894
|
+
var tmp0_safe_receiver = this.pbz_1.xbw_1;
|
|
1895
1895
|
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n24(true)) == null)
|
|
1896
1896
|
throw IllegalStateException_init_$Create$('Unable to perform upgrade as it is not requested by the client: request should have Upgrade and Connection headers filled properly');
|
|
1897
1897
|
} else {
|
|
1898
|
-
var tmp2_safe_receiver = this.
|
|
1898
|
+
var tmp2_safe_receiver = this.pbz_1.xbw_1;
|
|
1899
1899
|
if (tmp2_safe_receiver == null)
|
|
1900
1900
|
null;
|
|
1901
1901
|
else
|
|
@@ -1903,21 +1903,21 @@
|
|
|
1903
1903
|
}
|
|
1904
1904
|
|
|
1905
1905
|
this.x9_1 = 1;
|
|
1906
|
-
suspendResult = protoOf(BaseApplicationResponse).
|
|
1906
|
+
suspendResult = protoOf(BaseApplicationResponse).zaq.call(this.pbz_1, this.qbz_1, this);
|
|
1907
1907
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1908
1908
|
return suspendResult;
|
|
1909
1909
|
}
|
|
1910
1910
|
|
|
1911
1911
|
continue $sm;
|
|
1912
1912
|
case 1:
|
|
1913
|
-
this.
|
|
1914
|
-
if (this.
|
|
1915
|
-
this.
|
|
1913
|
+
this.rbz_1 = this.pbz_1.abx_1;
|
|
1914
|
+
if (this.rbz_1 == null) {
|
|
1915
|
+
this.sbz_1 = null;
|
|
1916
1916
|
this.x9_1 = 3;
|
|
1917
1917
|
continue $sm;
|
|
1918
1918
|
} else {
|
|
1919
1919
|
this.x9_1 = 2;
|
|
1920
|
-
suspendResult = this.
|
|
1920
|
+
suspendResult = this.rbz_1.t4h(this);
|
|
1921
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
1922
|
return suspendResult;
|
|
1923
1923
|
}
|
|
@@ -1926,18 +1926,18 @@
|
|
|
1926
1926
|
|
|
1927
1927
|
case 2:
|
|
1928
1928
|
var tmp_1 = this;
|
|
1929
|
-
tmp_1.
|
|
1929
|
+
tmp_1.sbz_1 = Unit_instance;
|
|
1930
1930
|
this.x9_1 = 3;
|
|
1931
1931
|
continue $sm;
|
|
1932
1932
|
case 3:
|
|
1933
|
-
this.
|
|
1934
|
-
if (this.
|
|
1935
|
-
this.
|
|
1933
|
+
this.tbz_1 = this.pbz_1.bbx_1;
|
|
1934
|
+
if (this.tbz_1 == null) {
|
|
1935
|
+
this.ubz_1 = null;
|
|
1936
1936
|
this.x9_1 = 5;
|
|
1937
1937
|
continue $sm;
|
|
1938
1938
|
} else {
|
|
1939
1939
|
this.x9_1 = 4;
|
|
1940
|
-
suspendResult = this.
|
|
1940
|
+
suspendResult = this.tbz_1.g1x(this);
|
|
1941
1941
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1942
1942
|
return suspendResult;
|
|
1943
1943
|
}
|
|
@@ -1946,7 +1946,7 @@
|
|
|
1946
1946
|
|
|
1947
1947
|
case 4:
|
|
1948
1948
|
var tmp_2 = this;
|
|
1949
|
-
tmp_2.
|
|
1949
|
+
tmp_2.ubz_1 = Unit_instance;
|
|
1950
1950
|
this.x9_1 = 5;
|
|
1951
1951
|
continue $sm;
|
|
1952
1952
|
case 5:
|
|
@@ -1967,8 +1967,8 @@
|
|
|
1967
1967
|
};
|
|
1968
1968
|
function $sendResponseMessageCOROUTINE$(_this__u8e3s4, contentReady, resultContinuation) {
|
|
1969
1969
|
CoroutineImpl.call(this, resultContinuation);
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1970
|
+
this.jbw_1 = _this__u8e3s4;
|
|
1971
|
+
this.kbw_1 = contentReady;
|
|
1972
1972
|
}
|
|
1973
1973
|
protoOf($sendResponseMessageCOROUTINE$).fa = function () {
|
|
1974
1974
|
var suspendResult = this.z9_1;
|
|
@@ -1978,34 +1978,34 @@
|
|
|
1978
1978
|
switch (tmp) {
|
|
1979
1979
|
case 0:
|
|
1980
1980
|
this.y9_1 = 7;
|
|
1981
|
-
this.
|
|
1981
|
+
this.lbw_1 = new RequestResponseBuilder();
|
|
1982
1982
|
this.x9_1 = 1;
|
|
1983
1983
|
continue $sm;
|
|
1984
1984
|
case 1:
|
|
1985
1985
|
this.y9_1 = 6;
|
|
1986
|
-
this.
|
|
1987
|
-
var _iterator__ex2g4s = this.
|
|
1986
|
+
this.lbw_1.s5y('HTTP/1.1', this.jbw_1.ybw_1.m5f_1, this.jbw_1.ybw_1.n5f_1);
|
|
1987
|
+
var _iterator__ex2g4s = this.jbw_1.zbw_1.h4y().p();
|
|
1988
1988
|
while (_iterator__ex2g4s.q()) {
|
|
1989
1989
|
var name = _iterator__ex2g4s.r();
|
|
1990
|
-
var _iterator__ex2g4s_0 = ensureNotNull(this.
|
|
1990
|
+
var _iterator__ex2g4s_0 = ensureNotNull(this.jbw_1.zbw_1.g4y(name)).p();
|
|
1991
1991
|
while (_iterator__ex2g4s_0.q()) {
|
|
1992
1992
|
var value = _iterator__ex2g4s_0.r();
|
|
1993
|
-
this.
|
|
1993
|
+
this.lbw_1.t5y(name, value);
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
|
-
this.
|
|
1997
|
+
this.lbw_1.u5y();
|
|
1998
1998
|
this.x9_1 = 2;
|
|
1999
|
-
suspendResult = writePacket(this.
|
|
1999
|
+
suspendResult = writePacket(this.jbw_1.tbw_1, this.lbw_1.t3n(), this);
|
|
2000
2000
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2001
2001
|
return suspendResult;
|
|
2002
2002
|
}
|
|
2003
2003
|
|
|
2004
2004
|
continue $sm;
|
|
2005
2005
|
case 2:
|
|
2006
|
-
if (!this.
|
|
2006
|
+
if (!this.kbw_1) {
|
|
2007
2007
|
this.x9_1 = 3;
|
|
2008
|
-
suspendResult = this.
|
|
2008
|
+
suspendResult = this.jbw_1.tbw_1.h4h(this);
|
|
2009
2009
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2010
2010
|
return suspendResult;
|
|
2011
2011
|
}
|
|
@@ -2019,18 +2019,18 @@
|
|
|
2019
2019
|
this.x9_1 = 4;
|
|
2020
2020
|
continue $sm;
|
|
2021
2021
|
case 4:
|
|
2022
|
-
this.
|
|
2022
|
+
this.mbw_1 = Unit_instance;
|
|
2023
2023
|
this.y9_1 = 7;
|
|
2024
2024
|
this.x9_1 = 5;
|
|
2025
2025
|
continue $sm;
|
|
2026
2026
|
case 5:
|
|
2027
2027
|
this.y9_1 = 7;
|
|
2028
|
-
this.
|
|
2028
|
+
this.lbw_1.m1h();
|
|
2029
2029
|
return Unit_instance;
|
|
2030
2030
|
case 6:
|
|
2031
2031
|
this.y9_1 = 7;
|
|
2032
2032
|
var t = this.aa_1;
|
|
2033
|
-
this.
|
|
2033
|
+
this.lbw_1.m1h();
|
|
2034
2034
|
throw t;
|
|
2035
2035
|
case 7:
|
|
2036
2036
|
throw this.aa_1;
|
|
@@ -2048,82 +2048,82 @@
|
|
|
2048
2048
|
};
|
|
2049
2049
|
function CIOApplicationResponse(call, output, input, engineDispatcher, userDispatcher, upgraded) {
|
|
2050
2050
|
BaseApplicationResponse.call(this, call);
|
|
2051
|
-
this.
|
|
2052
|
-
this.
|
|
2053
|
-
this.
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2058
|
-
this.
|
|
2059
|
-
this.
|
|
2051
|
+
this.tbw_1 = output;
|
|
2052
|
+
this.ubw_1 = input;
|
|
2053
|
+
this.vbw_1 = engineDispatcher;
|
|
2054
|
+
this.wbw_1 = userDispatcher;
|
|
2055
|
+
this.xbw_1 = upgraded;
|
|
2056
|
+
this.ybw_1 = Companion_getInstance_0().m5d_1;
|
|
2057
|
+
this.zbw_1 = new HeadersBuilder();
|
|
2058
|
+
this.abx_1 = null;
|
|
2059
|
+
this.bbx_1 = null;
|
|
2060
2060
|
var tmp = this;
|
|
2061
|
-
tmp.
|
|
2061
|
+
tmp.cbx_1 = new CIOApplicationResponse$headers$1(this);
|
|
2062
2062
|
}
|
|
2063
|
-
protoOf(CIOApplicationResponse).
|
|
2064
|
-
return this.
|
|
2063
|
+
protoOf(CIOApplicationResponse).p5c = function () {
|
|
2064
|
+
return this.cbx_1;
|
|
2065
2065
|
};
|
|
2066
|
-
protoOf(CIOApplicationResponse).
|
|
2066
|
+
protoOf(CIOApplicationResponse).aat = function ($completion) {
|
|
2067
2067
|
var tmp = new $responseChannelCOROUTINE$(this, $completion);
|
|
2068
2068
|
tmp.z9_1 = Unit_instance;
|
|
2069
2069
|
tmp.aa_1 = null;
|
|
2070
2070
|
return tmp.fa();
|
|
2071
2071
|
};
|
|
2072
|
-
protoOf(CIOApplicationResponse).
|
|
2072
|
+
protoOf(CIOApplicationResponse).gau = function (upgrade, $completion) {
|
|
2073
2073
|
var tmp = new $respondUpgradeCOROUTINE$(this, upgrade, $completion);
|
|
2074
2074
|
tmp.z9_1 = Unit_instance;
|
|
2075
2075
|
tmp.aa_1 = null;
|
|
2076
2076
|
return tmp.fa();
|
|
2077
2077
|
};
|
|
2078
|
-
protoOf(CIOApplicationResponse).
|
|
2078
|
+
protoOf(CIOApplicationResponse).fau = function (bytes, $completion) {
|
|
2079
2079
|
var tmp = new $respondFromBytesCOROUTINE$(this, bytes, $completion);
|
|
2080
2080
|
tmp.z9_1 = Unit_instance;
|
|
2081
2081
|
tmp.aa_1 = null;
|
|
2082
2082
|
return tmp.fa();
|
|
2083
2083
|
};
|
|
2084
|
-
protoOf(CIOApplicationResponse).
|
|
2084
|
+
protoOf(CIOApplicationResponse).dau = function (content, $completion) {
|
|
2085
2085
|
var tmp = new $respondNoContentCOROUTINE$(this, content, $completion);
|
|
2086
2086
|
tmp.z9_1 = Unit_instance;
|
|
2087
2087
|
tmp.aa_1 = null;
|
|
2088
2088
|
return tmp.fa();
|
|
2089
2089
|
};
|
|
2090
|
-
protoOf(CIOApplicationResponse).
|
|
2090
|
+
protoOf(CIOApplicationResponse).zaq = function (content, $completion) {
|
|
2091
2091
|
var tmp = new $respondOutgoingContentCOROUTINE$(this, content, $completion);
|
|
2092
2092
|
tmp.z9_1 = Unit_instance;
|
|
2093
2093
|
tmp.aa_1 = null;
|
|
2094
2094
|
return tmp.fa();
|
|
2095
2095
|
};
|
|
2096
|
-
protoOf(CIOApplicationResponse).
|
|
2097
|
-
this.
|
|
2096
|
+
protoOf(CIOApplicationResponse).sav = function (statusCode) {
|
|
2097
|
+
this.ybw_1 = statusCode;
|
|
2098
2098
|
};
|
|
2099
2099
|
function HttpServer(rootServerJob, acceptJob, serverSocket) {
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2102
|
-
this.
|
|
2100
|
+
this.ubu_1 = rootServerJob;
|
|
2101
|
+
this.vbu_1 = acceptJob;
|
|
2102
|
+
this.wbu_1 = serverSocket;
|
|
2103
2103
|
}
|
|
2104
2104
|
function UnixSocketServerSettings(socketPath, connectionIdleTimeoutSeconds) {
|
|
2105
2105
|
connectionIdleTimeoutSeconds = connectionIdleTimeoutSeconds === VOID ? new Long(45, 0) : connectionIdleTimeoutSeconds;
|
|
2106
|
-
this.
|
|
2107
|
-
this.
|
|
2106
|
+
this.vbz_1 = socketPath;
|
|
2107
|
+
this.wbz_1 = connectionIdleTimeoutSeconds;
|
|
2108
2108
|
}
|
|
2109
2109
|
function HttpServerSettings(host, port, connectionIdleTimeoutSeconds, reuseAddress) {
|
|
2110
2110
|
host = host === VOID ? '0.0.0.0' : host;
|
|
2111
2111
|
port = port === VOID ? 8080 : port;
|
|
2112
2112
|
connectionIdleTimeoutSeconds = connectionIdleTimeoutSeconds === VOID ? new Long(45, 0) : connectionIdleTimeoutSeconds;
|
|
2113
2113
|
reuseAddress = reuseAddress === VOID ? false : reuseAddress;
|
|
2114
|
-
this.
|
|
2115
|
-
this.
|
|
2116
|
-
this.
|
|
2117
|
-
this.
|
|
2114
|
+
this.xbz_1 = host;
|
|
2115
|
+
this.ybz_1 = port;
|
|
2116
|
+
this.zbz_1 = connectionIdleTimeoutSeconds;
|
|
2117
|
+
this.ac0_1 = reuseAddress;
|
|
2118
2118
|
}
|
|
2119
2119
|
protoOf(HttpServerSettings).toString = function () {
|
|
2120
|
-
return 'HttpServerSettings(host=' + this.
|
|
2120
|
+
return 'HttpServerSettings(host=' + this.xbz_1 + ', port=' + this.ybz_1 + ', connectionIdleTimeoutSeconds=' + this.zbz_1.toString() + ', reuseAddress=' + this.ac0_1 + ')';
|
|
2121
2121
|
};
|
|
2122
2122
|
protoOf(HttpServerSettings).hashCode = function () {
|
|
2123
|
-
var result = getStringHashCode(this.
|
|
2124
|
-
result = imul(result, 31) + this.
|
|
2125
|
-
result = imul(result, 31) + this.
|
|
2126
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2123
|
+
var result = getStringHashCode(this.xbz_1);
|
|
2124
|
+
result = imul(result, 31) + this.ybz_1 | 0;
|
|
2125
|
+
result = imul(result, 31) + this.zbz_1.hashCode() | 0;
|
|
2126
|
+
result = imul(result, 31) + getBooleanHashCode(this.ac0_1) | 0;
|
|
2127
2127
|
return result;
|
|
2128
2128
|
};
|
|
2129
2129
|
protoOf(HttpServerSettings).equals = function (other) {
|
|
@@ -2132,13 +2132,13 @@
|
|
|
2132
2132
|
if (!(other instanceof HttpServerSettings))
|
|
2133
2133
|
return false;
|
|
2134
2134
|
var tmp0_other_with_cast = other instanceof HttpServerSettings ? other : THROW_CCE();
|
|
2135
|
-
if (!(this.
|
|
2135
|
+
if (!(this.xbz_1 === tmp0_other_with_cast.xbz_1))
|
|
2136
2136
|
return false;
|
|
2137
|
-
if (!(this.
|
|
2137
|
+
if (!(this.ybz_1 === tmp0_other_with_cast.ybz_1))
|
|
2138
2138
|
return false;
|
|
2139
|
-
if (!this.
|
|
2139
|
+
if (!this.zbz_1.equals(tmp0_other_with_cast.zbz_1))
|
|
2140
2140
|
return false;
|
|
2141
|
-
if (!(this.
|
|
2141
|
+
if (!(this.ac0_1 === tmp0_other_with_cast.ac0_1))
|
|
2142
2142
|
return false;
|
|
2143
2143
|
return true;
|
|
2144
2144
|
};
|
|
@@ -2183,7 +2183,7 @@
|
|
|
2183
2183
|
var selector = SelectorManager(_this__u8e3s4.z1v());
|
|
2184
2184
|
Companion_getInstance_5();
|
|
2185
2185
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
2186
|
-
var this_0 = settings.
|
|
2186
|
+
var this_0 = settings.zbz_1;
|
|
2187
2187
|
var timeout = toDuration(this_0, DurationUnit_SECONDS_getInstance());
|
|
2188
2188
|
var rootConnectionJob = SupervisorJob(serverJob);
|
|
2189
2189
|
var tmp_1 = serverJob.am(new CoroutineName('accept-' + settings.toString()));
|
|
@@ -2193,7 +2193,7 @@
|
|
|
2193
2193
|
return new HttpServer(serverJob, acceptJob, socket);
|
|
2194
2194
|
}
|
|
2195
2195
|
function httpServer$slambda($serverLatch, resultContinuation) {
|
|
2196
|
-
this.
|
|
2196
|
+
this.jc0_1 = $serverLatch;
|
|
2197
2197
|
CoroutineImpl.call(this, resultContinuation);
|
|
2198
2198
|
}
|
|
2199
2199
|
protoOf(httpServer$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -2214,7 +2214,7 @@
|
|
|
2214
2214
|
case 0:
|
|
2215
2215
|
this.y9_1 = 2;
|
|
2216
2216
|
this.x9_1 = 1;
|
|
2217
|
-
suspendResult = this.
|
|
2217
|
+
suspendResult = this.jc0_1.g1x(this);
|
|
2218
2218
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2219
2219
|
return suspendResult;
|
|
2220
2220
|
}
|
|
@@ -2237,8 +2237,8 @@
|
|
|
2237
2237
|
while (true);
|
|
2238
2238
|
};
|
|
2239
2239
|
protoOf(httpServer$slambda).y2q = function ($this$launch, completion) {
|
|
2240
|
-
var i = new httpServer$slambda(this.
|
|
2241
|
-
i.
|
|
2240
|
+
var i = new httpServer$slambda(this.jc0_1, completion);
|
|
2241
|
+
i.kc0_1 = $this$launch;
|
|
2242
2242
|
return i;
|
|
2243
2243
|
};
|
|
2244
2244
|
function httpServer$slambda_0($serverLatch, resultContinuation) {
|
|
@@ -2251,7 +2251,7 @@
|
|
|
2251
2251
|
}
|
|
2252
2252
|
function httpServer$slambda$lambda($settings) {
|
|
2253
2253
|
return function ($this$bind) {
|
|
2254
|
-
$this$bind.
|
|
2254
|
+
$this$bind.ibh_1 = $settings.ac0_1;
|
|
2255
2255
|
return Unit_instance;
|
|
2256
2256
|
};
|
|
2257
2257
|
}
|
|
@@ -2262,12 +2262,12 @@
|
|
|
2262
2262
|
};
|
|
2263
2263
|
}
|
|
2264
2264
|
function httpServer$slambda_1($selector, $settings, $socket, $rootConnectionJob, $timeout, $handler, resultContinuation) {
|
|
2265
|
-
this.
|
|
2266
|
-
this.
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2269
|
-
this.
|
|
2270
|
-
this.
|
|
2265
|
+
this.tc0_1 = $selector;
|
|
2266
|
+
this.uc0_1 = $settings;
|
|
2267
|
+
this.vc0_1 = $socket;
|
|
2268
|
+
this.wc0_1 = $rootConnectionJob;
|
|
2269
|
+
this.xc0_1 = $timeout;
|
|
2270
|
+
this.yc0_1 = $handler;
|
|
2271
2271
|
CoroutineImpl.call(this, resultContinuation);
|
|
2272
2272
|
}
|
|
2273
2273
|
protoOf(httpServer$slambda_1).x2q = function ($this$launch, $completion) {
|
|
@@ -2288,22 +2288,22 @@
|
|
|
2288
2288
|
case 0:
|
|
2289
2289
|
this.y9_1 = 23;
|
|
2290
2290
|
this.x9_1 = 1;
|
|
2291
|
-
var tmp_0 = aSocket(this.
|
|
2292
|
-
suspendResult = tmp_0.
|
|
2291
|
+
var tmp_0 = aSocket(this.tc0_1).fbh();
|
|
2292
|
+
suspendResult = tmp_0.nbj(this.uc0_1.xbz_1, this.uc0_1.ybz_1, httpServer$slambda$lambda(this.uc0_1), this);
|
|
2293
2293
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2294
2294
|
return suspendResult;
|
|
2295
2295
|
}
|
|
2296
2296
|
|
|
2297
2297
|
continue $sm;
|
|
2298
2298
|
case 1:
|
|
2299
|
-
this.
|
|
2299
|
+
this.ac1_1 = suspendResult;
|
|
2300
2300
|
var tmp_1 = this;
|
|
2301
|
-
tmp_1.
|
|
2301
|
+
tmp_1.bc1_1 = this.ac1_1;
|
|
2302
2302
|
this.x9_1 = 2;
|
|
2303
2303
|
continue $sm;
|
|
2304
2304
|
case 2:
|
|
2305
|
-
this.
|
|
2306
|
-
this.
|
|
2305
|
+
this.dc1_1 = this.bc1_1;
|
|
2306
|
+
this.ec1_1 = null;
|
|
2307
2307
|
this.x9_1 = 3;
|
|
2308
2308
|
continue $sm;
|
|
2309
2309
|
case 3:
|
|
@@ -2313,13 +2313,13 @@
|
|
|
2313
2313
|
this.y9_1 = 20;
|
|
2314
2314
|
this.y9_1 = 19;
|
|
2315
2315
|
var tmp_2 = this;
|
|
2316
|
-
tmp_2.
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2316
|
+
tmp_2.gc1_1 = this.dc1_1;
|
|
2317
|
+
this.hc1_1 = this.gc1_1;
|
|
2318
|
+
this.vc0_1.n24(this.hc1_1);
|
|
2319
2319
|
var tmp_3 = this;
|
|
2320
|
-
var tmp0_elvis_lhs = this.
|
|
2321
|
-
tmp_3.
|
|
2322
|
-
this.
|
|
2320
|
+
var tmp0_elvis_lhs = this.zc0_1.z1v().ka(Key_instance);
|
|
2321
|
+
tmp_3.ic1_1 = tmp0_elvis_lhs == null ? DefaultUncaughtExceptionHandler_init_$Create$(get_LOGGER()) : tmp0_elvis_lhs;
|
|
2322
|
+
this.jc1_1 = CoroutineScope_0(this.zc0_1.z1v().am(this.wc0_1).am(this.ic1_1).am(new CoroutineName('request')));
|
|
2323
2323
|
this.x9_1 = 5;
|
|
2324
2324
|
continue $sm;
|
|
2325
2325
|
case 5:
|
|
@@ -2335,14 +2335,14 @@
|
|
|
2335
2335
|
|
|
2336
2336
|
this.y9_1 = 8;
|
|
2337
2337
|
this.x9_1 = 7;
|
|
2338
|
-
suspendResult = this.
|
|
2338
|
+
suspendResult = this.hc1_1.gbk(this);
|
|
2339
2339
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2340
2340
|
return suspendResult;
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
2343
|
continue $sm;
|
|
2344
2344
|
case 7:
|
|
2345
|
-
this.
|
|
2345
|
+
this.lc1_1 = suspendResult;
|
|
2346
2346
|
this.y9_1 = 11;
|
|
2347
2347
|
this.x9_1 = 9;
|
|
2348
2348
|
continue $sm;
|
|
@@ -2350,8 +2350,8 @@
|
|
|
2350
2350
|
this.y9_1 = 11;
|
|
2351
2351
|
var tmp_4 = this.aa_1;
|
|
2352
2352
|
if (tmp_4 instanceof IOException) {
|
|
2353
|
-
this.
|
|
2354
|
-
get_LOGGER().
|
|
2353
|
+
this.mc1_1 = this.aa_1;
|
|
2354
|
+
get_LOGGER().n55('Failed to accept connection', this.mc1_1);
|
|
2355
2355
|
this.x9_1 = 6;
|
|
2356
2356
|
var tmp_5 = this;
|
|
2357
2357
|
continue $sm;
|
|
@@ -2361,25 +2361,25 @@
|
|
|
2361
2361
|
|
|
2362
2362
|
case 9:
|
|
2363
2363
|
this.y9_1 = 11;
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2366
|
-
this.
|
|
2367
|
-
this.
|
|
2364
|
+
this.nc1_1 = this.lc1_1;
|
|
2365
|
+
this.oc1_1 = new ServerIncomingConnection(openReadChannel(this.nc1_1), openWriteChannel(this.nc1_1), toNetworkAddress(this.nc1_1.yb3()), toNetworkAddress(this.nc1_1.ob3()));
|
|
2366
|
+
this.pc1_1 = startServerConnectionPipeline(this.jc1_1, this.oc1_1, this.xc0_1, this.yc0_1);
|
|
2367
|
+
this.pc1_1.c1x(httpServer$slambda$lambda_0(this.nc1_1));
|
|
2368
2368
|
this.x9_1 = 6;
|
|
2369
2369
|
continue $sm;
|
|
2370
2370
|
case 10:
|
|
2371
|
-
this.
|
|
2371
|
+
this.kc1_1 = Unit_instance;
|
|
2372
2372
|
this.x9_1 = 15;
|
|
2373
2373
|
continue $sm;
|
|
2374
2374
|
case 11:
|
|
2375
2375
|
this.y9_1 = 12;
|
|
2376
2376
|
var tmp_6 = this.aa_1;
|
|
2377
2377
|
if (tmp_6 instanceof ClosedChannelException) {
|
|
2378
|
-
this.
|
|
2378
|
+
this.qc1_1 = this.aa_1;
|
|
2379
2379
|
var tmp_7 = this;
|
|
2380
|
-
get_LOGGER().
|
|
2381
|
-
cancel_0(this.
|
|
2382
|
-
tmp_7.
|
|
2380
|
+
get_LOGGER().n55('Server socket closed', this.qc1_1);
|
|
2381
|
+
cancel_0(this.zc0_1.z1v());
|
|
2382
|
+
tmp_7.kc1_1 = Unit_instance;
|
|
2383
2383
|
this.x9_1 = 15;
|
|
2384
2384
|
continue $sm;
|
|
2385
2385
|
} else {
|
|
@@ -2388,11 +2388,11 @@
|
|
|
2388
2388
|
|
|
2389
2389
|
case 12:
|
|
2390
2390
|
this.y9_1 = 19;
|
|
2391
|
-
this.
|
|
2392
|
-
this.
|
|
2393
|
-
this.
|
|
2391
|
+
this.rc1_1 = this.aa_1;
|
|
2392
|
+
this.hc1_1.u4();
|
|
2393
|
+
this.wc0_1.y24();
|
|
2394
2394
|
this.x9_1 = 13;
|
|
2395
|
-
suspendResult = this.
|
|
2395
|
+
suspendResult = this.wc0_1.g1x(this);
|
|
2396
2396
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2397
2397
|
return suspendResult;
|
|
2398
2398
|
}
|
|
@@ -2400,20 +2400,20 @@
|
|
|
2400
2400
|
continue $sm;
|
|
2401
2401
|
case 13:
|
|
2402
2402
|
this.x9_1 = 14;
|
|
2403
|
-
suspendResult = awaitClosed(this.
|
|
2403
|
+
suspendResult = awaitClosed(this.hc1_1, this);
|
|
2404
2404
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2405
2405
|
return suspendResult;
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
2408
|
continue $sm;
|
|
2409
2409
|
case 14:
|
|
2410
|
-
throw this.
|
|
2410
|
+
throw this.rc1_1;
|
|
2411
2411
|
case 15:
|
|
2412
2412
|
this.y9_1 = 19;
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2413
|
+
this.hc1_1.u4();
|
|
2414
|
+
this.wc0_1.y24();
|
|
2415
2415
|
this.x9_1 = 16;
|
|
2416
|
-
suspendResult = this.
|
|
2416
|
+
suspendResult = this.wc0_1.g1x(this);
|
|
2417
2417
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2418
2418
|
return suspendResult;
|
|
2419
2419
|
}
|
|
@@ -2421,7 +2421,7 @@
|
|
|
2421
2421
|
continue $sm;
|
|
2422
2422
|
case 16:
|
|
2423
2423
|
this.x9_1 = 17;
|
|
2424
|
-
suspendResult = awaitClosed(this.
|
|
2424
|
+
suspendResult = awaitClosed(this.hc1_1, this);
|
|
2425
2425
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2426
2426
|
return suspendResult;
|
|
2427
2427
|
}
|
|
@@ -2429,7 +2429,7 @@
|
|
|
2429
2429
|
continue $sm;
|
|
2430
2430
|
case 17:
|
|
2431
2431
|
var tmp_8 = this;
|
|
2432
|
-
tmp_8.
|
|
2432
|
+
tmp_8.fc1_1 = Unit_instance;
|
|
2433
2433
|
this.y9_1 = 23;
|
|
2434
2434
|
this.x9_1 = 18;
|
|
2435
2435
|
var tmp_9 = this;
|
|
@@ -2437,8 +2437,8 @@
|
|
|
2437
2437
|
case 18:
|
|
2438
2438
|
this.y9_1 = 23;
|
|
2439
2439
|
var tmp_10 = this;
|
|
2440
|
-
closeFinally(this.
|
|
2441
|
-
tmp_10.
|
|
2440
|
+
closeFinally(this.dc1_1, this.ec1_1);
|
|
2441
|
+
tmp_10.cc1_1 = Unit_instance;
|
|
2442
2442
|
this.x9_1 = 22;
|
|
2443
2443
|
continue $sm;
|
|
2444
2444
|
case 19:
|
|
@@ -2447,7 +2447,7 @@
|
|
|
2447
2447
|
if (tmp_11 instanceof Error) {
|
|
2448
2448
|
var e = this.aa_1;
|
|
2449
2449
|
var tmp_12 = this;
|
|
2450
|
-
this.
|
|
2450
|
+
this.ec1_1 = e;
|
|
2451
2451
|
throw e;
|
|
2452
2452
|
} else {
|
|
2453
2453
|
throw this.aa_1;
|
|
@@ -2456,11 +2456,11 @@
|
|
|
2456
2456
|
case 20:
|
|
2457
2457
|
this.y9_1 = 23;
|
|
2458
2458
|
var t = this.aa_1;
|
|
2459
|
-
closeFinally(this.
|
|
2459
|
+
closeFinally(this.dc1_1, this.ec1_1);
|
|
2460
2460
|
throw t;
|
|
2461
2461
|
case 21:
|
|
2462
2462
|
this.y9_1 = 23;
|
|
2463
|
-
closeFinally(this.
|
|
2463
|
+
closeFinally(this.dc1_1, this.ec1_1);
|
|
2464
2464
|
if (false) {
|
|
2465
2465
|
this.x9_1 = 2;
|
|
2466
2466
|
continue $sm;
|
|
@@ -2485,8 +2485,8 @@
|
|
|
2485
2485
|
while (true);
|
|
2486
2486
|
};
|
|
2487
2487
|
protoOf(httpServer$slambda_1).y2q = function ($this$launch, completion) {
|
|
2488
|
-
var i = new httpServer$slambda_1(this.
|
|
2489
|
-
i.
|
|
2488
|
+
var i = new httpServer$slambda_1(this.tc0_1, this.uc0_1, this.vc0_1, this.wc0_1, this.xc0_1, this.yc0_1, completion);
|
|
2489
|
+
i.zc0_1 = $this$launch;
|
|
2490
2490
|
return i;
|
|
2491
2491
|
};
|
|
2492
2492
|
function httpServer$slambda_2($selector, $settings, $socket, $rootConnectionJob, $timeout, $handler, resultContinuation) {
|
|
@@ -2523,10 +2523,10 @@
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
function ServerIncomingConnection(input, output, remoteAddress, localAddress) {
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2528
|
-
this.
|
|
2529
|
-
this.
|
|
2526
|
+
this.sc1_1 = input;
|
|
2527
|
+
this.tc1_1 = output;
|
|
2528
|
+
this.uc1_1 = remoteAddress;
|
|
2529
|
+
this.vc1_1 = localAddress;
|
|
2530
2530
|
}
|
|
2531
2531
|
function get_LOGGER_0() {
|
|
2532
2532
|
_init_properties_ServerPipeline_kt__t0cag5();
|
|
@@ -2557,12 +2557,12 @@
|
|
|
2557
2557
|
}
|
|
2558
2558
|
function isLastHttpRequest(version, connectionOptions) {
|
|
2559
2559
|
_init_properties_ServerPipeline_kt__t0cag5();
|
|
2560
|
-
return connectionOptions == null && version.equals(Companion_getInstance().
|
|
2560
|
+
return connectionOptions == null && version.equals(Companion_getInstance().c5d_1) ? true : connectionOptions == null ? !version.equals(Companion_getInstance().b5d_1) : connectionOptions.e5q_1 ? false : connectionOptions.d5q_1 ? true : false;
|
|
2561
2561
|
}
|
|
2562
2562
|
function startServerConnectionPipeline$slambda$slambda($actorChannel, $timeout, $connection, resultContinuation) {
|
|
2563
|
-
this.
|
|
2564
|
-
this.
|
|
2565
|
-
this.
|
|
2563
|
+
this.cc3_1 = $actorChannel;
|
|
2564
|
+
this.dc3_1 = $timeout;
|
|
2565
|
+
this.ec3_1 = $connection;
|
|
2566
2566
|
CoroutineImpl.call(this, resultContinuation);
|
|
2567
2567
|
}
|
|
2568
2568
|
protoOf(startServerConnectionPipeline$slambda$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -2588,14 +2588,14 @@
|
|
|
2588
2588
|
this.y9_1 = 4;
|
|
2589
2589
|
this.y9_1 = 3;
|
|
2590
2590
|
this.x9_1 = 2;
|
|
2591
|
-
suspendResult = pipelineWriterLoop(this.
|
|
2591
|
+
suspendResult = pipelineWriterLoop(this.cc3_1, this.dc3_1, this.ec3_1, this);
|
|
2592
2592
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2593
2593
|
return suspendResult;
|
|
2594
2594
|
}
|
|
2595
2595
|
|
|
2596
2596
|
continue $sm;
|
|
2597
2597
|
case 2:
|
|
2598
|
-
this.
|
|
2598
|
+
this.gc3_1 = suspendResult;
|
|
2599
2599
|
this.y9_1 = 5;
|
|
2600
2600
|
this.x9_1 = 6;
|
|
2601
2601
|
continue $sm;
|
|
@@ -2605,8 +2605,8 @@
|
|
|
2605
2605
|
if (tmp_0 instanceof Error) {
|
|
2606
2606
|
var cause = this.aa_1;
|
|
2607
2607
|
var tmp_1 = this;
|
|
2608
|
-
close(this.
|
|
2609
|
-
tmp_1.
|
|
2608
|
+
close(this.ec3_1.tc1_1, cause);
|
|
2609
|
+
tmp_1.gc3_1 = Unit_instance;
|
|
2610
2610
|
this.y9_1 = 5;
|
|
2611
2611
|
this.x9_1 = 6;
|
|
2612
2612
|
continue $sm;
|
|
@@ -2617,13 +2617,13 @@
|
|
|
2617
2617
|
case 4:
|
|
2618
2618
|
this.y9_1 = 5;
|
|
2619
2619
|
var t = this.aa_1;
|
|
2620
|
-
close_0(this.
|
|
2620
|
+
close_0(this.ec3_1.tc1_1);
|
|
2621
2621
|
throw t;
|
|
2622
2622
|
case 5:
|
|
2623
2623
|
throw this.aa_1;
|
|
2624
2624
|
case 6:
|
|
2625
2625
|
this.y9_1 = 5;
|
|
2626
|
-
close_0(this.
|
|
2626
|
+
close_0(this.ec3_1.tc1_1);
|
|
2627
2627
|
return Unit_instance;
|
|
2628
2628
|
}
|
|
2629
2629
|
} catch ($p) {
|
|
@@ -2638,8 +2638,8 @@
|
|
|
2638
2638
|
while (true);
|
|
2639
2639
|
};
|
|
2640
2640
|
protoOf(startServerConnectionPipeline$slambda$slambda).y2q = function ($this$launch, completion) {
|
|
2641
|
-
var i = new startServerConnectionPipeline$slambda$slambda(this.
|
|
2642
|
-
i.
|
|
2641
|
+
var i = new startServerConnectionPipeline$slambda$slambda(this.cc3_1, this.dc3_1, this.ec3_1, completion);
|
|
2642
|
+
i.fc3_1 = $this$launch;
|
|
2643
2643
|
return i;
|
|
2644
2644
|
};
|
|
2645
2645
|
function startServerConnectionPipeline$slambda$slambda_0($actorChannel, $timeout, $connection, resultContinuation) {
|
|
@@ -2651,12 +2651,12 @@
|
|
|
2651
2651
|
return l;
|
|
2652
2652
|
}
|
|
2653
2653
|
function startServerConnectionPipeline$slambda$slambda_1($requestBody, $response, $connection, $upgraded, $handler, $request, resultContinuation) {
|
|
2654
|
-
this.
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2658
|
-
this.
|
|
2659
|
-
this.
|
|
2654
|
+
this.pc3_1 = $requestBody;
|
|
2655
|
+
this.qc3_1 = $response;
|
|
2656
|
+
this.rc3_1 = $connection;
|
|
2657
|
+
this.sc3_1 = $upgraded;
|
|
2658
|
+
this.tc3_1 = $handler;
|
|
2659
|
+
this.uc3_1 = $request;
|
|
2660
2660
|
CoroutineImpl.call(this, resultContinuation);
|
|
2661
2661
|
}
|
|
2662
2662
|
protoOf(startServerConnectionPipeline$slambda$slambda_1).x2q = function ($this$launch, $completion) {
|
|
@@ -2676,15 +2676,15 @@
|
|
|
2676
2676
|
switch (tmp) {
|
|
2677
2677
|
case 0:
|
|
2678
2678
|
this.y9_1 = 5;
|
|
2679
|
-
this.
|
|
2680
|
-
this.
|
|
2679
|
+
this.wc3_1 = new ServerRequestScope(this.vc3_1.z1v(), this.pc3_1, this.qc3_1, this.rc3_1.uc1_1, this.rc3_1.vc1_1, this.sc3_1);
|
|
2680
|
+
this.xc3_1 = Unit_instance;
|
|
2681
2681
|
this.x9_1 = 1;
|
|
2682
2682
|
continue $sm;
|
|
2683
2683
|
case 1:
|
|
2684
2684
|
this.y9_1 = 4;
|
|
2685
2685
|
this.y9_1 = 3;
|
|
2686
2686
|
this.x9_1 = 2;
|
|
2687
|
-
suspendResult = this.
|
|
2687
|
+
suspendResult = this.tc3_1(this.wc3_1, this.uc3_1, this);
|
|
2688
2688
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2689
2689
|
return suspendResult;
|
|
2690
2690
|
}
|
|
@@ -2692,7 +2692,7 @@
|
|
|
2692
2692
|
continue $sm;
|
|
2693
2693
|
case 2:
|
|
2694
2694
|
var tmp_0 = this;
|
|
2695
|
-
tmp_0.
|
|
2695
|
+
tmp_0.xc3_1 = Unit_instance;
|
|
2696
2696
|
this.y9_1 = 5;
|
|
2697
2697
|
this.x9_1 = 6;
|
|
2698
2698
|
continue $sm;
|
|
@@ -2702,9 +2702,9 @@
|
|
|
2702
2702
|
if (tmp_1 instanceof Error) {
|
|
2703
2703
|
var cause = this.aa_1;
|
|
2704
2704
|
var tmp_2 = this;
|
|
2705
|
-
close(this.
|
|
2706
|
-
var tmp0_safe_receiver = this.
|
|
2707
|
-
tmp_2.
|
|
2705
|
+
close(this.qc3_1, cause);
|
|
2706
|
+
var tmp0_safe_receiver = this.sc3_1;
|
|
2707
|
+
tmp_2.xc3_1 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x24(cause);
|
|
2708
2708
|
this.y9_1 = 5;
|
|
2709
2709
|
this.x9_1 = 6;
|
|
2710
2710
|
continue $sm;
|
|
@@ -2715,8 +2715,8 @@
|
|
|
2715
2715
|
case 4:
|
|
2716
2716
|
this.y9_1 = 5;
|
|
2717
2717
|
var t = this.aa_1;
|
|
2718
|
-
this.
|
|
2719
|
-
var tmp1_safe_receiver = this.
|
|
2718
|
+
this.qc3_1.u4();
|
|
2719
|
+
var tmp1_safe_receiver = this.sc3_1;
|
|
2720
2720
|
if (tmp1_safe_receiver == null)
|
|
2721
2721
|
null;
|
|
2722
2722
|
else
|
|
@@ -2725,10 +2725,10 @@
|
|
|
2725
2725
|
case 5:
|
|
2726
2726
|
throw this.aa_1;
|
|
2727
2727
|
case 6:
|
|
2728
|
-
this.
|
|
2728
|
+
this.xc3_1;
|
|
2729
2729
|
this.y9_1 = 5;
|
|
2730
|
-
this.
|
|
2731
|
-
var tmp1_safe_receiver_0 = this.
|
|
2730
|
+
this.qc3_1.u4();
|
|
2731
|
+
var tmp1_safe_receiver_0 = this.sc3_1;
|
|
2732
2732
|
if (tmp1_safe_receiver_0 == null)
|
|
2733
2733
|
null;
|
|
2734
2734
|
else
|
|
@@ -2747,8 +2747,8 @@
|
|
|
2747
2747
|
while (true);
|
|
2748
2748
|
};
|
|
2749
2749
|
protoOf(startServerConnectionPipeline$slambda$slambda_1).y2q = function ($this$launch, completion) {
|
|
2750
|
-
var i = new startServerConnectionPipeline$slambda$slambda_1(this.
|
|
2751
|
-
i.
|
|
2750
|
+
var i = new startServerConnectionPipeline$slambda$slambda_1(this.pc3_1, this.qc3_1, this.rc3_1, this.sc3_1, this.tc3_1, this.uc3_1, completion);
|
|
2751
|
+
i.vc3_1 = $this$launch;
|
|
2752
2752
|
return i;
|
|
2753
2753
|
};
|
|
2754
2754
|
function startServerConnectionPipeline$slambda$slambda_2($requestBody, $response, $connection, $upgraded, $handler, $request, resultContinuation) {
|
|
@@ -2760,9 +2760,9 @@
|
|
|
2760
2760
|
return l;
|
|
2761
2761
|
}
|
|
2762
2762
|
function startServerConnectionPipeline$slambda($connection, $timeout, $handler, resultContinuation) {
|
|
2763
|
-
this.
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
2763
|
+
this.gc4_1 = $connection;
|
|
2764
|
+
this.hc4_1 = $timeout;
|
|
2765
|
+
this.ic4_1 = $handler;
|
|
2766
2766
|
CoroutineImpl.call(this, resultContinuation);
|
|
2767
2767
|
}
|
|
2768
2768
|
protoOf(startServerConnectionPipeline$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -2782,11 +2782,11 @@
|
|
|
2782
2782
|
switch (tmp) {
|
|
2783
2783
|
case 0:
|
|
2784
2784
|
this.y9_1 = 32;
|
|
2785
|
-
this.
|
|
2785
|
+
this.kc4_1 = Channel(3);
|
|
2786
2786
|
var tmp_0 = get_HttpPipelineWriterCoroutine();
|
|
2787
2787
|
var tmp_1 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
2788
|
-
launch(this.
|
|
2789
|
-
this.
|
|
2788
|
+
launch(this.jc4_1, tmp_0, tmp_1, startServerConnectionPipeline$slambda$slambda_0(this.kc4_1, this.hc4_1, this.gc4_1, null));
|
|
2789
|
+
this.lc4_1 = get_RequestHandlerCoroutine().am(Dispatchers_getInstance().x29_1);
|
|
2790
2790
|
this.x9_1 = 1;
|
|
2791
2791
|
continue $sm;
|
|
2792
2792
|
case 1:
|
|
@@ -2802,26 +2802,26 @@
|
|
|
2802
2802
|
|
|
2803
2803
|
this.y9_1 = 5;
|
|
2804
2804
|
this.x9_1 = 3;
|
|
2805
|
-
suspendResult = parseRequest(this.
|
|
2805
|
+
suspendResult = parseRequest(this.gc4_1.sc1_1, this);
|
|
2806
2806
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2807
2807
|
return suspendResult;
|
|
2808
2808
|
}
|
|
2809
2809
|
|
|
2810
2810
|
continue $sm;
|
|
2811
2811
|
case 3:
|
|
2812
|
-
this.
|
|
2813
|
-
if (this.
|
|
2812
|
+
this.oc4_1 = suspendResult;
|
|
2813
|
+
if (this.oc4_1 == null) {
|
|
2814
2814
|
this.x9_1 = 29;
|
|
2815
2815
|
var tmp_2 = this;
|
|
2816
2816
|
continue $sm;
|
|
2817
2817
|
} else {
|
|
2818
|
-
this.
|
|
2818
|
+
this.pc4_1 = this.oc4_1;
|
|
2819
2819
|
this.x9_1 = 4;
|
|
2820
2820
|
continue $sm;
|
|
2821
2821
|
}
|
|
2822
2822
|
|
|
2823
2823
|
case 4:
|
|
2824
|
-
this.
|
|
2824
|
+
this.nc4_1 = this.pc4_1;
|
|
2825
2825
|
this.y9_1 = 30;
|
|
2826
2826
|
this.x9_1 = 8;
|
|
2827
2827
|
continue $sm;
|
|
@@ -2829,9 +2829,9 @@
|
|
|
2829
2829
|
this.y9_1 = 30;
|
|
2830
2830
|
var tmp_3 = this.aa_1;
|
|
2831
2831
|
if (tmp_3 instanceof TooLongLineException) {
|
|
2832
|
-
this.
|
|
2832
|
+
this.qc4_1 = this.aa_1;
|
|
2833
2833
|
this.x9_1 = 6;
|
|
2834
|
-
suspendResult = respondBadRequest(this.
|
|
2834
|
+
suspendResult = respondBadRequest(this.kc4_1, this);
|
|
2835
2835
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2836
2836
|
return suspendResult;
|
|
2837
2837
|
}
|
|
@@ -2839,25 +2839,25 @@
|
|
|
2839
2839
|
} else {
|
|
2840
2840
|
var tmp_4 = this.aa_1;
|
|
2841
2841
|
if (tmp_4 instanceof IOException) {
|
|
2842
|
-
this.
|
|
2842
|
+
this.rc4_1 = this.aa_1;
|
|
2843
2843
|
var tmp_5 = this;
|
|
2844
|
-
throw this.
|
|
2844
|
+
throw this.rc4_1;
|
|
2845
2845
|
} else {
|
|
2846
2846
|
var tmp_6 = this.aa_1;
|
|
2847
2847
|
if (tmp_6 instanceof CancellationException) {
|
|
2848
|
-
this.
|
|
2848
|
+
this.sc4_1 = this.aa_1;
|
|
2849
2849
|
var tmp_7 = this;
|
|
2850
|
-
throw this.
|
|
2850
|
+
throw this.sc4_1;
|
|
2851
2851
|
} else {
|
|
2852
2852
|
var tmp_8 = this.aa_1;
|
|
2853
2853
|
if (tmp_8 instanceof Error) {
|
|
2854
|
-
this.
|
|
2854
|
+
this.tc4_1 = this.aa_1;
|
|
2855
2855
|
var this_0 = get_LOGGER_0();
|
|
2856
2856
|
if (get_isTraceEnabled(this_0)) {
|
|
2857
|
-
this_0.
|
|
2857
|
+
this_0.m55('Request parsing failed with exception: ' + this.tc4_1.toString());
|
|
2858
2858
|
}
|
|
2859
2859
|
this.x9_1 = 7;
|
|
2860
|
-
suspendResult = respondBadRequest(this.
|
|
2860
|
+
suspendResult = respondBadRequest(this.kc4_1, this);
|
|
2861
2861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2862
2862
|
return suspendResult;
|
|
2863
2863
|
}
|
|
@@ -2879,15 +2879,15 @@
|
|
|
2879
2879
|
continue $sm;
|
|
2880
2880
|
case 8:
|
|
2881
2881
|
this.y9_1 = 30;
|
|
2882
|
-
this.
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2885
|
-
this.
|
|
2886
|
-
this.
|
|
2887
|
-
this.
|
|
2882
|
+
this.uc4_1 = this.nc4_1;
|
|
2883
|
+
this.vc4_1 = new ByteChannel();
|
|
2884
|
+
this.wc4_1 = this.uc4_1.p5x_1.cf('Transfer-Encoding');
|
|
2885
|
+
this.xc4_1 = this.uc4_1.p5x_1.cf('Upgrade');
|
|
2886
|
+
this.yc4_1 = this.uc4_1.p5x_1.cf('Content-Type');
|
|
2887
|
+
this.zc4_1 = Companion_getInstance().pr(this.uc4_1.o5x_1);
|
|
2888
2888
|
this.y9_1 = 28;
|
|
2889
2889
|
this.x9_1 = 9;
|
|
2890
|
-
suspendResult = this.
|
|
2890
|
+
suspendResult = this.kc4_1.m2i(this.vc4_1, this);
|
|
2891
2891
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2892
2892
|
return suspendResult;
|
|
2893
2893
|
}
|
|
@@ -2900,15 +2900,15 @@
|
|
|
2900
2900
|
case 10:
|
|
2901
2901
|
this.y9_1 = 30;
|
|
2902
2902
|
this.y9_1 = 11;
|
|
2903
|
-
var contentLengthHeaders = toList(this.
|
|
2904
|
-
this.
|
|
2903
|
+
var contentLengthHeaders = toList(this.uc4_1.p5x_1.g4y('Content-Length'));
|
|
2904
|
+
this.ac5_1 = Companion_getInstance_6().i5q(this.uc4_1.p5x_1.cf('Connection'));
|
|
2905
2905
|
if (contentLengthHeaders.s() > 1) {
|
|
2906
2906
|
throw new ParserException('Duplicate Content-Length header');
|
|
2907
2907
|
}
|
|
2908
2908
|
|
|
2909
|
-
this.
|
|
2910
|
-
this.
|
|
2911
|
-
this.
|
|
2909
|
+
this.bc5_1 = contentLengthHeaders.s() === 1 ? parseDecLong(contentLengthHeaders.u(0)) : new Long(-1, -1);
|
|
2910
|
+
this.cc5_1 = expectHttpBody(this.uc4_1.m5x_1, this.bc5_1, this.wc4_1, this.ac5_1, this.yc4_1);
|
|
2911
|
+
this.dc5_1 = (!this.cc5_1 && expectHttpUpgrade(this.uc4_1.m5x_1, this.xc4_1, this.ac5_1));
|
|
2912
2912
|
this.y9_1 = 30;
|
|
2913
2913
|
this.x9_1 = 13;
|
|
2914
2914
|
continue $sm;
|
|
@@ -2916,10 +2916,10 @@
|
|
|
2916
2916
|
this.y9_1 = 30;
|
|
2917
2917
|
var tmp_11 = this.aa_1;
|
|
2918
2918
|
if (tmp_11 instanceof Error) {
|
|
2919
|
-
this.
|
|
2920
|
-
this.
|
|
2919
|
+
this.ec5_1 = this.aa_1;
|
|
2920
|
+
this.uc4_1.m1h();
|
|
2921
2921
|
this.x9_1 = 12;
|
|
2922
|
-
suspendResult = writePacket(this.
|
|
2922
|
+
suspendResult = writePacket(this.vc4_1, copy(get_BadRequestPacket()), this);
|
|
2923
2923
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2924
2924
|
return suspendResult;
|
|
2925
2925
|
}
|
|
@@ -2929,26 +2929,26 @@
|
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
2931
|
case 12:
|
|
2932
|
-
this.
|
|
2932
|
+
this.vc4_1.u4();
|
|
2933
2933
|
this.x9_1 = 29;
|
|
2934
2934
|
continue $sm;
|
|
2935
2935
|
case 13:
|
|
2936
2936
|
this.y9_1 = 30;
|
|
2937
2937
|
var tmp_12 = this;
|
|
2938
2938
|
var tmp_13;
|
|
2939
|
-
if (this.
|
|
2939
|
+
if (this.cc5_1 || this.dc5_1) {
|
|
2940
2940
|
tmp_13 = new ByteChannel(true);
|
|
2941
2941
|
} else {
|
|
2942
|
-
tmp_13 = Companion_getInstance_7().
|
|
2942
|
+
tmp_13 = Companion_getInstance_7().s4j_1;
|
|
2943
2943
|
}
|
|
2944
2944
|
|
|
2945
|
-
tmp_12.
|
|
2946
|
-
this.
|
|
2945
|
+
tmp_12.fc5_1 = tmp_13;
|
|
2946
|
+
this.gc5_1 = this.dc5_1 ? CompletableDeferred() : null;
|
|
2947
2947
|
var tmp_14 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
2948
|
-
launch(this.
|
|
2949
|
-
if (!(this.
|
|
2948
|
+
launch(this.jc4_1, this.lc4_1, tmp_14, startServerConnectionPipeline$slambda$slambda_2(this.fc5_1, this.vc4_1, this.gc4_1, this.gc5_1, this.ic4_1, this.uc4_1, null));
|
|
2949
|
+
if (!(this.gc5_1 == null)) {
|
|
2950
2950
|
this.x9_1 = 14;
|
|
2951
|
-
suspendResult = this.
|
|
2951
|
+
suspendResult = this.gc5_1.w21(this);
|
|
2952
2952
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2953
2953
|
return suspendResult;
|
|
2954
2954
|
}
|
|
@@ -2960,18 +2960,18 @@
|
|
|
2960
2960
|
|
|
2961
2961
|
case 14:
|
|
2962
2962
|
if (suspendResult) {
|
|
2963
|
-
this.
|
|
2963
|
+
this.kc4_1.w2i();
|
|
2964
2964
|
this.x9_1 = 27;
|
|
2965
|
-
var tmp_15 = this.
|
|
2966
|
-
suspendResult = copyAndClose(this.
|
|
2965
|
+
var tmp_15 = this.fc5_1;
|
|
2966
|
+
suspendResult = copyAndClose(this.gc4_1.sc1_1, tmp_15 instanceof ByteChannel ? tmp_15 : THROW_CCE(), this);
|
|
2967
2967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2968
2968
|
return suspendResult;
|
|
2969
2969
|
}
|
|
2970
2970
|
continue $sm;
|
|
2971
2971
|
} else {
|
|
2972
|
-
var tmp_16 = this.
|
|
2972
|
+
var tmp_16 = this.fc5_1;
|
|
2973
2973
|
if (tmp_16 instanceof ByteChannel) {
|
|
2974
|
-
this.
|
|
2974
|
+
this.fc5_1.u4();
|
|
2975
2975
|
this.x9_1 = 15;
|
|
2976
2976
|
continue $sm;
|
|
2977
2977
|
} else {
|
|
@@ -2985,8 +2985,8 @@
|
|
|
2985
2985
|
continue $sm;
|
|
2986
2986
|
case 16:
|
|
2987
2987
|
var tmp_17;
|
|
2988
|
-
if (this.
|
|
2989
|
-
var tmp_18 = this.
|
|
2988
|
+
if (this.cc5_1) {
|
|
2989
|
+
var tmp_18 = this.fc5_1;
|
|
2990
2990
|
tmp_17 = isInterface(tmp_18, ByteWriteChannel);
|
|
2991
2991
|
} else {
|
|
2992
2992
|
tmp_17 = false;
|
|
@@ -3007,24 +3007,24 @@
|
|
|
3007
3007
|
this.y9_1 = 26;
|
|
3008
3008
|
this.y9_1 = 20;
|
|
3009
3009
|
this.x9_1 = 19;
|
|
3010
|
-
suspendResult = parseHttpBody(this.
|
|
3010
|
+
suspendResult = parseHttpBody(this.zc4_1, this.bc5_1, this.wc4_1, this.ac5_1, this.gc4_1.sc1_1, this.fc5_1, this);
|
|
3011
3011
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3012
3012
|
return suspendResult;
|
|
3013
3013
|
}
|
|
3014
3014
|
|
|
3015
3015
|
continue $sm;
|
|
3016
3016
|
case 19:
|
|
3017
|
-
this.
|
|
3017
|
+
this.hc5_1 = suspendResult;
|
|
3018
3018
|
this.x9_1 = 23;
|
|
3019
3019
|
continue $sm;
|
|
3020
3020
|
case 20:
|
|
3021
3021
|
this.y9_1 = 26;
|
|
3022
3022
|
var tmp_19 = this.aa_1;
|
|
3023
3023
|
if (tmp_19 instanceof Error) {
|
|
3024
|
-
this.
|
|
3025
|
-
close(this.
|
|
3024
|
+
this.jc5_1 = this.aa_1;
|
|
3025
|
+
close(this.fc5_1, new ChannelReadException('Failed to read request body', this.jc5_1));
|
|
3026
3026
|
this.x9_1 = 21;
|
|
3027
|
-
suspendResult = writePacket(this.
|
|
3027
|
+
suspendResult = writePacket(this.vc4_1, copy(get_BadRequestPacket()), this);
|
|
3028
3028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3029
3029
|
return suspendResult;
|
|
3030
3030
|
}
|
|
@@ -3034,23 +3034,23 @@
|
|
|
3034
3034
|
}
|
|
3035
3035
|
|
|
3036
3036
|
case 21:
|
|
3037
|
-
this.
|
|
3038
|
-
this.
|
|
3037
|
+
this.vc4_1.u4();
|
|
3038
|
+
this.ic5_1 = Unit_instance;
|
|
3039
3039
|
this.x9_1 = 22;
|
|
3040
3040
|
var tmp_20 = this;
|
|
3041
3041
|
continue $sm;
|
|
3042
3042
|
case 22:
|
|
3043
3043
|
this.y9_1 = 30;
|
|
3044
|
-
close_0(this.
|
|
3044
|
+
close_0(this.fc5_1);
|
|
3045
3045
|
this.x9_1 = 29;
|
|
3046
3046
|
continue $sm;
|
|
3047
3047
|
case 23:
|
|
3048
3048
|
this.y9_1 = 30;
|
|
3049
|
-
close_0(this.
|
|
3049
|
+
close_0(this.fc5_1);
|
|
3050
3050
|
this.x9_1 = 24;
|
|
3051
3051
|
continue $sm;
|
|
3052
3052
|
case 24:
|
|
3053
|
-
if (isLastHttpRequest(this.
|
|
3053
|
+
if (isLastHttpRequest(this.zc4_1, this.ac5_1)) {
|
|
3054
3054
|
this.x9_1 = 29;
|
|
3055
3055
|
continue $sm;
|
|
3056
3056
|
} else {
|
|
@@ -3064,7 +3064,7 @@
|
|
|
3064
3064
|
case 26:
|
|
3065
3065
|
this.y9_1 = 30;
|
|
3066
3066
|
var t = this.aa_1;
|
|
3067
|
-
close_0(this.
|
|
3067
|
+
close_0(this.fc5_1);
|
|
3068
3068
|
throw t;
|
|
3069
3069
|
case 27:
|
|
3070
3070
|
this.x9_1 = 29;
|
|
@@ -3074,14 +3074,14 @@
|
|
|
3074
3074
|
var tmp_21 = this.aa_1;
|
|
3075
3075
|
if (tmp_21 instanceof Error) {
|
|
3076
3076
|
var cause = this.aa_1;
|
|
3077
|
-
this.
|
|
3077
|
+
this.uc4_1.m1h();
|
|
3078
3078
|
throw cause;
|
|
3079
3079
|
} else {
|
|
3080
3080
|
throw this.aa_1;
|
|
3081
3081
|
}
|
|
3082
3082
|
|
|
3083
3083
|
case 29:
|
|
3084
|
-
this.
|
|
3084
|
+
this.mc4_1 = Unit_instance;
|
|
3085
3085
|
this.y9_1 = 32;
|
|
3086
3086
|
this.x9_1 = 33;
|
|
3087
3087
|
continue $sm;
|
|
@@ -3091,8 +3091,8 @@
|
|
|
3091
3091
|
if (tmp_22 instanceof IOException) {
|
|
3092
3092
|
var cause_0 = this.aa_1;
|
|
3093
3093
|
var tmp_23 = this;
|
|
3094
|
-
cancel_0(this.
|
|
3095
|
-
tmp_23.
|
|
3094
|
+
cancel_0(this.jc4_1.z1v());
|
|
3095
|
+
tmp_23.mc4_1 = Unit_instance;
|
|
3096
3096
|
this.y9_1 = 32;
|
|
3097
3097
|
this.x9_1 = 33;
|
|
3098
3098
|
continue $sm;
|
|
@@ -3103,13 +3103,13 @@
|
|
|
3103
3103
|
case 31:
|
|
3104
3104
|
this.y9_1 = 32;
|
|
3105
3105
|
var t_0 = this.aa_1;
|
|
3106
|
-
this.
|
|
3106
|
+
this.kc4_1.w2i();
|
|
3107
3107
|
throw t_0;
|
|
3108
3108
|
case 32:
|
|
3109
3109
|
throw this.aa_1;
|
|
3110
3110
|
case 33:
|
|
3111
3111
|
this.y9_1 = 32;
|
|
3112
|
-
this.
|
|
3112
|
+
this.kc4_1.w2i();
|
|
3113
3113
|
return Unit_instance;
|
|
3114
3114
|
}
|
|
3115
3115
|
} catch ($p) {
|
|
@@ -3124,8 +3124,8 @@
|
|
|
3124
3124
|
while (true);
|
|
3125
3125
|
};
|
|
3126
3126
|
protoOf(startServerConnectionPipeline$slambda).y2q = function ($this$launch, completion) {
|
|
3127
|
-
var i = new startServerConnectionPipeline$slambda(this.
|
|
3128
|
-
i.
|
|
3127
|
+
var i = new startServerConnectionPipeline$slambda(this.gc4_1, this.hc4_1, this.ic4_1, completion);
|
|
3128
|
+
i.jc4_1 = $this$launch;
|
|
3129
3129
|
return i;
|
|
3130
3130
|
};
|
|
3131
3131
|
function startServerConnectionPipeline$slambda_0($connection, $timeout, $handler, resultContinuation) {
|
|
@@ -3137,17 +3137,17 @@
|
|
|
3137
3137
|
return l;
|
|
3138
3138
|
}
|
|
3139
3139
|
function pipelineWriterLoop$slambda($channel, resultContinuation) {
|
|
3140
|
-
this.
|
|
3140
|
+
this.sc5_1 = $channel;
|
|
3141
3141
|
CoroutineImpl.call(this, resultContinuation);
|
|
3142
3142
|
}
|
|
3143
|
-
protoOf(pipelineWriterLoop$slambda).
|
|
3143
|
+
protoOf(pipelineWriterLoop$slambda).uc5 = function ($this$withTimeoutOrNull, $completion) {
|
|
3144
3144
|
var tmp = this.y2q($this$withTimeoutOrNull, $completion);
|
|
3145
3145
|
tmp.z9_1 = Unit_instance;
|
|
3146
3146
|
tmp.aa_1 = null;
|
|
3147
3147
|
return tmp.fa();
|
|
3148
3148
|
};
|
|
3149
3149
|
protoOf(pipelineWriterLoop$slambda).ra = function (p1, $completion) {
|
|
3150
|
-
return this.
|
|
3150
|
+
return this.uc5((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
3151
3151
|
};
|
|
3152
3152
|
protoOf(pipelineWriterLoop$slambda).fa = function () {
|
|
3153
3153
|
var suspendResult = this.z9_1;
|
|
@@ -3158,7 +3158,7 @@
|
|
|
3158
3158
|
case 0:
|
|
3159
3159
|
this.y9_1 = 3;
|
|
3160
3160
|
this.x9_1 = 1;
|
|
3161
|
-
suspendResult = this.
|
|
3161
|
+
suspendResult = this.sc5_1.r2i(this);
|
|
3162
3162
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3163
3163
|
return suspendResult;
|
|
3164
3164
|
}
|
|
@@ -3188,23 +3188,23 @@
|
|
|
3188
3188
|
while (true);
|
|
3189
3189
|
};
|
|
3190
3190
|
protoOf(pipelineWriterLoop$slambda).y2q = function ($this$withTimeoutOrNull, completion) {
|
|
3191
|
-
var i = new pipelineWriterLoop$slambda(this.
|
|
3192
|
-
i.
|
|
3191
|
+
var i = new pipelineWriterLoop$slambda(this.sc5_1, completion);
|
|
3192
|
+
i.tc5_1 = $this$withTimeoutOrNull;
|
|
3193
3193
|
return i;
|
|
3194
3194
|
};
|
|
3195
3195
|
function pipelineWriterLoop$slambda_0($channel, resultContinuation) {
|
|
3196
3196
|
var i = new pipelineWriterLoop$slambda($channel, resultContinuation);
|
|
3197
3197
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
3198
|
-
return i.
|
|
3198
|
+
return i.uc5($this$withTimeoutOrNull, $completion);
|
|
3199
3199
|
};
|
|
3200
3200
|
l.$arity = 1;
|
|
3201
3201
|
return l;
|
|
3202
3202
|
}
|
|
3203
3203
|
function $pipelineWriterLoopCOROUTINE$(channel, timeout, connection, resultContinuation) {
|
|
3204
3204
|
CoroutineImpl.call(this, resultContinuation);
|
|
3205
|
-
this.
|
|
3206
|
-
this.
|
|
3207
|
-
this.
|
|
3205
|
+
this.ec2_1 = channel;
|
|
3206
|
+
this.fc2_1 = timeout;
|
|
3207
|
+
this.gc2_1 = connection;
|
|
3208
3208
|
}
|
|
3209
3209
|
protoOf($pipelineWriterLoopCOROUTINE$).fa = function () {
|
|
3210
3210
|
var suspendResult = this.z9_1;
|
|
@@ -3223,29 +3223,29 @@
|
|
|
3223
3223
|
}
|
|
3224
3224
|
|
|
3225
3225
|
this.x9_1 = 2;
|
|
3226
|
-
suspendResult = withTimeoutOrNull_0(this.
|
|
3226
|
+
suspendResult = withTimeoutOrNull_0(this.fc2_1, pipelineWriterLoop$slambda_0(this.ec2_1, null), this);
|
|
3227
3227
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3228
3228
|
return suspendResult;
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
3231
|
continue $sm;
|
|
3232
3232
|
case 2:
|
|
3233
|
-
this.
|
|
3234
|
-
if (this.
|
|
3233
|
+
this.hc2_1 = suspendResult;
|
|
3234
|
+
if (this.hc2_1 == null) {
|
|
3235
3235
|
this.x9_1 = 9;
|
|
3236
3236
|
var tmp_0 = this;
|
|
3237
3237
|
continue $sm;
|
|
3238
3238
|
} else {
|
|
3239
|
-
this.
|
|
3239
|
+
this.ic2_1 = this.hc2_1;
|
|
3240
3240
|
this.x9_1 = 3;
|
|
3241
3241
|
continue $sm;
|
|
3242
3242
|
}
|
|
3243
3243
|
|
|
3244
3244
|
case 3:
|
|
3245
|
-
this.
|
|
3245
|
+
this.jc2_1 = this.ic2_1;
|
|
3246
3246
|
this.y9_1 = 6;
|
|
3247
3247
|
this.x9_1 = 4;
|
|
3248
|
-
suspendResult = copyTo(this.
|
|
3248
|
+
suspendResult = copyTo(this.jc2_1, this.gc2_1.tc1_1, this);
|
|
3249
3249
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3250
3250
|
return suspendResult;
|
|
3251
3251
|
}
|
|
@@ -3253,7 +3253,7 @@
|
|
|
3253
3253
|
continue $sm;
|
|
3254
3254
|
case 4:
|
|
3255
3255
|
this.x9_1 = 5;
|
|
3256
|
-
suspendResult = this.
|
|
3256
|
+
suspendResult = this.gc2_1.tc1_1.h4h(this);
|
|
3257
3257
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3258
3258
|
return suspendResult;
|
|
3259
3259
|
}
|
|
@@ -3268,9 +3268,9 @@
|
|
|
3268
3268
|
var tmp_1 = this.aa_1;
|
|
3269
3269
|
if (tmp_1 instanceof Error) {
|
|
3270
3270
|
var cause = this.aa_1;
|
|
3271
|
-
var tmp_2 = this.
|
|
3271
|
+
var tmp_2 = this.jc2_1;
|
|
3272
3272
|
if (isInterface(tmp_2, ByteWriteChannel)) {
|
|
3273
|
-
close(this.
|
|
3273
|
+
close(this.jc2_1, cause);
|
|
3274
3274
|
}
|
|
3275
3275
|
this.x9_1 = 7;
|
|
3276
3276
|
continue $sm;
|
|
@@ -3300,7 +3300,7 @@
|
|
|
3300
3300
|
};
|
|
3301
3301
|
function $respondBadRequestCOROUTINE$(actorChannel, resultContinuation) {
|
|
3302
3302
|
CoroutineImpl.call(this, resultContinuation);
|
|
3303
|
-
this.
|
|
3303
|
+
this.sc2_1 = actorChannel;
|
|
3304
3304
|
}
|
|
3305
3305
|
protoOf($respondBadRequestCOROUTINE$).fa = function () {
|
|
3306
3306
|
var suspendResult = this.z9_1;
|
|
@@ -3310,10 +3310,10 @@
|
|
|
3310
3310
|
switch (tmp) {
|
|
3311
3311
|
case 0:
|
|
3312
3312
|
this.y9_1 = 3;
|
|
3313
|
-
this.
|
|
3314
|
-
if (_ChannelResult___get_isSuccess__impl__odq1z9(this.
|
|
3313
|
+
this.tc2_1 = new ByteChannel();
|
|
3314
|
+
if (_ChannelResult___get_isSuccess__impl__odq1z9(this.sc2_1.n2i(this.tc2_1))) {
|
|
3315
3315
|
this.x9_1 = 1;
|
|
3316
|
-
suspendResult = writePacket(this.
|
|
3316
|
+
suspendResult = writePacket(this.tc2_1, copy(get_BadRequestPacket()), this);
|
|
3317
3317
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3318
3318
|
return suspendResult;
|
|
3319
3319
|
}
|
|
@@ -3324,11 +3324,11 @@
|
|
|
3324
3324
|
}
|
|
3325
3325
|
|
|
3326
3326
|
case 1:
|
|
3327
|
-
this.
|
|
3327
|
+
this.tc2_1.u4();
|
|
3328
3328
|
this.x9_1 = 2;
|
|
3329
3329
|
continue $sm;
|
|
3330
3330
|
case 2:
|
|
3331
|
-
this.
|
|
3331
|
+
this.sc2_1.w2i();
|
|
3332
3332
|
return Unit_instance;
|
|
3333
3333
|
case 3:
|
|
3334
3334
|
throw this.aa_1;
|
|
@@ -3351,26 +3351,26 @@
|
|
|
3351
3351
|
LOGGER_0 = KtorSimpleLogger('io.ktor.server.cio.backend.ServerPipeline');
|
|
3352
3352
|
// Inline function 'kotlin.apply' call
|
|
3353
3353
|
var this_0 = new RequestResponseBuilder();
|
|
3354
|
-
this_0.
|
|
3355
|
-
this_0.
|
|
3356
|
-
this_0.
|
|
3357
|
-
BadRequestPacket = this_0.
|
|
3354
|
+
this_0.s5y('HTTP/1.0', Companion_getInstance_0().d5e_1.m5f_1, 'Bad Request');
|
|
3355
|
+
this_0.t5y('Connection', 'close');
|
|
3356
|
+
this_0.u5y();
|
|
3357
|
+
BadRequestPacket = this_0.t3n();
|
|
3358
3358
|
}
|
|
3359
3359
|
}
|
|
3360
3360
|
function ServerRequestScope(coroutineContext, input, output, remoteAddress, localAddress, upgraded) {
|
|
3361
|
-
this.
|
|
3362
|
-
this.
|
|
3363
|
-
this.
|
|
3364
|
-
this.
|
|
3365
|
-
this.
|
|
3366
|
-
this.
|
|
3361
|
+
this.fbt_1 = coroutineContext;
|
|
3362
|
+
this.gbt_1 = input;
|
|
3363
|
+
this.hbt_1 = output;
|
|
3364
|
+
this.ibt_1 = remoteAddress;
|
|
3365
|
+
this.jbt_1 = localAddress;
|
|
3366
|
+
this.kbt_1 = upgraded;
|
|
3367
3367
|
}
|
|
3368
3368
|
protoOf(ServerRequestScope).z1v = function () {
|
|
3369
|
-
return this.
|
|
3369
|
+
return this.fbt_1;
|
|
3370
3370
|
};
|
|
3371
3371
|
function get_port_0(_this__u8e3s4) {
|
|
3372
3372
|
var tmp0_safe_receiver = _this__u8e3s4 instanceof InetSocketAddress ? _this__u8e3s4 : null;
|
|
3373
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3373
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.jbm_1;
|
|
3374
3374
|
}
|
|
3375
3375
|
function get_LOGGER_1() {
|
|
3376
3376
|
_init_properties_UnixSocketServer_kt__n05kma();
|
|
@@ -3387,7 +3387,7 @@
|
|
|
3387
3387
|
var selector = SelectorManager(_this__u8e3s4.z1v());
|
|
3388
3388
|
Companion_getInstance_5();
|
|
3389
3389
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
3390
|
-
var this_0 = settings.
|
|
3390
|
+
var this_0 = settings.wbz_1;
|
|
3391
3391
|
var timeout = toDuration(this_0, DurationUnit_SECONDS_getInstance());
|
|
3392
3392
|
var tmp_1 = serverJob.am(new CoroutineName('accept-' + toString(settings)));
|
|
3393
3393
|
var acceptJob = launch(_this__u8e3s4, tmp_1, VOID, unixSocketServer$slambda_2(settings, selector, socket, serverJob, timeout, handler, null));
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
return new HttpServer(serverJob, acceptJob, socket);
|
|
3397
3397
|
}
|
|
3398
3398
|
function unixSocketServer$slambda($serverLatch, resultContinuation) {
|
|
3399
|
-
this.
|
|
3399
|
+
this.dc6_1 = $serverLatch;
|
|
3400
3400
|
CoroutineImpl.call(this, resultContinuation);
|
|
3401
3401
|
}
|
|
3402
3402
|
protoOf(unixSocketServer$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -3417,7 +3417,7 @@
|
|
|
3417
3417
|
case 0:
|
|
3418
3418
|
this.y9_1 = 2;
|
|
3419
3419
|
this.x9_1 = 1;
|
|
3420
|
-
suspendResult = this.
|
|
3420
|
+
suspendResult = this.dc6_1.g1x(this);
|
|
3421
3421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3422
3422
|
return suspendResult;
|
|
3423
3423
|
}
|
|
@@ -3440,8 +3440,8 @@
|
|
|
3440
3440
|
while (true);
|
|
3441
3441
|
};
|
|
3442
3442
|
protoOf(unixSocketServer$slambda).y2q = function ($this$launch, completion) {
|
|
3443
|
-
var i = new unixSocketServer$slambda(this.
|
|
3444
|
-
i.
|
|
3443
|
+
var i = new unixSocketServer$slambda(this.dc6_1, completion);
|
|
3444
|
+
i.ec6_1 = $this$launch;
|
|
3445
3445
|
return i;
|
|
3446
3446
|
};
|
|
3447
3447
|
function unixSocketServer$slambda_0($serverLatch, resultContinuation) {
|
|
@@ -3459,12 +3459,12 @@
|
|
|
3459
3459
|
};
|
|
3460
3460
|
}
|
|
3461
3461
|
function unixSocketServer$slambda_1($settings, $selector, $socket, $serverJob, $timeout, $handler, resultContinuation) {
|
|
3462
|
-
this.
|
|
3463
|
-
this.
|
|
3464
|
-
this.
|
|
3465
|
-
this.
|
|
3466
|
-
this.
|
|
3467
|
-
this.
|
|
3462
|
+
this.nc6_1 = $settings;
|
|
3463
|
+
this.oc6_1 = $selector;
|
|
3464
|
+
this.pc6_1 = $socket;
|
|
3465
|
+
this.qc6_1 = $serverJob;
|
|
3466
|
+
this.rc6_1 = $timeout;
|
|
3467
|
+
this.sc6_1 = $handler;
|
|
3468
3468
|
CoroutineImpl.call(this, resultContinuation);
|
|
3469
3469
|
}
|
|
3470
3470
|
protoOf(unixSocketServer$slambda_1).x2q = function ($this$launch, $completion) {
|
|
@@ -3484,27 +3484,27 @@
|
|
|
3484
3484
|
switch (tmp) {
|
|
3485
3485
|
case 0:
|
|
3486
3486
|
this.y9_1 = 21;
|
|
3487
|
-
this.
|
|
3488
|
-
if (get_SystemFileSystem().
|
|
3489
|
-
get_SystemFileSystem().
|
|
3487
|
+
this.uc6_1 = Path(this.nc6_1.vbz_1);
|
|
3488
|
+
if (get_SystemFileSystem().x3c(this.uc6_1)) {
|
|
3489
|
+
get_SystemFileSystem().z3c(this.uc6_1);
|
|
3490
3490
|
}
|
|
3491
3491
|
|
|
3492
3492
|
this.x9_1 = 1;
|
|
3493
|
-
suspendResult = aSocket(this.
|
|
3493
|
+
suspendResult = aSocket(this.oc6_1).fbh().pbj(new UnixSocketAddress(this.nc6_1.vbz_1), VOID, this);
|
|
3494
3494
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3495
3495
|
return suspendResult;
|
|
3496
3496
|
}
|
|
3497
3497
|
|
|
3498
3498
|
continue $sm;
|
|
3499
3499
|
case 1:
|
|
3500
|
-
this.
|
|
3500
|
+
this.vc6_1 = suspendResult;
|
|
3501
3501
|
var tmp_0 = this;
|
|
3502
|
-
tmp_0.
|
|
3502
|
+
tmp_0.wc6_1 = this.vc6_1;
|
|
3503
3503
|
this.x9_1 = 2;
|
|
3504
3504
|
continue $sm;
|
|
3505
3505
|
case 2:
|
|
3506
|
-
this.
|
|
3507
|
-
this.
|
|
3506
|
+
this.yc6_1 = this.wc6_1;
|
|
3507
|
+
this.zc6_1 = null;
|
|
3508
3508
|
this.x9_1 = 3;
|
|
3509
3509
|
continue $sm;
|
|
3510
3510
|
case 3:
|
|
@@ -3514,13 +3514,13 @@
|
|
|
3514
3514
|
this.y9_1 = 18;
|
|
3515
3515
|
this.y9_1 = 17;
|
|
3516
3516
|
var tmp_1 = this;
|
|
3517
|
-
tmp_1.
|
|
3518
|
-
this.
|
|
3519
|
-
this.
|
|
3517
|
+
tmp_1.bc7_1 = this.yc6_1;
|
|
3518
|
+
this.cc7_1 = this.bc7_1;
|
|
3519
|
+
this.pc6_1.n24(this.cc7_1);
|
|
3520
3520
|
var tmp_2 = this;
|
|
3521
|
-
var tmp0_elvis_lhs = this.
|
|
3522
|
-
tmp_2.
|
|
3523
|
-
this.
|
|
3521
|
+
var tmp0_elvis_lhs = this.tc6_1.z1v().ka(Key_instance);
|
|
3522
|
+
tmp_2.dc7_1 = tmp0_elvis_lhs == null ? DefaultUncaughtExceptionHandler_init_$Create$(get_LOGGER_1()) : tmp0_elvis_lhs;
|
|
3523
|
+
this.ec7_1 = CoroutineScope_0(this.tc6_1.z1v().am(SupervisorJob(this.qc6_1)).am(this.dc7_1).am(new CoroutineName('request')));
|
|
3524
3524
|
this.x9_1 = 5;
|
|
3525
3525
|
continue $sm;
|
|
3526
3526
|
case 5:
|
|
@@ -3536,14 +3536,14 @@
|
|
|
3536
3536
|
|
|
3537
3537
|
this.y9_1 = 8;
|
|
3538
3538
|
this.x9_1 = 7;
|
|
3539
|
-
suspendResult = this.
|
|
3539
|
+
suspendResult = this.cc7_1.gbk(this);
|
|
3540
3540
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3541
3541
|
return suspendResult;
|
|
3542
3542
|
}
|
|
3543
3543
|
|
|
3544
3544
|
continue $sm;
|
|
3545
3545
|
case 7:
|
|
3546
|
-
this.
|
|
3546
|
+
this.gc7_1 = suspendResult;
|
|
3547
3547
|
this.y9_1 = 11;
|
|
3548
3548
|
this.x9_1 = 9;
|
|
3549
3549
|
continue $sm;
|
|
@@ -3551,8 +3551,8 @@
|
|
|
3551
3551
|
this.y9_1 = 11;
|
|
3552
3552
|
var tmp_3 = this.aa_1;
|
|
3553
3553
|
if (tmp_3 instanceof IOException) {
|
|
3554
|
-
this.
|
|
3555
|
-
get_LOGGER_1().
|
|
3554
|
+
this.hc7_1 = this.aa_1;
|
|
3555
|
+
get_LOGGER_1().n55('Failed to accept connection', this.hc7_1);
|
|
3556
3556
|
this.x9_1 = 6;
|
|
3557
3557
|
var tmp_4 = this;
|
|
3558
3558
|
continue $sm;
|
|
@@ -3562,25 +3562,25 @@
|
|
|
3562
3562
|
|
|
3563
3563
|
case 9:
|
|
3564
3564
|
this.y9_1 = 11;
|
|
3565
|
-
this.
|
|
3566
|
-
this.
|
|
3567
|
-
this.
|
|
3568
|
-
this.
|
|
3565
|
+
this.ic7_1 = this.gc7_1;
|
|
3566
|
+
this.jc7_1 = new ServerIncomingConnection(openReadChannel(this.ic7_1), openWriteChannel(this.ic7_1), toNetworkAddress(this.ic7_1.yb3()), toNetworkAddress(this.ic7_1.ob3()));
|
|
3567
|
+
this.kc7_1 = startServerConnectionPipeline(this.ec7_1, this.jc7_1, this.rc6_1, this.sc6_1);
|
|
3568
|
+
this.kc7_1.c1x(unixSocketServer$slambda$lambda(this.ic7_1));
|
|
3569
3569
|
this.x9_1 = 6;
|
|
3570
3570
|
continue $sm;
|
|
3571
3571
|
case 10:
|
|
3572
|
-
this.
|
|
3572
|
+
this.fc7_1 = Unit_instance;
|
|
3573
3573
|
this.x9_1 = 14;
|
|
3574
3574
|
continue $sm;
|
|
3575
3575
|
case 11:
|
|
3576
3576
|
this.y9_1 = 12;
|
|
3577
3577
|
var tmp_5 = this.aa_1;
|
|
3578
3578
|
if (tmp_5 instanceof ClosedChannelException) {
|
|
3579
|
-
this.
|
|
3579
|
+
this.lc7_1 = this.aa_1;
|
|
3580
3580
|
var tmp_6 = this;
|
|
3581
|
-
get_LOGGER_1().
|
|
3582
|
-
cancel_0(this.
|
|
3583
|
-
tmp_6.
|
|
3581
|
+
get_LOGGER_1().n55('Server socket closed', this.lc7_1);
|
|
3582
|
+
cancel_0(this.tc6_1.z1v());
|
|
3583
|
+
tmp_6.fc7_1 = Unit_instance;
|
|
3584
3584
|
this.x9_1 = 14;
|
|
3585
3585
|
continue $sm;
|
|
3586
3586
|
} else {
|
|
@@ -3589,32 +3589,32 @@
|
|
|
3589
3589
|
|
|
3590
3590
|
case 12:
|
|
3591
3591
|
this.y9_1 = 17;
|
|
3592
|
-
this.
|
|
3593
|
-
this.
|
|
3592
|
+
this.mc7_1 = this.aa_1;
|
|
3593
|
+
this.cc7_1.u4();
|
|
3594
3594
|
this.x9_1 = 13;
|
|
3595
|
-
suspendResult = awaitClosed(this.
|
|
3595
|
+
suspendResult = awaitClosed(this.cc7_1, this);
|
|
3596
3596
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3597
3597
|
return suspendResult;
|
|
3598
3598
|
}
|
|
3599
3599
|
|
|
3600
3600
|
continue $sm;
|
|
3601
3601
|
case 13:
|
|
3602
|
-
cancel_0(this.
|
|
3603
|
-
throw this.
|
|
3602
|
+
cancel_0(this.ec7_1.z1v());
|
|
3603
|
+
throw this.mc7_1;
|
|
3604
3604
|
case 14:
|
|
3605
3605
|
this.y9_1 = 17;
|
|
3606
|
-
this.
|
|
3606
|
+
this.cc7_1.u4();
|
|
3607
3607
|
this.x9_1 = 15;
|
|
3608
|
-
suspendResult = awaitClosed(this.
|
|
3608
|
+
suspendResult = awaitClosed(this.cc7_1, this);
|
|
3609
3609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3610
3610
|
return suspendResult;
|
|
3611
3611
|
}
|
|
3612
3612
|
|
|
3613
3613
|
continue $sm;
|
|
3614
3614
|
case 15:
|
|
3615
|
-
cancel_0(this.
|
|
3615
|
+
cancel_0(this.ec7_1.z1v());
|
|
3616
3616
|
var tmp_7 = this;
|
|
3617
|
-
tmp_7.
|
|
3617
|
+
tmp_7.ac7_1 = Unit_instance;
|
|
3618
3618
|
this.y9_1 = 21;
|
|
3619
3619
|
this.x9_1 = 16;
|
|
3620
3620
|
var tmp_8 = this;
|
|
@@ -3622,8 +3622,8 @@
|
|
|
3622
3622
|
case 16:
|
|
3623
3623
|
this.y9_1 = 21;
|
|
3624
3624
|
var tmp_9 = this;
|
|
3625
|
-
closeFinally(this.
|
|
3626
|
-
tmp_9.
|
|
3625
|
+
closeFinally(this.yc6_1, this.zc6_1);
|
|
3626
|
+
tmp_9.xc6_1 = Unit_instance;
|
|
3627
3627
|
this.x9_1 = 20;
|
|
3628
3628
|
continue $sm;
|
|
3629
3629
|
case 17:
|
|
@@ -3632,7 +3632,7 @@
|
|
|
3632
3632
|
if (tmp_10 instanceof Error) {
|
|
3633
3633
|
var e = this.aa_1;
|
|
3634
3634
|
var tmp_11 = this;
|
|
3635
|
-
this.
|
|
3635
|
+
this.zc6_1 = e;
|
|
3636
3636
|
throw e;
|
|
3637
3637
|
} else {
|
|
3638
3638
|
throw this.aa_1;
|
|
@@ -3641,11 +3641,11 @@
|
|
|
3641
3641
|
case 18:
|
|
3642
3642
|
this.y9_1 = 21;
|
|
3643
3643
|
var t = this.aa_1;
|
|
3644
|
-
closeFinally(this.
|
|
3644
|
+
closeFinally(this.yc6_1, this.zc6_1);
|
|
3645
3645
|
throw t;
|
|
3646
3646
|
case 19:
|
|
3647
3647
|
this.y9_1 = 21;
|
|
3648
|
-
closeFinally(this.
|
|
3648
|
+
closeFinally(this.yc6_1, this.zc6_1);
|
|
3649
3649
|
if (false) {
|
|
3650
3650
|
this.x9_1 = 2;
|
|
3651
3651
|
continue $sm;
|
|
@@ -3670,8 +3670,8 @@
|
|
|
3670
3670
|
while (true);
|
|
3671
3671
|
};
|
|
3672
3672
|
protoOf(unixSocketServer$slambda_1).y2q = function ($this$launch, completion) {
|
|
3673
|
-
var i = new unixSocketServer$slambda_1(this.
|
|
3674
|
-
i.
|
|
3673
|
+
var i = new unixSocketServer$slambda_1(this.nc6_1, this.oc6_1, this.pc6_1, this.qc6_1, this.rc6_1, this.sc6_1, completion);
|
|
3674
|
+
i.tc6_1 = $this$launch;
|
|
3675
3675
|
return i;
|
|
3676
3676
|
};
|
|
3677
3677
|
function unixSocketServer$slambda_2($settings, $selector, $socket, $serverJob, $timeout, $handler, resultContinuation) {
|
|
@@ -3717,10 +3717,10 @@
|
|
|
3717
3717
|
function toNetworkAddress(_this__u8e3s4) {
|
|
3718
3718
|
if (!(_this__u8e3s4 instanceof InetSocketAddress))
|
|
3719
3719
|
return null;
|
|
3720
|
-
return NetworkAddress(_this__u8e3s4.
|
|
3720
|
+
return NetworkAddress(_this__u8e3s4.ibm_1, _this__u8e3s4.jbm_1);
|
|
3721
3721
|
}
|
|
3722
3722
|
//region block: post-declaration
|
|
3723
|
-
protoOf(toQueryParameters$1).
|
|
3723
|
+
protoOf(toQueryParameters$1).j4y = forEach;
|
|
3724
3724
|
//endregion
|
|
3725
3725
|
//region block: init
|
|
3726
3726
|
CIO_instance = new CIO();
|