@attocash/commons-js 5.0.0 → 5.1.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/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -112,17 +112,17 @@ function Endpoint$processExpectContinue$slambda$slambda() {
|
|
|
112
112
|
constructor($input, resultContinuation, $box) {
|
|
113
113
|
if ($box === VOID)
|
|
114
114
|
$box = {};
|
|
115
|
-
$box.
|
|
115
|
+
$box.t73_1 = $input;
|
|
116
116
|
super(resultContinuation, $box);
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
var tmp = this.
|
|
118
|
+
v73($this$withTimeoutOrNull, $completion) {
|
|
119
|
+
var tmp = this.d36($this$withTimeoutOrNull, $completion);
|
|
120
120
|
tmp.cc_1 = Unit_instance;
|
|
121
121
|
tmp.dc_1 = null;
|
|
122
122
|
return tmp.ic();
|
|
123
123
|
}
|
|
124
124
|
kd(p1, $completion) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.v73((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
126
126
|
}
|
|
127
127
|
ic() {
|
|
128
128
|
var suspendResult = this.cc_1;
|
|
@@ -133,7 +133,7 @@ function Endpoint$processExpectContinue$slambda$slambda() {
|
|
|
133
133
|
case 0:
|
|
134
134
|
this.bc_1 = 2;
|
|
135
135
|
this.ac_1 = 1;
|
|
136
|
-
suspendResult = this.
|
|
136
|
+
suspendResult = this.t73_1.j3b(VOID, this);
|
|
137
137
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
138
138
|
return suspendResult;
|
|
139
139
|
}
|
|
@@ -155,9 +155,9 @@ function Endpoint$processExpectContinue$slambda$slambda() {
|
|
|
155
155
|
}
|
|
156
156
|
while (true);
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
var i = new (Endpoint$processExpectContinue$slambda$slambda())(this.
|
|
160
|
-
i.
|
|
158
|
+
d36($this$withTimeoutOrNull, completion) {
|
|
159
|
+
var i = new (Endpoint$processExpectContinue$slambda$slambda())(this.t73_1, completion);
|
|
160
|
+
i.u73_1 = $this$withTimeoutOrNull;
|
|
161
161
|
return i;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -169,14 +169,14 @@ function Endpoint$processExpectContinue$slambda$slambda() {
|
|
|
169
169
|
function Endpoint$processExpectContinue$slambda$slambda_0($input, resultContinuation) {
|
|
170
170
|
var i = new (Endpoint$processExpectContinue$slambda$slambda())($input, resultContinuation);
|
|
171
171
|
var l = function ($this$withTimeoutOrNull, $completion) {
|
|
172
|
-
return i.
|
|
172
|
+
return i.v73($this$withTimeoutOrNull, $completion);
|
|
173
173
|
};
|
|
174
174
|
l.$arity = 1;
|
|
175
175
|
return l;
|
|
176
176
|
}
|
|
177
177
|
function Endpoint$connect$slambda$lambda($socketTimeout) {
|
|
178
178
|
return function ($this$connect) {
|
|
179
|
-
$this$connect.
|
|
179
|
+
$this$connect.m6w_1 = $socketTimeout;
|
|
180
180
|
return Unit_instance;
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -208,11 +208,11 @@ function connect($this, requestData, $completion) {
|
|
|
208
208
|
return tmp.ic();
|
|
209
209
|
}
|
|
210
210
|
function getTimeoutException($this, connectAttempts, timeoutFails, request) {
|
|
211
|
-
return timeoutFails === connectAttempts ? ConnectTimeoutException(request) : FailToConnectException().
|
|
211
|
+
return timeoutFails === connectAttempts ? ConnectTimeoutException(request) : FailToConnectException().s76();
|
|
212
212
|
}
|
|
213
213
|
function retrieveTimeouts($this, requestData) {
|
|
214
|
-
var default_0 = to($this.
|
|
215
|
-
var tmp0_elvis_lhs = requestData.
|
|
214
|
+
var default_0 = to($this.s71_1.h72_1.o72_1, $this.s71_1.h72_1.p72_1);
|
|
215
|
+
var tmp0_elvis_lhs = requestData.i5r(HttpTimeoutCapability_instance);
|
|
216
216
|
var tmp;
|
|
217
217
|
if (tmp0_elvis_lhs == null) {
|
|
218
218
|
return default_0;
|
|
@@ -220,15 +220,15 @@ function retrieveTimeouts($this, requestData) {
|
|
|
220
220
|
tmp = tmp0_elvis_lhs;
|
|
221
221
|
}
|
|
222
222
|
var timeoutAttributes = tmp;
|
|
223
|
-
var tmp1_elvis_lhs = timeoutAttributes.
|
|
224
|
-
var socketTimeout = tmp1_elvis_lhs == null ? $this.
|
|
225
|
-
var tmp2_elvis_lhs = timeoutAttributes.
|
|
226
|
-
var connectTimeout = tmp2_elvis_lhs == null ? $this.
|
|
223
|
+
var tmp1_elvis_lhs = timeoutAttributes.q5r();
|
|
224
|
+
var socketTimeout = tmp1_elvis_lhs == null ? $this.s71_1.h72_1.p72_1 : tmp1_elvis_lhs;
|
|
225
|
+
var tmp2_elvis_lhs = timeoutAttributes.p5r();
|
|
226
|
+
var connectTimeout = tmp2_elvis_lhs == null ? $this.s71_1.h72_1.o72_1 : tmp2_elvis_lhs;
|
|
227
227
|
return to(connectTimeout, socketTimeout);
|
|
228
228
|
}
|
|
229
229
|
function releaseConnection($this, address) {
|
|
230
|
-
$this.
|
|
231
|
-
$this.
|
|
230
|
+
$this.t71_1.k73(address);
|
|
231
|
+
$this.y71_1.atomicfu$decrementAndGet();
|
|
232
232
|
}
|
|
233
233
|
var CompanionClass;
|
|
234
234
|
function Companion() {
|
|
@@ -236,7 +236,7 @@ function Companion() {
|
|
|
236
236
|
class $ {
|
|
237
237
|
constructor() {
|
|
238
238
|
Companion_instance = this;
|
|
239
|
-
this.
|
|
239
|
+
this.t76_1 = new (Long())(1000, 0);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
initMetadataForCompanion($);
|
|
@@ -257,17 +257,17 @@ function Endpoint$timeout$slambda() {
|
|
|
257
257
|
constructor(this$0, resultContinuation, $box) {
|
|
258
258
|
if ($box === VOID)
|
|
259
259
|
$box = {};
|
|
260
|
-
$box.
|
|
260
|
+
$box.c77_1 = this$0;
|
|
261
261
|
super(resultContinuation, $box);
|
|
262
262
|
}
|
|
263
|
-
|
|
264
|
-
var tmp = this.
|
|
263
|
+
z37($this$launch, $completion) {
|
|
264
|
+
var tmp = this.d36($this$launch, $completion);
|
|
265
265
|
tmp.cc_1 = Unit_instance;
|
|
266
266
|
tmp.dc_1 = null;
|
|
267
267
|
return tmp.ic();
|
|
268
268
|
}
|
|
269
269
|
kd(p1, $completion) {
|
|
270
|
-
return this.
|
|
270
|
+
return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
271
271
|
}
|
|
272
272
|
ic() {
|
|
273
273
|
var suspendResult = this.cc_1;
|
|
@@ -290,8 +290,8 @@ function Endpoint$timeout$slambda() {
|
|
|
290
290
|
continue $sm;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
this.
|
|
294
|
-
if (this.
|
|
293
|
+
this.f77_1 = this.c77_1.x71_1.kotlinx$atomicfu$value.p3(this.c77_1.a72_1).q3(getTimeMillis());
|
|
294
|
+
if (this.f77_1.a2(new (Long())(0, 0)) <= 0) {
|
|
295
295
|
this.ac_1 = 5;
|
|
296
296
|
continue $sm;
|
|
297
297
|
} else {
|
|
@@ -301,7 +301,7 @@ function Endpoint$timeout$slambda() {
|
|
|
301
301
|
|
|
302
302
|
case 3:
|
|
303
303
|
this.ac_1 = 4;
|
|
304
|
-
suspendResult = delay(this.
|
|
304
|
+
suspendResult = delay(this.f77_1, this);
|
|
305
305
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
306
306
|
return suspendResult;
|
|
307
307
|
}
|
|
@@ -311,7 +311,7 @@ function Endpoint$timeout$slambda() {
|
|
|
311
311
|
this.ac_1 = 2;
|
|
312
312
|
continue $sm;
|
|
313
313
|
case 5:
|
|
314
|
-
this.
|
|
314
|
+
this.e77_1 = Unit_instance;
|
|
315
315
|
this.bc_1 = 8;
|
|
316
316
|
this.ac_1 = 9;
|
|
317
317
|
continue $sm;
|
|
@@ -321,7 +321,7 @@ function Endpoint$timeout$slambda() {
|
|
|
321
321
|
if (tmp_0 instanceof Error) {
|
|
322
322
|
var _unused_var__etf5q3 = this.dc_1;
|
|
323
323
|
var tmp_1 = this;
|
|
324
|
-
tmp_1.
|
|
324
|
+
tmp_1.e77_1 = Unit_instance;
|
|
325
325
|
this.bc_1 = 8;
|
|
326
326
|
this.ac_1 = 9;
|
|
327
327
|
continue $sm;
|
|
@@ -332,15 +332,15 @@ function Endpoint$timeout$slambda() {
|
|
|
332
332
|
case 7:
|
|
333
333
|
this.bc_1 = 8;
|
|
334
334
|
var t = this.dc_1;
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
335
|
+
this.c77_1.z71_1.s2i();
|
|
336
|
+
this.c77_1.v71_1();
|
|
337
337
|
throw t;
|
|
338
338
|
case 8:
|
|
339
339
|
throw this.dc_1;
|
|
340
340
|
case 9:
|
|
341
341
|
this.bc_1 = 8;
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
342
|
+
this.c77_1.z71_1.s2i();
|
|
343
|
+
this.c77_1.v71_1();
|
|
344
344
|
return Unit_instance;
|
|
345
345
|
}
|
|
346
346
|
} catch ($p) {
|
|
@@ -354,9 +354,9 @@ function Endpoint$timeout$slambda() {
|
|
|
354
354
|
}
|
|
355
355
|
while (true);
|
|
356
356
|
}
|
|
357
|
-
|
|
358
|
-
var i = new (Endpoint$timeout$slambda())(this.
|
|
359
|
-
i.
|
|
357
|
+
d36($this$launch, completion) {
|
|
358
|
+
var i = new (Endpoint$timeout$slambda())(this.c77_1, completion);
|
|
359
|
+
i.d77_1 = $this$launch;
|
|
360
360
|
return i;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
@@ -368,7 +368,7 @@ function Endpoint$timeout$slambda() {
|
|
|
368
368
|
function Endpoint$timeout$slambda_0(this$0, resultContinuation) {
|
|
369
369
|
var i = new (Endpoint$timeout$slambda())(this$0, resultContinuation);
|
|
370
370
|
var l = function ($this$launch, $completion) {
|
|
371
|
-
return i.
|
|
371
|
+
return i.z37($this$launch, $completion);
|
|
372
372
|
};
|
|
373
373
|
l.$arity = 1;
|
|
374
374
|
return l;
|
|
@@ -378,15 +378,15 @@ function Endpoint$makeDedicatedRequest$lambda($input, $originOutput, $connection
|
|
|
378
378
|
var originCause = cause == null ? null : unwrapCancellationException(cause);
|
|
379
379
|
var tmp;
|
|
380
380
|
try {
|
|
381
|
-
$input.
|
|
381
|
+
$input.l3b(originCause);
|
|
382
382
|
close($originOutput, originCause);
|
|
383
|
-
$connection.
|
|
383
|
+
$connection.s6w_1.v5();
|
|
384
384
|
tmp = Unit_instance;
|
|
385
385
|
} catch ($p) {
|
|
386
386
|
var tmp_0;
|
|
387
387
|
if ($p instanceof Error) {
|
|
388
388
|
var cause_0 = $p;
|
|
389
|
-
get_LOGGER().
|
|
389
|
+
get_LOGGER().f3y('An error occurred while closing connection', cause_0);
|
|
390
390
|
tmp_0 = Unit_instance;
|
|
391
391
|
} else {
|
|
392
392
|
throw $p;
|
|
@@ -406,23 +406,23 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
406
406
|
constructor($request, $output, $overProxy, $requestTime, $input, $originOutput, $callContext, resultContinuation, $box) {
|
|
407
407
|
if ($box === VOID)
|
|
408
408
|
$box = {};
|
|
409
|
-
$box.
|
|
410
|
-
$box.
|
|
411
|
-
$box.
|
|
412
|
-
$box.
|
|
413
|
-
$box.
|
|
414
|
-
$box.
|
|
415
|
-
$box.
|
|
409
|
+
$box.o77_1 = $request;
|
|
410
|
+
$box.p77_1 = $output;
|
|
411
|
+
$box.q77_1 = $overProxy;
|
|
412
|
+
$box.r77_1 = $requestTime;
|
|
413
|
+
$box.s77_1 = $input;
|
|
414
|
+
$box.t77_1 = $originOutput;
|
|
415
|
+
$box.u77_1 = $callContext;
|
|
416
416
|
super(resultContinuation, $box);
|
|
417
417
|
}
|
|
418
|
-
|
|
419
|
-
var tmp = this.
|
|
418
|
+
c58($this$withContext, $completion) {
|
|
419
|
+
var tmp = this.d36($this$withContext, $completion);
|
|
420
420
|
tmp.cc_1 = Unit_instance;
|
|
421
421
|
tmp.dc_1 = null;
|
|
422
422
|
return tmp.ic();
|
|
423
423
|
}
|
|
424
424
|
kd(p1, $completion) {
|
|
425
|
-
return this.
|
|
425
|
+
return this.c58((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
426
426
|
}
|
|
427
427
|
ic() {
|
|
428
428
|
var suspendResult = this.cc_1;
|
|
@@ -433,7 +433,7 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
433
433
|
case 0:
|
|
434
434
|
this.bc_1 = 11;
|
|
435
435
|
this.ac_1 = 1;
|
|
436
|
-
suspendResult = writeHeaders(this.
|
|
436
|
+
suspendResult = writeHeaders(this.o77_1, this.p77_1, this.q77_1, VOID, this);
|
|
437
437
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
438
438
|
return suspendResult;
|
|
439
439
|
}
|
|
@@ -442,24 +442,24 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
442
442
|
case 1:
|
|
443
443
|
this.ac_1 = 2;
|
|
444
444
|
var tmp_0 = new (Long())(1000, 0);
|
|
445
|
-
suspendResult = withTimeoutOrNull(tmp_0, Endpoint$processExpectContinue$slambda$slambda_0(this.
|
|
445
|
+
suspendResult = withTimeoutOrNull(tmp_0, Endpoint$processExpectContinue$slambda$slambda_0(this.s77_1, null), this);
|
|
446
446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
447
447
|
return suspendResult;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
continue $sm;
|
|
451
451
|
case 2:
|
|
452
|
-
this.
|
|
453
|
-
if (!(this.
|
|
452
|
+
this.w77_1 = suspendResult;
|
|
453
|
+
if (!(this.w77_1 == null)) {
|
|
454
454
|
this.ac_1 = 4;
|
|
455
|
-
suspendResult = readResponse(this.
|
|
455
|
+
suspendResult = readResponse(this.r77_1, this.o77_1, this.s77_1, this.t77_1, this.u77_1, this);
|
|
456
456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
457
457
|
return suspendResult;
|
|
458
458
|
}
|
|
459
459
|
continue $sm;
|
|
460
460
|
} else {
|
|
461
461
|
this.ac_1 = 3;
|
|
462
|
-
suspendResult = writeBody(this.
|
|
462
|
+
suspendResult = writeBody(this.o77_1, this.p77_1, this.u77_1, VOID, this);
|
|
463
463
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
464
464
|
return suspendResult;
|
|
465
465
|
}
|
|
@@ -470,31 +470,31 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
470
470
|
this.ac_1 = 9;
|
|
471
471
|
continue $sm;
|
|
472
472
|
case 4:
|
|
473
|
-
this.
|
|
474
|
-
this.
|
|
475
|
-
if (this.
|
|
473
|
+
this.x77_1 = suspendResult;
|
|
474
|
+
this.y77_1 = this.x77_1.b54_1;
|
|
475
|
+
if (this.y77_1.equals(Companion_getInstance().d48_1)) {
|
|
476
476
|
var tmp_1 = this;
|
|
477
477
|
var this_0 = new (HttpRequestBuilder())();
|
|
478
|
-
takeFrom(this_0, this.
|
|
479
|
-
this_0.
|
|
480
|
-
tmp_1.
|
|
478
|
+
takeFrom(this_0, this.o77_1);
|
|
479
|
+
this_0.p50_1.t3t(HttpHeaders_getInstance().g42_1);
|
|
480
|
+
tmp_1.z77_1 = this_0.z1i();
|
|
481
481
|
this.ac_1 = 7;
|
|
482
|
-
suspendResult = writeRequest(this.
|
|
482
|
+
suspendResult = writeRequest(this.z77_1, this.p77_1, this.u77_1, this.q77_1, VOID, this);
|
|
483
483
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
484
484
|
return suspendResult;
|
|
485
485
|
}
|
|
486
486
|
continue $sm;
|
|
487
487
|
} else {
|
|
488
|
-
if (this.
|
|
488
|
+
if (this.y77_1.equals(Companion_getInstance().s46_1)) {
|
|
489
489
|
this.ac_1 = 6;
|
|
490
|
-
suspendResult = writeBody(this.
|
|
490
|
+
suspendResult = writeBody(this.o77_1, this.p77_1, this.u77_1, VOID, this);
|
|
491
491
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
492
492
|
return suspendResult;
|
|
493
493
|
}
|
|
494
494
|
continue $sm;
|
|
495
495
|
} else {
|
|
496
496
|
this.ac_1 = 5;
|
|
497
|
-
suspendResult = this.
|
|
497
|
+
suspendResult = this.p77_1.k3b(this);
|
|
498
498
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
499
499
|
return suspendResult;
|
|
500
500
|
}
|
|
@@ -503,7 +503,7 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
case 5:
|
|
506
|
-
return this.
|
|
506
|
+
return this.x77_1;
|
|
507
507
|
case 6:
|
|
508
508
|
this.ac_1 = 8;
|
|
509
509
|
continue $sm;
|
|
@@ -515,7 +515,7 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
515
515
|
continue $sm;
|
|
516
516
|
case 9:
|
|
517
517
|
this.ac_1 = 10;
|
|
518
|
-
suspendResult = readResponse(this.
|
|
518
|
+
suspendResult = readResponse(this.r77_1, this.o77_1, this.s77_1, this.t77_1, this.u77_1, this);
|
|
519
519
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
520
520
|
return suspendResult;
|
|
521
521
|
}
|
|
@@ -537,9 +537,9 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
537
537
|
}
|
|
538
538
|
while (true);
|
|
539
539
|
}
|
|
540
|
-
|
|
541
|
-
var i = new (Endpoint$processExpectContinue$slambda())(this.
|
|
542
|
-
i.
|
|
540
|
+
d36($this$withContext, completion) {
|
|
541
|
+
var i = new (Endpoint$processExpectContinue$slambda())(this.o77_1, this.p77_1, this.q77_1, this.r77_1, this.s77_1, this.t77_1, this.u77_1, completion);
|
|
542
|
+
i.v77_1 = $this$withContext;
|
|
543
543
|
return i;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
@@ -551,7 +551,7 @@ function Endpoint$processExpectContinue$slambda() {
|
|
|
551
551
|
function Endpoint$processExpectContinue$slambda_0($request, $output, $overProxy, $requestTime, $input, $originOutput, $callContext, resultContinuation) {
|
|
552
552
|
var i = new (Endpoint$processExpectContinue$slambda())($request, $output, $overProxy, $requestTime, $input, $originOutput, $callContext, resultContinuation);
|
|
553
553
|
var l = function ($this$withContext, $completion) {
|
|
554
|
-
return i.
|
|
554
|
+
return i.c58($this$withContext, $completion);
|
|
555
555
|
};
|
|
556
556
|
l.$arity = 1;
|
|
557
557
|
return l;
|
|
@@ -569,19 +569,19 @@ function Endpoint$connect$slambda() {
|
|
|
569
569
|
constructor(this$0, $address, $socketTimeout, resultContinuation, $box) {
|
|
570
570
|
if ($box === VOID)
|
|
571
571
|
$box = {};
|
|
572
|
-
$box.
|
|
573
|
-
$box.
|
|
574
|
-
$box.
|
|
572
|
+
$box.i78_1 = this$0;
|
|
573
|
+
$box.j78_1 = $address;
|
|
574
|
+
$box.k78_1 = $socketTimeout;
|
|
575
575
|
super(resultContinuation, $box);
|
|
576
576
|
}
|
|
577
|
-
|
|
578
|
-
var tmp = this.
|
|
577
|
+
m78(_this__u8e3s4, $completion) {
|
|
578
|
+
var tmp = this.d36(_this__u8e3s4, $completion);
|
|
579
579
|
tmp.cc_1 = Unit_instance;
|
|
580
580
|
tmp.dc_1 = null;
|
|
581
581
|
return tmp.ic();
|
|
582
582
|
}
|
|
583
583
|
kd(p1, $completion) {
|
|
584
|
-
return this.
|
|
584
|
+
return this.m78((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
585
585
|
}
|
|
586
586
|
ic() {
|
|
587
587
|
var suspendResult = this.cc_1;
|
|
@@ -592,7 +592,7 @@ function Endpoint$connect$slambda() {
|
|
|
592
592
|
case 0:
|
|
593
593
|
this.bc_1 = 2;
|
|
594
594
|
this.ac_1 = 1;
|
|
595
|
-
suspendResult = this.
|
|
595
|
+
suspendResult = this.i78_1.t71_1.x6w(this.j78_1, Endpoint$connect$slambda$lambda(this.k78_1), this);
|
|
596
596
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
597
597
|
return suspendResult;
|
|
598
598
|
}
|
|
@@ -614,9 +614,9 @@ function Endpoint$connect$slambda() {
|
|
|
614
614
|
}
|
|
615
615
|
while (true);
|
|
616
616
|
}
|
|
617
|
-
|
|
618
|
-
var i = new (Endpoint$connect$slambda())(this.
|
|
619
|
-
i.
|
|
617
|
+
d36(_this__u8e3s4, completion) {
|
|
618
|
+
var i = new (Endpoint$connect$slambda())(this.i78_1, this.j78_1, this.k78_1, completion);
|
|
619
|
+
i.l78_1 = _this__u8e3s4;
|
|
620
620
|
return i;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
@@ -628,17 +628,17 @@ function Endpoint$connect$slambda() {
|
|
|
628
628
|
function Endpoint$connect$slambda_0(this$0, $address, $socketTimeout, resultContinuation) {
|
|
629
629
|
var i = new (Endpoint$connect$slambda())(this$0, $address, $socketTimeout, resultContinuation);
|
|
630
630
|
var l = function (_this__u8e3s4, $completion) {
|
|
631
|
-
return i.
|
|
631
|
+
return i.m78(_this__u8e3s4, $completion);
|
|
632
632
|
};
|
|
633
633
|
l.$arity = 1;
|
|
634
634
|
return l;
|
|
635
635
|
}
|
|
636
636
|
function Endpoint$connect$lambda(this$0, $realAddress) {
|
|
637
637
|
return function ($this$tls) {
|
|
638
|
-
takeFrom_0($this$tls, this$0.
|
|
638
|
+
takeFrom_0($this$tls, this$0.s71_1.i72_1);
|
|
639
639
|
var tmp = $this$tls;
|
|
640
|
-
var tmp0_elvis_lhs = $this$tls.
|
|
641
|
-
tmp.
|
|
640
|
+
var tmp0_elvis_lhs = $this$tls.m6z_1;
|
|
641
|
+
tmp.m6z_1 = tmp0_elvis_lhs == null ? $realAddress.i6z_1 : tmp0_elvis_lhs;
|
|
642
642
|
return Unit_instance;
|
|
643
643
|
};
|
|
644
644
|
}
|
|
@@ -648,9 +648,9 @@ function $executeCOROUTINE$() {
|
|
|
648
648
|
class $ extends CoroutineImpl() {
|
|
649
649
|
constructor(_this__u8e3s4, request, callContext, resultContinuation) {
|
|
650
650
|
super(resultContinuation);
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
651
|
+
this.v78_1 = _this__u8e3s4;
|
|
652
|
+
this.w78_1 = request;
|
|
653
|
+
this.x78_1 = callContext;
|
|
654
654
|
}
|
|
655
655
|
ic() {
|
|
656
656
|
var suspendResult = this.cc_1;
|
|
@@ -660,10 +660,10 @@ function $executeCOROUTINE$() {
|
|
|
660
660
|
switch (tmp) {
|
|
661
661
|
case 0:
|
|
662
662
|
this.bc_1 = 6;
|
|
663
|
-
this.
|
|
664
|
-
if (!this.
|
|
663
|
+
this.v78_1.x71_1.kotlinx$atomicfu$value = getTimeMillis();
|
|
664
|
+
if (!this.v78_1.s71_1.m58_1 || requiresDedicatedConnection(this.w78_1)) {
|
|
665
665
|
this.ac_1 = 5;
|
|
666
|
-
suspendResult = makeDedicatedRequest(this.
|
|
666
|
+
suspendResult = makeDedicatedRequest(this.v78_1, this.w78_1, this.x78_1, this);
|
|
667
667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
668
668
|
return suspendResult;
|
|
669
669
|
}
|
|
@@ -674,11 +674,11 @@ function $executeCOROUTINE$() {
|
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
case 1:
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
677
|
+
this.y78_1 = CompletableDeferred();
|
|
678
|
+
this.z78_1 = new (RequestTask())(this.w78_1, this.y78_1, this.x78_1);
|
|
679
679
|
this.bc_1 = 4;
|
|
680
680
|
this.ac_1 = 2;
|
|
681
|
-
suspendResult = makePipelineRequest(this.
|
|
681
|
+
suspendResult = makePipelineRequest(this.v78_1, this.z78_1, this);
|
|
682
682
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
683
683
|
return suspendResult;
|
|
684
684
|
}
|
|
@@ -686,7 +686,7 @@ function $executeCOROUTINE$() {
|
|
|
686
686
|
continue $sm;
|
|
687
687
|
case 2:
|
|
688
688
|
this.ac_1 = 3;
|
|
689
|
-
suspendResult = this.
|
|
689
|
+
suspendResult = this.y78_1.b21(this);
|
|
690
690
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
691
691
|
return suspendResult;
|
|
692
692
|
}
|
|
@@ -699,7 +699,7 @@ function $executeCOROUTINE$() {
|
|
|
699
699
|
var tmp_0 = this.dc_1;
|
|
700
700
|
if (tmp_0 instanceof Error) {
|
|
701
701
|
var cause = this.dc_1;
|
|
702
|
-
this.
|
|
702
|
+
this.z78_1.b79_1.c25(cause);
|
|
703
703
|
throw cause;
|
|
704
704
|
} else {
|
|
705
705
|
throw this.dc_1;
|
|
@@ -733,8 +733,8 @@ function $makePipelineRequestCOROUTINE$() {
|
|
|
733
733
|
class $ extends CoroutineImpl() {
|
|
734
734
|
constructor(_this__u8e3s4, task, resultContinuation) {
|
|
735
735
|
super(resultContinuation);
|
|
736
|
-
this.
|
|
737
|
-
this.
|
|
736
|
+
this.e74_1 = _this__u8e3s4;
|
|
737
|
+
this.f74_1 = task;
|
|
738
738
|
}
|
|
739
739
|
ic() {
|
|
740
740
|
var suspendResult = this.cc_1;
|
|
@@ -744,13 +744,13 @@ function $makePipelineRequestCOROUTINE$() {
|
|
|
744
744
|
switch (tmp) {
|
|
745
745
|
case 0:
|
|
746
746
|
this.bc_1 = 6;
|
|
747
|
-
if (_ChannelResult___get_isSuccess__impl__odq1z9(this.
|
|
747
|
+
if (_ChannelResult___get_isSuccess__impl__odq1z9(this.e74_1.z71_1.f2i(this.f74_1)))
|
|
748
748
|
return Unit_instance;
|
|
749
|
-
this.
|
|
750
|
-
if (this.
|
|
749
|
+
this.g74_1 = this.e74_1.y71_1.kotlinx$atomicfu$value;
|
|
750
|
+
if (this.g74_1 < this.e74_1.s71_1.h72_1.l72_1) {
|
|
751
751
|
this.bc_1 = 5;
|
|
752
752
|
this.ac_1 = 1;
|
|
753
|
-
suspendResult = createPipeline(this.
|
|
753
|
+
suspendResult = createPipeline(this.e74_1, this.f74_1.a79_1, this);
|
|
754
754
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
755
755
|
return suspendResult;
|
|
756
756
|
}
|
|
@@ -770,7 +770,7 @@ function $makePipelineRequestCOROUTINE$() {
|
|
|
770
770
|
continue $sm;
|
|
771
771
|
case 3:
|
|
772
772
|
this.ac_1 = 4;
|
|
773
|
-
suspendResult = this.
|
|
773
|
+
suspendResult = this.e74_1.z71_1.e2i(this.f74_1, this);
|
|
774
774
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
775
775
|
return suspendResult;
|
|
776
776
|
}
|
|
@@ -783,7 +783,7 @@ function $makePipelineRequestCOROUTINE$() {
|
|
|
783
783
|
var tmp_0 = this.dc_1;
|
|
784
784
|
if (tmp_0 instanceof Error) {
|
|
785
785
|
var cause = this.dc_1;
|
|
786
|
-
this.
|
|
786
|
+
this.f74_1.b79_1.c25(cause);
|
|
787
787
|
throw cause;
|
|
788
788
|
} else {
|
|
789
789
|
throw this.dc_1;
|
|
@@ -815,9 +815,9 @@ function $makeDedicatedRequestCOROUTINE$() {
|
|
|
815
815
|
class $ extends CoroutineImpl() {
|
|
816
816
|
constructor(_this__u8e3s4, request, callContext, resultContinuation) {
|
|
817
817
|
super(resultContinuation);
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
818
|
+
this.p74_1 = _this__u8e3s4;
|
|
819
|
+
this.q74_1 = request;
|
|
820
|
+
this.r74_1 = callContext;
|
|
821
821
|
}
|
|
822
822
|
ic() {
|
|
823
823
|
var suspendResult = this.cc_1;
|
|
@@ -829,35 +829,35 @@ function $makeDedicatedRequestCOROUTINE$() {
|
|
|
829
829
|
this.bc_1 = 7;
|
|
830
830
|
this.bc_1 = 6;
|
|
831
831
|
this.ac_1 = 1;
|
|
832
|
-
suspendResult = connect(this.
|
|
832
|
+
suspendResult = connect(this.p74_1, this.q74_1, this);
|
|
833
833
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
834
834
|
return suspendResult;
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
continue $sm;
|
|
838
838
|
case 1:
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
var tmp_0 = ensureNotNull(this.
|
|
846
|
-
tmp_0.v1y(Endpoint$makeDedicatedRequest$lambda(this.
|
|
847
|
-
this.
|
|
848
|
-
setupTimeout(this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
851
|
-
if (expectContinue(this.
|
|
839
|
+
this.s74_1 = suspendResult;
|
|
840
|
+
this.t74_1 = this.s74_1.gl();
|
|
841
|
+
this.u74_1 = this.s74_1.hl();
|
|
842
|
+
this.v74_1 = this.u74_1.t6w_1;
|
|
843
|
+
this.w74_1 = this.u74_1.u6w_1;
|
|
844
|
+
this.x74_1 = handleHalfClosed(this.w74_1, this.r74_1, this.p74_1.s71_1.h72_1.r72_1);
|
|
845
|
+
var tmp_0 = ensureNotNull(this.r74_1.nc(Key_instance));
|
|
846
|
+
tmp_0.v1y(Endpoint$makeDedicatedRequest$lambda(this.v74_1, this.w74_1, this.u74_1, this.p74_1, this.t74_1));
|
|
847
|
+
this.y74_1 = getRequestTimeout(this.q74_1, this.p74_1.s71_1);
|
|
848
|
+
setupTimeout(this.r74_1, this.q74_1, this.y74_1);
|
|
849
|
+
this.z74_1 = GMTDate();
|
|
850
|
+
this.a75_1 = !(this.p74_1.q71_1 == null);
|
|
851
|
+
if (expectContinue(this.q74_1.s56_1.c3s(HttpHeaders_getInstance().g42_1), this.q74_1.t56_1)) {
|
|
852
852
|
this.ac_1 = 4;
|
|
853
|
-
suspendResult = processExpectContinue(this.
|
|
853
|
+
suspendResult = processExpectContinue(this.p74_1, this.q74_1, this.v74_1, this.x74_1, this.w74_1, this.r74_1, this.z74_1, this.a75_1, this);
|
|
854
854
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
855
855
|
return suspendResult;
|
|
856
856
|
}
|
|
857
857
|
continue $sm;
|
|
858
858
|
} else {
|
|
859
859
|
this.ac_1 = 2;
|
|
860
|
-
suspendResult = writeRequest(this.
|
|
860
|
+
suspendResult = writeRequest(this.q74_1, this.x74_1, this.r74_1, this.a75_1, VOID, this);
|
|
861
861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
862
862
|
return suspendResult;
|
|
863
863
|
}
|
|
@@ -866,28 +866,28 @@ function $makeDedicatedRequestCOROUTINE$() {
|
|
|
866
866
|
|
|
867
867
|
case 2:
|
|
868
868
|
this.ac_1 = 3;
|
|
869
|
-
suspendResult = readResponse(this.
|
|
869
|
+
suspendResult = readResponse(this.z74_1, this.q74_1, this.v74_1, this.w74_1, this.r74_1, this);
|
|
870
870
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
871
871
|
return suspendResult;
|
|
872
872
|
}
|
|
873
873
|
|
|
874
874
|
continue $sm;
|
|
875
875
|
case 3:
|
|
876
|
-
this.
|
|
876
|
+
this.b75_1 = suspendResult;
|
|
877
877
|
this.ac_1 = 5;
|
|
878
878
|
continue $sm;
|
|
879
879
|
case 4:
|
|
880
|
-
this.
|
|
880
|
+
this.b75_1 = suspendResult;
|
|
881
881
|
this.ac_1 = 5;
|
|
882
882
|
continue $sm;
|
|
883
883
|
case 5:
|
|
884
|
-
return this.
|
|
884
|
+
return this.b75_1;
|
|
885
885
|
case 6:
|
|
886
886
|
this.bc_1 = 7;
|
|
887
887
|
var tmp_1 = this.dc_1;
|
|
888
888
|
if (tmp_1 instanceof Error) {
|
|
889
889
|
var cause = this.dc_1;
|
|
890
|
-
throw mapToKtor(cause, this.
|
|
890
|
+
throw mapToKtor(cause, this.q74_1);
|
|
891
891
|
} else {
|
|
892
892
|
throw this.dc_1;
|
|
893
893
|
}
|
|
@@ -918,8 +918,8 @@ function $createPipelineCOROUTINE$() {
|
|
|
918
918
|
class $ extends CoroutineImpl() {
|
|
919
919
|
constructor(_this__u8e3s4, request, resultContinuation) {
|
|
920
920
|
super(resultContinuation);
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
921
|
+
this.k75_1 = _this__u8e3s4;
|
|
922
|
+
this.l75_1 = request;
|
|
923
923
|
}
|
|
924
924
|
ic() {
|
|
925
925
|
var suspendResult = this.cc_1;
|
|
@@ -930,7 +930,7 @@ function $createPipelineCOROUTINE$() {
|
|
|
930
930
|
case 0:
|
|
931
931
|
this.bc_1 = 2;
|
|
932
932
|
this.ac_1 = 1;
|
|
933
|
-
suspendResult = connect(this.
|
|
933
|
+
suspendResult = connect(this.k75_1, this.l75_1, this);
|
|
934
934
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
935
935
|
return suspendResult;
|
|
936
936
|
}
|
|
@@ -940,9 +940,9 @@ function $createPipelineCOROUTINE$() {
|
|
|
940
940
|
var _destruct__k2r9zo = suspendResult;
|
|
941
941
|
var address = _destruct__k2r9zo.gl();
|
|
942
942
|
var connection = _destruct__k2r9zo.hl();
|
|
943
|
-
var pipeline = new (ConnectionPipeline())(this.
|
|
944
|
-
var tmp_0 = pipeline.
|
|
945
|
-
tmp_0.v1y(Endpoint$createPipeline$lambda(this.
|
|
943
|
+
var pipeline = new (ConnectionPipeline())(this.k75_1.s71_1.h72_1.m72_1, this.k75_1.s71_1.h72_1.n72_1, connection, !(this.k75_1.q71_1 == null), this.k75_1.z71_1, this.k75_1.u71_1);
|
|
944
|
+
var tmp_0 = pipeline.e79();
|
|
945
|
+
tmp_0.v1y(Endpoint$createPipeline$lambda(this.k75_1, address));
|
|
946
946
|
return Unit_instance;
|
|
947
947
|
case 2:
|
|
948
948
|
throw this.dc_1;
|
|
@@ -970,8 +970,8 @@ function $connectCOROUTINE$() {
|
|
|
970
970
|
class $ extends CoroutineImpl() {
|
|
971
971
|
constructor(_this__u8e3s4, requestData, resultContinuation) {
|
|
972
972
|
super(resultContinuation);
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
973
|
+
this.u75_1 = _this__u8e3s4;
|
|
974
|
+
this.v75_1 = requestData;
|
|
975
975
|
}
|
|
976
976
|
ic() {
|
|
977
977
|
var suspendResult = this.cc_1;
|
|
@@ -981,54 +981,54 @@ function $connectCOROUTINE$() {
|
|
|
981
981
|
switch (tmp) {
|
|
982
982
|
case 0:
|
|
983
983
|
this.bc_1 = 15;
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
984
|
+
this.w75_1 = this.u75_1.s71_1.h72_1.q72_1;
|
|
985
|
+
this.x75_1 = retrieveTimeouts(this.u75_1, this.v75_1);
|
|
986
|
+
this.y75_1 = this.x75_1.gl();
|
|
987
|
+
this.z75_1 = this.x75_1.hl();
|
|
988
|
+
this.a76_1 = 0;
|
|
989
|
+
this.u75_1.y71_1.atomicfu$incrementAndGet();
|
|
990
990
|
this.bc_1 = 14;
|
|
991
991
|
var tmp_0 = this;
|
|
992
|
-
tmp_0.
|
|
993
|
-
this.
|
|
994
|
-
this.
|
|
992
|
+
tmp_0.b76_1 = this.w75_1;
|
|
993
|
+
this.c76_1 = this.b76_1;
|
|
994
|
+
this.d76_1 = until(0, this.c76_1).d1();
|
|
995
995
|
this.ac_1 = 1;
|
|
996
996
|
continue $sm;
|
|
997
997
|
case 1:
|
|
998
|
-
if (!this.
|
|
998
|
+
if (!this.d76_1.e1()) {
|
|
999
999
|
this.ac_1 = 12;
|
|
1000
1000
|
continue $sm;
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
|
-
this.
|
|
1003
|
+
this.e76_1 = this.d76_1.f1();
|
|
1004
1004
|
var tmp_1 = this;
|
|
1005
|
-
tmp_1.
|
|
1005
|
+
tmp_1.f76_1 = this.e76_1;
|
|
1006
1006
|
this.ac_1 = 2;
|
|
1007
1007
|
continue $sm;
|
|
1008
1008
|
case 2:
|
|
1009
|
-
this.
|
|
1009
|
+
this.h76_1 = this.f76_1;
|
|
1010
1010
|
var tmp_2 = this;
|
|
1011
1011
|
var tmp_3;
|
|
1012
|
-
if (!(this.
|
|
1013
|
-
tmp_3 = new (UnixSocketAddress())(this.
|
|
1012
|
+
if (!(this.u75_1.w71_1 == null)) {
|
|
1013
|
+
tmp_3 = new (UnixSocketAddress())(this.u75_1.w71_1.a70_1);
|
|
1014
1014
|
} else {
|
|
1015
|
-
tmp_3 = new (InetSocketAddress())(this.
|
|
1015
|
+
tmp_3 = new (InetSocketAddress())(this.u75_1.o71_1, this.u75_1.p71_1);
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
|
-
tmp_2.
|
|
1018
|
+
tmp_2.i76_1 = tmp_3;
|
|
1019
1019
|
var tmp_4 = this;
|
|
1020
|
-
tmp_4.
|
|
1021
|
-
this.
|
|
1022
|
-
if (this.
|
|
1020
|
+
tmp_4.j76_1 = Endpoint$connect$slambda_0(this.u75_1, this.i76_1, this.z75_1, null);
|
|
1021
|
+
this.k76_1 = this.y75_1;
|
|
1022
|
+
if (this.k76_1.equals(new (Long())(-1, 2147483647))) {
|
|
1023
1023
|
this.ac_1 = 6;
|
|
1024
|
-
suspendResult = this.
|
|
1024
|
+
suspendResult = this.j76_1(this.u75_1, this);
|
|
1025
1025
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1026
1026
|
return suspendResult;
|
|
1027
1027
|
}
|
|
1028
1028
|
continue $sm;
|
|
1029
1029
|
} else {
|
|
1030
1030
|
this.ac_1 = 3;
|
|
1031
|
-
suspendResult = withTimeoutOrNull(this.
|
|
1031
|
+
suspendResult = withTimeoutOrNull(this.y75_1, this.j76_1, this);
|
|
1032
1032
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1033
1033
|
return suspendResult;
|
|
1034
1034
|
}
|
|
@@ -1036,10 +1036,10 @@ function $connectCOROUTINE$() {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
|
|
1038
1038
|
case 3:
|
|
1039
|
-
this.
|
|
1040
|
-
if (this.
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1039
|
+
this.m76_1 = suspendResult;
|
|
1040
|
+
if (this.m76_1 == null) {
|
|
1041
|
+
this.a76_1 = this.a76_1 + 1 | 0;
|
|
1042
|
+
this.g76_1 = Unit_instance;
|
|
1043
1043
|
this.ac_1 = 5;
|
|
1044
1044
|
continue $sm;
|
|
1045
1045
|
} else {
|
|
@@ -1048,26 +1048,26 @@ function $connectCOROUTINE$() {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
1050
|
case 4:
|
|
1051
|
-
this.
|
|
1051
|
+
this.l76_1 = this.m76_1;
|
|
1052
1052
|
this.ac_1 = 7;
|
|
1053
1053
|
continue $sm;
|
|
1054
1054
|
case 5:
|
|
1055
1055
|
this.ac_1 = 1;
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
case 6:
|
|
1058
|
-
this.
|
|
1058
|
+
this.l76_1 = suspendResult;
|
|
1059
1059
|
this.ac_1 = 7;
|
|
1060
1060
|
continue $sm;
|
|
1061
1061
|
case 7:
|
|
1062
|
-
this.
|
|
1062
|
+
this.n76_1 = this.l76_1;
|
|
1063
1063
|
this.bc_1 = 11;
|
|
1064
|
-
this.
|
|
1065
|
-
if (!this.
|
|
1066
|
-
return to(this.
|
|
1067
|
-
var tmp1_safe_receiver = this.
|
|
1064
|
+
this.o76_1 = connection(this.n76_1);
|
|
1065
|
+
if (!this.u75_1.r71_1)
|
|
1066
|
+
return to(this.i76_1, this.o76_1);
|
|
1067
|
+
var tmp1_safe_receiver = this.u75_1.q71_1;
|
|
1068
1068
|
if (equals(tmp1_safe_receiver == null ? null : get_type(tmp1_safe_receiver), ProxyType_HTTP_getInstance())) {
|
|
1069
1069
|
this.ac_1 = 8;
|
|
1070
|
-
suspendResult = startTunnel(this.
|
|
1070
|
+
suspendResult = startTunnel(this.v75_1, this.o76_1.u6w_1, this.o76_1.t6w_1, this);
|
|
1071
1071
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1072
1072
|
return suspendResult;
|
|
1073
1073
|
}
|
|
@@ -1081,14 +1081,14 @@ function $connectCOROUTINE$() {
|
|
|
1081
1081
|
this.ac_1 = 9;
|
|
1082
1082
|
continue $sm;
|
|
1083
1083
|
case 9:
|
|
1084
|
-
if (!(this.
|
|
1084
|
+
if (!(this.u75_1.w71_1 == null)) {
|
|
1085
1085
|
throw IllegalArgumentException().u('TLS over Unix sockets is not supported');
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
var tmp_5 = this;
|
|
1089
1089
|
var tmp_6;
|
|
1090
|
-
if (this.
|
|
1091
|
-
var tmp_7 = this.
|
|
1090
|
+
if (this.u75_1.q71_1 == null) {
|
|
1091
|
+
var tmp_7 = this.i76_1;
|
|
1092
1092
|
var tmp3_elvis_lhs = tmp_7 instanceof InetSocketAddress() ? tmp_7 : null;
|
|
1093
1093
|
var tmp_8;
|
|
1094
1094
|
if (tmp3_elvis_lhs == null) {
|
|
@@ -1098,12 +1098,12 @@ function $connectCOROUTINE$() {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
tmp_6 = tmp_8;
|
|
1100
1100
|
} else {
|
|
1101
|
-
tmp_6 = new (InetSocketAddress())(this.
|
|
1101
|
+
tmp_6 = new (InetSocketAddress())(this.v75_1.q56_1.o49_1, this.v75_1.q56_1.g4b());
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
|
-
tmp_5.
|
|
1104
|
+
tmp_5.p76_1 = tmp_6;
|
|
1105
1105
|
this.ac_1 = 10;
|
|
1106
|
-
suspendResult = tls(this.
|
|
1106
|
+
suspendResult = tls(this.o76_1, this.u75_1.u71_1, Endpoint$connect$lambda(this.u75_1, this.p76_1), this);
|
|
1107
1107
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1108
1108
|
return suspendResult;
|
|
1109
1109
|
}
|
|
@@ -1111,14 +1111,14 @@ function $connectCOROUTINE$() {
|
|
|
1111
1111
|
continue $sm;
|
|
1112
1112
|
case 10:
|
|
1113
1113
|
var tlsSocket = suspendResult;
|
|
1114
|
-
return to(this.
|
|
1114
|
+
return to(this.i76_1, connection(tlsSocket));
|
|
1115
1115
|
case 11:
|
|
1116
1116
|
this.bc_1 = 14;
|
|
1117
1117
|
var tmp_9 = this.dc_1;
|
|
1118
1118
|
if (tmp_9 instanceof Error) {
|
|
1119
1119
|
var cause = this.dc_1;
|
|
1120
1120
|
try {
|
|
1121
|
-
this.
|
|
1121
|
+
this.n76_1.v5();
|
|
1122
1122
|
} catch ($p) {
|
|
1123
1123
|
if ($p instanceof Error) {
|
|
1124
1124
|
var _unused_var__etf5q3 = $p;
|
|
@@ -1126,7 +1126,7 @@ function $connectCOROUTINE$() {
|
|
|
1126
1126
|
throw $p;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
this.
|
|
1129
|
+
this.u75_1.t71_1.k73(this.i76_1);
|
|
1130
1130
|
throw cause;
|
|
1131
1131
|
} else {
|
|
1132
1132
|
throw this.dc_1;
|
|
@@ -1138,14 +1138,14 @@ function $connectCOROUTINE$() {
|
|
|
1138
1138
|
continue $sm;
|
|
1139
1139
|
case 13:
|
|
1140
1140
|
this.bc_1 = 15;
|
|
1141
|
-
this.
|
|
1142
|
-
throw getTimeoutException(this.
|
|
1141
|
+
this.u75_1.y71_1.atomicfu$decrementAndGet();
|
|
1142
|
+
throw getTimeoutException(this.u75_1, this.w75_1, this.a76_1, this.v75_1);
|
|
1143
1143
|
case 14:
|
|
1144
1144
|
this.bc_1 = 15;
|
|
1145
1145
|
var tmp_10 = this.dc_1;
|
|
1146
1146
|
if (tmp_10 instanceof Error) {
|
|
1147
1147
|
var cause_0 = this.dc_1;
|
|
1148
|
-
this.
|
|
1148
|
+
this.u75_1.y71_1.atomicfu$decrementAndGet();
|
|
1149
1149
|
throw cause_0;
|
|
1150
1150
|
} else {
|
|
1151
1151
|
throw this.dc_1;
|
|
@@ -1177,34 +1177,34 @@ function Endpoint() {
|
|
|
1177
1177
|
class $ {
|
|
1178
1178
|
constructor(host, port, proxy, secure, config, connectionFactory, coroutineContext, onDone, unixSocket) {
|
|
1179
1179
|
Companion_getInstance_0();
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1180
|
+
this.o71_1 = host;
|
|
1181
|
+
this.p71_1 = port;
|
|
1182
|
+
this.q71_1 = proxy;
|
|
1183
|
+
this.r71_1 = secure;
|
|
1184
|
+
this.s71_1 = config;
|
|
1185
|
+
this.t71_1 = connectionFactory;
|
|
1186
|
+
this.u71_1 = coroutineContext;
|
|
1187
|
+
this.v71_1 = onDone;
|
|
1188
|
+
this.w71_1 = unixSocket;
|
|
1189
|
+
this.x71_1 = atomic$long$1(getTimeMillis());
|
|
1190
|
+
this.y71_1 = atomic$int$1(0);
|
|
1191
|
+
this.z71_1 = Channel();
|
|
1192
|
+
this.a72_1 = numberToLong(2).r3(this.s71_1.h72_1.o72_1);
|
|
1193
1193
|
var tmp = this;
|
|
1194
|
-
var tmp_0 = this.
|
|
1195
|
-
tmp.
|
|
1194
|
+
var tmp_0 = this.u71_1.lm(new (CoroutineName())('Endpoint timeout(' + this.o71_1 + ':' + this.p71_1 + ')'));
|
|
1195
|
+
tmp.b72_1 = launch(this, tmp_0, VOID, Endpoint$timeout$slambda_0(this, null));
|
|
1196
1196
|
}
|
|
1197
1197
|
s1x() {
|
|
1198
|
-
return this.
|
|
1198
|
+
return this.u71_1;
|
|
1199
1199
|
}
|
|
1200
|
-
|
|
1200
|
+
c72(request, callContext, $completion) {
|
|
1201
1201
|
var tmp = new ($executeCOROUTINE$())(this, request, callContext, $completion);
|
|
1202
1202
|
tmp.cc_1 = Unit_instance;
|
|
1203
1203
|
tmp.dc_1 = null;
|
|
1204
1204
|
return tmp.ic();
|
|
1205
1205
|
}
|
|
1206
1206
|
v5() {
|
|
1207
|
-
this.
|
|
1207
|
+
this.b72_1.d1z();
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
initMetadataForClass($, 'Endpoint', VOID, VOID, [CoroutineScope(), AutoCloseable()], [2, 1, 7]);
|
|
@@ -1214,11 +1214,11 @@ function Endpoint() {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
function getRequestTimeout(request, engineConfig) {
|
|
1216
1216
|
_init_properties_Endpoint_kt__juhqkr();
|
|
1217
|
-
var isWebSocket = isWebsocket(request.
|
|
1218
|
-
if (!(request.
|
|
1217
|
+
var isWebSocket = isWebsocket(request.q56_1.a4a_1);
|
|
1218
|
+
if (!(request.i5r(HttpTimeoutCapability_instance) == null) || isWebSocket || isUpgradeRequest(request) || isSseRequest(request)) {
|
|
1219
1219
|
return new (Long())(-1, 2147483647);
|
|
1220
1220
|
}
|
|
1221
|
-
return engineConfig.
|
|
1221
|
+
return engineConfig.k72_1;
|
|
1222
1222
|
}
|
|
1223
1223
|
function setupTimeout(callContext, request, timeout) {
|
|
1224
1224
|
_init_properties_Endpoint_kt__juhqkr();
|
|
@@ -1233,13 +1233,13 @@ var FailToConnectExceptionClass;
|
|
|
1233
1233
|
function FailToConnectException() {
|
|
1234
1234
|
if (FailToConnectExceptionClass === VOID) {
|
|
1235
1235
|
class $ extends Exception() {
|
|
1236
|
-
static
|
|
1236
|
+
static s76() {
|
|
1237
1237
|
var $this = this.g5('Connect timed out or retry attempts exceeded');
|
|
1238
|
-
captureStack($this, $this.
|
|
1238
|
+
captureStack($this, $this.r76_1);
|
|
1239
1239
|
return $this;
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
initMetadataForClass($, 'FailToConnectException', $.
|
|
1242
|
+
initMetadataForClass($, 'FailToConnectException', $.s76);
|
|
1243
1243
|
FailToConnectExceptionClass = $;
|
|
1244
1244
|
}
|
|
1245
1245
|
return FailToConnectExceptionClass;
|
|
@@ -1251,19 +1251,19 @@ function setupTimeout$slambda() {
|
|
|
1251
1251
|
constructor($timeout, $callContext, $request, resultContinuation, $box) {
|
|
1252
1252
|
if ($box === VOID)
|
|
1253
1253
|
$box = {};
|
|
1254
|
-
$box.
|
|
1255
|
-
$box.
|
|
1256
|
-
$box.
|
|
1254
|
+
$box.n79_1 = $timeout;
|
|
1255
|
+
$box.o79_1 = $callContext;
|
|
1256
|
+
$box.p79_1 = $request;
|
|
1257
1257
|
super(resultContinuation, $box);
|
|
1258
1258
|
}
|
|
1259
|
-
|
|
1260
|
-
var tmp = this.
|
|
1259
|
+
z37($this$launch, $completion) {
|
|
1260
|
+
var tmp = this.d36($this$launch, $completion);
|
|
1261
1261
|
tmp.cc_1 = Unit_instance;
|
|
1262
1262
|
tmp.dc_1 = null;
|
|
1263
1263
|
return tmp.ic();
|
|
1264
1264
|
}
|
|
1265
1265
|
kd(p1, $completion) {
|
|
1266
|
-
return this.
|
|
1266
|
+
return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
1267
1267
|
}
|
|
1268
1268
|
ic() {
|
|
1269
1269
|
var suspendResult = this.cc_1;
|
|
@@ -1274,14 +1274,14 @@ function setupTimeout$slambda() {
|
|
|
1274
1274
|
case 0:
|
|
1275
1275
|
this.bc_1 = 2;
|
|
1276
1276
|
this.ac_1 = 1;
|
|
1277
|
-
suspendResult = delay(this.
|
|
1277
|
+
suspendResult = delay(this.n79_1, this);
|
|
1278
1278
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1279
1279
|
return suspendResult;
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
1282
|
continue $sm;
|
|
1283
1283
|
case 1:
|
|
1284
|
-
cancel(get_job(this.
|
|
1284
|
+
cancel(get_job(this.o79_1), 'Request is timed out', HttpRequestTimeoutException().h5r(this.p79_1));
|
|
1285
1285
|
return Unit_instance;
|
|
1286
1286
|
case 2:
|
|
1287
1287
|
throw this.dc_1;
|
|
@@ -1297,9 +1297,9 @@ function setupTimeout$slambda() {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
while (true);
|
|
1299
1299
|
}
|
|
1300
|
-
|
|
1301
|
-
var i = new (setupTimeout$slambda())(this.
|
|
1302
|
-
i.
|
|
1300
|
+
d36($this$launch, completion) {
|
|
1301
|
+
var i = new (setupTimeout$slambda())(this.n79_1, this.o79_1, this.p79_1, completion);
|
|
1302
|
+
i.q79_1 = $this$launch;
|
|
1303
1303
|
return i;
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
@@ -1311,7 +1311,7 @@ function setupTimeout$slambda() {
|
|
|
1311
1311
|
function setupTimeout$slambda_0($timeout, $callContext, $request, resultContinuation) {
|
|
1312
1312
|
var i = new (setupTimeout$slambda())($timeout, $callContext, $request, resultContinuation);
|
|
1313
1313
|
var l = function ($this$launch, $completion) {
|
|
1314
|
-
return i.
|
|
1314
|
+
return i.z37($this$launch, $completion);
|
|
1315
1315
|
};
|
|
1316
1316
|
l.$arity = 1;
|
|
1317
1317
|
return l;
|