diff --git a/.gitignore b/.gitignore index 01338ee..ddf92a0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ build/ *.iml .idea/ local.properties -*.klib \ No newline at end of file +*.klib +.kotlin/ +dockcross-* \ No newline at end of file diff --git a/README.md b/README.md index e8fb3ef..a0ba0b9 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,8 @@ CRT interfaces are subject to change. OCI_EXE=docker python3 .github/scripts/run-container-test.py --distro al2 --arch x64 --test-bin-dir ./aws-crt-kotlin/build/bin ``` - See the usage/help for different distributions provided: `python3 .github/scripts/run-container.py -h` - ### OSX #### Debugging simulator test issues @@ -66,46 +64,9 @@ List simulator runtimes with: xcrun simctl list devices available ``` - -See also: - +See also: * https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes * https://www.iosdev.recipes/simctl/ ### Windows - - -## Elasticurl App - -The `elasticurl` project contains an MPP (JVM and Native only) executable that provides a simple testing application for exercising the CRT bindings. - -**Native** - -``` -# replace "PLATFORM" with the target platform you want to run (e.g. macosX64, linuxX64, etc) - -./elasticurl/bin/PLATFORM/elasticurlDebugExecutable/elasticurl.kexe [OPTIONS] URL -``` - - -**JVM** -``` -java -jar ./elasticurl/libs/elasticurl-jvm.jar [OPTIONS] URL -``` - -NOTE: You can also use the convenience script `./scripts/elasticurlJvm.sh [OPTIONS] URL` - -To enable memory tracing specify the environment variable `CRTDEBUG=trace=N` and provide the CLI option `-v trace` - -e.g. -``` -CRTDEBUG=trace=2 ./elasticurl/bin/macosX64/elasticurlDebugExecutable/elasticurl.kexe -v trace https://aws.amazon.com -``` - - -**Integration Test** - -Run the simple elasticurl integration test script - -`./scripts/elasticurl-test.sh` - +Not supported yet. diff --git a/aws-crt-kotlin/api/android/aws-crt-kotlin.api b/aws-crt-kotlin/api/android/aws-crt-kotlin.api deleted file mode 100644 index 31ea961..0000000 --- a/aws-crt-kotlin/api/android/aws-crt-kotlin.api +++ /dev/null @@ -1,1000 +0,0 @@ -public abstract interface class aws/sdk/kotlin/crt/AsyncShutdown { - public abstract fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/CRT { - public static final field INSTANCE Laws/sdk/kotlin/crt/CRT; - public final fun errorName (I)Ljava/lang/String; - public final fun errorString (I)Ljava/lang/String; - public final fun initRuntime (Lkotlin/jvm/functions/Function1;)V - public static synthetic fun initRuntime$default (Laws/sdk/kotlin/crt/CRT;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V - public final fun isHttpErrorRetryable (I)Z - public final fun lastError ()I - public final fun nativeMemory ()J -} - -public abstract interface class aws/sdk/kotlin/crt/Closeable { - public abstract fun close ()V -} - -public final class aws/sdk/kotlin/crt/CloseableKt { - public static final fun use (Laws/sdk/kotlin/crt/Closeable;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/Config { - public fun ()V - public final fun getLogDestination ()Laws/sdk/kotlin/crt/LogDestination; - public final fun getLogFile ()Ljava/lang/String; - public final fun getLogLevel ()Laws/sdk/kotlin/crt/LogLevel; - public final fun setLogDestination (Laws/sdk/kotlin/crt/LogDestination;)V - public final fun setLogFile (Ljava/lang/String;)V - public final fun setLogLevel (Laws/sdk/kotlin/crt/LogLevel;)V -} - -public class aws/sdk/kotlin/crt/CrtRuntimeException : java/lang/RuntimeException { - public fun ()V - public fun (Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/Integer;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun getErrorCode ()I - public final fun getErrorDescription ()Ljava/lang/String; - public final fun getErrorName ()Ljava/lang/String; - public fun getMessage ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/LogDestination : java/lang/Enum { - public static final field File Laws/sdk/kotlin/crt/LogDestination; - public static final field None Laws/sdk/kotlin/crt/LogDestination; - public static final field Stderr Laws/sdk/kotlin/crt/LogDestination; - public static final field Stdout Laws/sdk/kotlin/crt/LogDestination; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/LogDestination; - public static fun values ()[Laws/sdk/kotlin/crt/LogDestination; -} - -public final class aws/sdk/kotlin/crt/LogLevel : java/lang/Enum { - public static final field Debug Laws/sdk/kotlin/crt/LogLevel; - public static final field Error Laws/sdk/kotlin/crt/LogLevel; - public static final field Fatal Laws/sdk/kotlin/crt/LogLevel; - public static final field Info Laws/sdk/kotlin/crt/LogLevel; - public static final field None Laws/sdk/kotlin/crt/LogLevel; - public static final field Trace Laws/sdk/kotlin/crt/LogLevel; - public static final field Warn Laws/sdk/kotlin/crt/LogLevel; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/LogLevel; - public static fun values ()[Laws/sdk/kotlin/crt/LogLevel; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider; - public final fun getRefreshTimeInMilliseconds ()J - public final fun getSource ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun setRefreshTimeInMilliseconds (J)V - public final fun setSource (Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/Credentials { - public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public fun ([B[B[B)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/auth/credentials/Credentials;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public fun equals (Ljava/lang/Object;)Z - public final fun getAccessKeyId ()Ljava/lang/String; - public final fun getSecretAccessKey ()Ljava/lang/String; - public final fun getSessionToken ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public abstract interface class aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public abstract fun getCredentials (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider; - public final fun getAuthToken ()Ljava/lang/String; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getHost ()Ljava/lang/String; - public final fun getPathAndQuery ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setAuthToken (Ljava/lang/String;)V - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setHost (Ljava/lang/String;)V - public final fun setPathAndQuery (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider; -} - -public abstract class aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider, java/io/Closeable { - public fun ()V - public fun close ()V - public fun getCredentials (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getConfigFileName ()Ljava/lang/String; - public final fun getCredentialsFileName ()Ljava/lang/String; - public final fun getProfileName ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setConfigFileName (Ljava/lang/String;)V - public final fun setCredentialsFileName (Ljava/lang/String;)V - public final fun setProfileName (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion; - public synthetic fun getJniCredentials$aws_crt_kotlin ()Lsoftware/amazon/awssdk/crt/auth/credentials/CredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider; - public final fun getAccessKeyId ()Ljava/lang/String; - public final fun getSecretAccessKey ()Ljava/lang/String; - public final fun getSessionToken ()Ljava/lang/String; - public final fun setAccessKeyId (Ljava/lang/String;)V - public final fun setSecretAccessKey (Ljava/lang/String;)V - public final fun setSessionToken (Ljava/lang/String;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider; - public static final fun fromCredentials (Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion;Laws/sdk/kotlin/crt/auth/credentials/Credentials;)Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getCredentialsProvider ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun getDurationSeconds ()Ljava/lang/Integer; - public final fun getRoleArn ()Ljava/lang/String; - public final fun getSessionName ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setCredentialsProvider (Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider;)V - public final fun setDurationSeconds (Ljava/lang/Integer;)V - public final fun setRoleArn (Ljava/lang/String;)V - public final fun setSessionName (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getEndpoint ()Ljava/lang/String; - public final fun getProxyOptions ()Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public final fun getRoleAlias ()Ljava/lang/String; - public final fun getThingName ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setEndpoint (Ljava/lang/String;)V - public final fun setProxyOptions (Laws/sdk/kotlin/crt/http/HttpProxyOptions;)V - public final fun setRoleAlias (Ljava/lang/String;)V - public final fun setThingName (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSignatureType : java/lang/Enum { - public static final field HTTP_REQUEST_CHUNK Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_EVENT Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_TRAILING_HEADERS Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_VIA_HEADERS Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_VIA_QUERY_PARAMS Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static fun values ()[Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType : java/lang/Enum { - public static final field NONE Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public static final field X_AMZ_CONTENT_SHA256 Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public static fun values ()[Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSignedBodyValue { - public static final field EMPTY_SHA256 Ljava/lang/String; - public static final field INSTANCE Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyValue; - public static final field STREAMING_AWS4_HMAC_SHA256_EVENTS Ljava/lang/String; - public static final field STREAMING_AWS4_HMAC_SHA256_PAYLOAD Ljava/lang/String; - public static final field UNSIGNED_PAYLOAD Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigner { - public static final field INSTANCE Laws/sdk/kotlin/crt/auth/signing/AwsSigner; - public final fun sign (Laws/sdk/kotlin/crt/http/HttpRequest;Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun signChunk ([B[BLaws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun signChunkTrailer (Laws/sdk/kotlin/crt/http/Headers;[BLaws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun signRequest (Laws/sdk/kotlin/crt/http/HttpRequest;Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm : java/lang/Enum { - public static final field SIGV4 Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static final field SIGV4_ASYMMETRIC Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static final field SIGV4_S3EXPRESS Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static fun values ()[Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningConfig { - public static final field Companion Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Companion; - public fun (Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Builder;)V - public final fun getAlgorithm ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public final fun getCredentials ()Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public final fun getCredentialsProvider ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun getDate ()J - public final fun getExpirationInSeconds ()J - public final fun getNormalizeUriPath ()Z - public final fun getOmitSessionToken ()Z - public final fun getRegion ()Ljava/lang/String; - public final fun getService ()Ljava/lang/String; - public final fun getShouldSignHeader ()Lkotlin/jvm/functions/Function1; - public final fun getSignatureType ()Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public final fun getSignedBodyHeader ()Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public final fun getSignedBodyValue ()Ljava/lang/String; - public final fun getUseDoubleUriEncode ()Z - public final fun toBuilder ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Builder; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Builder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig; - public final fun getAlgorithm ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public final fun getCredentials ()Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public final fun getCredentialsProvider ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun getDate ()Ljava/lang/Long; - public final fun getExpirationInSeconds ()J - public final fun getNormalizeUriPath ()Z - public final fun getOmitSessionToken ()Z - public final fun getRegion ()Ljava/lang/String; - public final fun getService ()Ljava/lang/String; - public final fun getShouldSignHeader ()Lkotlin/jvm/functions/Function1; - public final fun getSignatureType ()Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public final fun getSignedBodyHeader ()Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public final fun getSignedBodyValue ()Ljava/lang/String; - public final fun getUseDoubleUriEncode ()Z - public final fun setAlgorithm (Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm;)V - public final fun setCredentials (Laws/sdk/kotlin/crt/auth/credentials/Credentials;)V - public final fun setCredentialsProvider (Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider;)V - public final fun setDate (Ljava/lang/Long;)V - public final fun setExpirationInSeconds (J)V - public final fun setNormalizeUriPath (Z)V - public final fun setOmitSessionToken (Z)V - public final fun setRegion (Ljava/lang/String;)V - public final fun setService (Ljava/lang/String;)V - public final fun setShouldSignHeader (Lkotlin/jvm/functions/Function1;)V - public final fun setSignatureType (Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType;)V - public final fun setSignedBodyHeader (Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType;)V - public final fun setSignedBodyValue (Ljava/lang/String;)V - public final fun setUseDoubleUriEncode (Z)V -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningResult { - public fun (Laws/sdk/kotlin/crt/http/HttpRequest;[B)V - public final fun component1 ()Laws/sdk/kotlin/crt/http/HttpRequest; - public final fun component2 ()[B - public final fun copy (Laws/sdk/kotlin/crt/http/HttpRequest;[B)Laws/sdk/kotlin/crt/auth/signing/AwsSigningResult; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/auth/signing/AwsSigningResult;Laws/sdk/kotlin/crt/http/HttpRequest;[BILjava/lang/Object;)Laws/sdk/kotlin/crt/auth/signing/AwsSigningResult; - public fun equals (Ljava/lang/Object;)Z - public final fun getSignature ()[B - public final fun getSignedRequest ()Laws/sdk/kotlin/crt/http/HttpRequest; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public abstract interface class aws/sdk/kotlin/crt/http/Headers { - public static final field Companion Laws/sdk/kotlin/crt/http/Headers$Companion; - public abstract fun contains (Ljava/lang/String;)Z - public abstract fun contains (Ljava/lang/String;Ljava/lang/String;)Z - public abstract fun entries ()Ljava/util/Set; - public abstract fun forEach (Lkotlin/jvm/functions/Function2;)V - public abstract fun get (Ljava/lang/String;)Ljava/lang/String; - public abstract fun getAll (Ljava/lang/String;)Ljava/util/List; - public abstract fun isEmpty ()Z - public abstract fun names ()Ljava/util/Set; -} - -public final class aws/sdk/kotlin/crt/http/Headers$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/http/Headers; -} - -public final class aws/sdk/kotlin/crt/http/Headers$DefaultImpls { - public static fun contains (Laws/sdk/kotlin/crt/http/Headers;Ljava/lang/String;Ljava/lang/String;)Z - public static fun forEach (Laws/sdk/kotlin/crt/http/Headers;Lkotlin/jvm/functions/Function2;)V - public static fun get (Laws/sdk/kotlin/crt/http/Headers;Ljava/lang/String;)Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HeadersBuilder { - public fun ()V - public final fun append (Ljava/lang/String;Ljava/lang/String;)V - public final fun appendAll (Laws/sdk/kotlin/crt/http/Headers;)V - public final fun appendAll (Ljava/lang/String;Ljava/lang/Iterable;)V - public final fun appendMissing (Laws/sdk/kotlin/crt/http/Headers;)V - public final fun appendMissing (Ljava/lang/String;Ljava/lang/Iterable;)V - public final fun build ()Laws/sdk/kotlin/crt/http/Headers; - public final fun clear ()V - public final fun contains (Ljava/lang/String;)Z - public final fun contains (Ljava/lang/String;Ljava/lang/String;)Z - public final fun entries ()Ljava/util/Set; - public final fun get (Ljava/lang/String;)Ljava/lang/String; - public final fun getAll (Ljava/lang/String;)Ljava/util/List; - public final fun isEmpty ()Z - public final fun names ()Ljava/util/Set; - public final fun remove (Ljava/lang/String;)Ljava/util/List; - public final fun remove (Ljava/lang/String;Ljava/lang/String;)Z - public final fun removeKeysWithNoEntries ()V - public final fun set (Ljava/lang/String;Ljava/lang/String;)V -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpClientConnection : aws/sdk/kotlin/crt/Closeable { - public abstract fun getId ()Ljava/lang/String; - public abstract fun makeRequest (Laws/sdk/kotlin/crt/http/HttpRequest;Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;)Laws/sdk/kotlin/crt/http/HttpStream; - public abstract fun shutdown ()V -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManager : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun (Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions;)V - public final fun acquireConnection (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun close ()V - public final fun getManagerMetrics ()Laws/sdk/kotlin/crt/http/HttpManagerMetrics; - public final fun getOptions ()Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions; - public final fun releaseConnection (Laws/sdk/kotlin/crt/http/HttpClientConnection;)V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions { - public static final field Companion Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions$Companion; - public static final field DEFAULT_INITIAL_WINDOW_SIZE I - public static final field DEFAULT_MAX_CONNECTIONS I - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getInitialWindowSize ()I - public final fun getManualWindowManagement ()Z - public final fun getMaxConnectionIdleMs ()J - public final fun getMaxConnections ()I - public final fun getMonitoringOptions ()Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public final fun getProxyOptions ()Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public final fun getSocketOptions ()Laws/sdk/kotlin/crt/io/SocketOptions; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun getUri ()Laws/sdk/kotlin/crt/io/Uri; -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions; -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptionsBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getInitialWindowSize ()I - public final fun getManualWindowManagement ()Z - public final fun getMaxConnectionIdleMs ()J - public final fun getMaxConnections ()I - public final fun getMonitoringOptions ()Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public final fun getProxyOptions ()Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public final fun getSocketOptions ()Laws/sdk/kotlin/crt/io/SocketOptions; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun getUri ()Laws/sdk/kotlin/crt/io/Uri; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setInitialWindowSize (I)V - public final fun setManualWindowManagement (Z)V - public final fun setMaxConnectionIdleMs (J)V - public final fun setMaxConnections (I)V - public final fun setMonitoringOptions (Laws/sdk/kotlin/crt/http/HttpMonitoringOptions;)V - public final fun setProxyOptions (Laws/sdk/kotlin/crt/http/HttpProxyOptions;)V - public final fun setSocketOptions (Laws/sdk/kotlin/crt/io/SocketOptions;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V - public final fun setUri (Laws/sdk/kotlin/crt/io/Uri;)V - public final fun uri (Lkotlin/jvm/functions/Function1;)V -} - -public final class aws/sdk/kotlin/crt/http/HttpException : aws/sdk/kotlin/crt/CrtRuntimeException { - public fun (I)V -} - -public final class aws/sdk/kotlin/crt/http/HttpHeader { - public fun (Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;)Laws/sdk/kotlin/crt/http/HttpHeader; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpHeader;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpHeader; - public fun equals (Ljava/lang/Object;)Z - public final fun getName ()Ljava/lang/String; - public final fun getValue ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpHeaderBlock : java/lang/Enum { - public static final field INFORMATIONAL Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public static final field MAIN Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public static final field TRAILING Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public final fun getBlockType ()I - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public static fun values ()[Laws/sdk/kotlin/crt/http/HttpHeaderBlock; -} - -public final class aws/sdk/kotlin/crt/http/HttpManagerMetrics { - public fun (JJJ)V - public final fun component1 ()J - public final fun component2 ()J - public final fun component3 ()J - public final fun copy (JJJ)Laws/sdk/kotlin/crt/http/HttpManagerMetrics; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpManagerMetrics;JJJILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpManagerMetrics; - public fun equals (Ljava/lang/Object;)Z - public final fun getAvailableConcurrency ()J - public final fun getLeasedConcurrency ()J - public final fun getPendingConcurrencyAcquires ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpMonitoringOptions { - public fun ()V - public fun (II)V - public synthetic fun (IIILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()I - public final fun component2 ()I - public final fun copy (II)Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpMonitoringOptions;IIILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public fun equals (Ljava/lang/Object;)Z - public final fun getAllowableThroughputFailureIntervalSeconds ()I - public final fun getMinThroughputBytesPerSecond ()I - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpProxyAuthorizationType : java/lang/Enum { - public static final field Basic Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public static final field None Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public static fun values ()[Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; -} - -public final class aws/sdk/kotlin/crt/http/HttpProxyOptions { - public fun (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/Integer; - public final fun component3 ()Ljava/lang/String; - public final fun component4 ()Ljava/lang/String; - public final fun component5 ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun component6 ()Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public final fun copy (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;)Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpProxyOptions;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;ILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public fun equals (Ljava/lang/Object;)Z - public final fun getAuthPassword ()Ljava/lang/String; - public final fun getAuthType ()Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public final fun getAuthUsername ()Ljava/lang/String; - public final fun getHost ()Ljava/lang/String; - public final fun getPort ()Ljava/lang/Integer; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpRequest { - public static final field Companion Laws/sdk/kotlin/crt/http/HttpRequest$Companion; - public fun (Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Laws/sdk/kotlin/crt/http/Headers; - public final fun component4 ()Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)Laws/sdk/kotlin/crt/http/HttpRequest; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpRequest;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;ILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpRequest; - public fun equals (Ljava/lang/Object;)Z - public final fun getBody ()Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; - public final fun getEncodedPath ()Ljava/lang/String; - public final fun getHeaders ()Laws/sdk/kotlin/crt/http/Headers; - public final fun getMethod ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpRequest$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/http/HttpRequest; -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpRequestBodyStream { - public static final field Companion Laws/sdk/kotlin/crt/http/HttpRequestBodyStream$Companion; - public abstract fun resetPosition ()Z - public abstract fun sendRequestBody (Laws/sdk/kotlin/crt/io/MutableBuffer;)Z -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestBodyStream$Companion { - public final fun fromByteArray ([B)Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestBodyStream$DefaultImpls { - public static fun resetPosition (Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)Z - public static fun sendRequestBody (Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;Laws/sdk/kotlin/crt/io/MutableBuffer;)Z -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/http/HttpRequest; - public final fun getBody ()Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; - public final fun getEncodedPath ()Ljava/lang/String; - public final fun getHeaders ()Laws/sdk/kotlin/crt/http/HeadersBuilder; - public final fun getMethod ()Ljava/lang/String; - public final fun setBody (Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)V - public final fun setEncodedPath (Ljava/lang/String;)V - public final fun setMethod (Ljava/lang/String;)V -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestKt { - public static final fun headers (Laws/sdk/kotlin/crt/http/HttpRequestBuilder;Lkotlin/jvm/functions/Function1;)V -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpStream : aws/sdk/kotlin/crt/Closeable { - public abstract fun activate ()V - public abstract fun getResponseStatusCode ()I - public abstract fun incrementWindow (I)V - public abstract fun writeChunk ([BZLkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/http/HttpStreamMetrics { - public fun (JJJJJJI)V - public final fun component1 ()J - public final fun component2 ()J - public final fun component3 ()J - public final fun component4 ()J - public final fun component5 ()J - public final fun component6 ()J - public final fun component7 ()I - public final fun copy (JJJJJJI)Laws/sdk/kotlin/crt/http/HttpStreamMetrics; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpStreamMetrics;JJJJJJIILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpStreamMetrics; - public fun equals (Ljava/lang/Object;)Z - public final fun getReceiveEndTimestampNs ()J - public final fun getReceiveStartTimestampNs ()J - public final fun getReceivingDurationNs ()J - public final fun getSendEndTimestampNs ()J - public final fun getSendStartTimestampNs ()J - public final fun getSendingDurationNs ()J - public final fun getStreamId ()I - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpStreamMetricsJVMKt { - public static final fun toKotlin (Lsoftware/amazon/awssdk/crt/http/HttpStreamMetrics;)Laws/sdk/kotlin/crt/http/HttpStreamMetrics; -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpStreamResponseHandler { - public abstract fun onMetrics (Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/http/HttpStreamMetrics;)V - public abstract fun onResponseBody (Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/io/Buffer;)I - public abstract fun onResponseComplete (Laws/sdk/kotlin/crt/http/HttpStream;I)V - public abstract fun onResponseHeaders (Laws/sdk/kotlin/crt/http/HttpStream;IILjava/util/List;)V - public abstract fun onResponseHeadersDone (Laws/sdk/kotlin/crt/http/HttpStream;I)V -} - -public final class aws/sdk/kotlin/crt/http/HttpStreamResponseHandler$DefaultImpls { - public static fun onMetrics (Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/http/HttpStreamMetrics;)V - public static fun onResponseBody (Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/io/Buffer;)I - public static fun onResponseHeadersDone (Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;Laws/sdk/kotlin/crt/http/HttpStream;I)V -} - -public abstract interface class aws/sdk/kotlin/crt/io/Buffer { - public static final field Companion Laws/sdk/kotlin/crt/io/Buffer$Companion; - public abstract fun copyTo ([BI)I - public abstract fun getLen ()I - public abstract fun readAll ()[B -} - -public final class aws/sdk/kotlin/crt/io/Buffer$Companion { - public final fun getEmpty ()Laws/sdk/kotlin/crt/io/Buffer; -} - -public final class aws/sdk/kotlin/crt/io/Buffer$DefaultImpls { - public static synthetic fun copyTo$default (Laws/sdk/kotlin/crt/io/Buffer;[BIILjava/lang/Object;)I -} - -public final class aws/sdk/kotlin/crt/io/BufferKt { - public static final fun byteArrayBuffer ([B)Laws/sdk/kotlin/crt/io/Buffer; -} - -public final class aws/sdk/kotlin/crt/io/ClientBootstrap : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun (Laws/sdk/kotlin/crt/io/EventLoopGroup;Laws/sdk/kotlin/crt/io/HostResolver;)V - public fun close ()V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/io/EventLoopGroup : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun ()V - public fun (I)V - public synthetic fun (IILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun close ()V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/io/HostResolver : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun (Laws/sdk/kotlin/crt/io/EventLoopGroup;)V - public fun (Laws/sdk/kotlin/crt/io/EventLoopGroup;I)V - public fun close ()V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/io/MutableBuffer { - public static final field Companion Laws/sdk/kotlin/crt/io/MutableBuffer$Companion; - public fun (Ljava/nio/ByteBuffer;)V - public final fun getBuffer ()Ljava/nio/ByteBuffer; - public final fun getWriteRemaining ()I - public final fun write ([BII)I - public static synthetic fun write$default (Laws/sdk/kotlin/crt/io/MutableBuffer;[BIIILjava/lang/Object;)I -} - -public final class aws/sdk/kotlin/crt/io/MutableBuffer$Companion { - public final fun of ([B)Laws/sdk/kotlin/crt/io/MutableBuffer; -} - -public final class aws/sdk/kotlin/crt/io/Protocol { - public static final field Companion Laws/sdk/kotlin/crt/io/Protocol$Companion; - public fun (Ljava/lang/String;I)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()I - public final fun copy (Ljava/lang/String;I)Laws/sdk/kotlin/crt/io/Protocol; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;IILjava/lang/Object;)Laws/sdk/kotlin/crt/io/Protocol; - public fun equals (Ljava/lang/Object;)Z - public final fun getDefaultPort ()I - public final fun getName ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/io/Protocol$Companion { - public final fun createOrDefault (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/Protocol; - public final fun getByName ()Ljava/util/Map; - public final fun getHTTP ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getHTTPS ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getWS ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getWSS ()Laws/sdk/kotlin/crt/io/Protocol; -} - -public final class aws/sdk/kotlin/crt/io/SocketDomain : java/lang/Enum { - public static final field IPv4 Laws/sdk/kotlin/crt/io/SocketDomain; - public static final field IPv6 Laws/sdk/kotlin/crt/io/SocketDomain; - public static final field LOCAL Laws/sdk/kotlin/crt/io/SocketDomain; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/SocketDomain; - public static fun values ()[Laws/sdk/kotlin/crt/io/SocketDomain; -} - -public final class aws/sdk/kotlin/crt/io/SocketOptions { - public fun ()V - public fun (Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;III)V - public synthetic fun (Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;IIIILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Laws/sdk/kotlin/crt/io/SocketDomain; - public final fun component2 ()Laws/sdk/kotlin/crt/io/SocketType; - public final fun component3 ()I - public final fun component4 ()I - public final fun component5 ()I - public final fun copy (Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;III)Laws/sdk/kotlin/crt/io/SocketOptions; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/SocketOptions;Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;IIIILjava/lang/Object;)Laws/sdk/kotlin/crt/io/SocketOptions; - public fun equals (Ljava/lang/Object;)Z - public final fun getConnectTimeoutMs ()I - public final fun getDomain ()Laws/sdk/kotlin/crt/io/SocketDomain; - public final fun getKeepAliveIntervalSecs ()I - public final fun getKeepAliveTimeoutSecs ()I - public final fun getType ()Laws/sdk/kotlin/crt/io/SocketType; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/io/SocketType : java/lang/Enum { - public static final field DGRAM Laws/sdk/kotlin/crt/io/SocketType; - public static final field STREAM Laws/sdk/kotlin/crt/io/SocketType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/SocketType; - public static fun values ()[Laws/sdk/kotlin/crt/io/SocketType; -} - -public final class aws/sdk/kotlin/crt/io/TlsCipherPreference : java/lang/Enum { - public static final field KMS_PQ_SIKE_TLS_V1_0_2019_11 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_SIKE_TLS_V1_0_2020_02 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_TLS_V1_0_2019_06 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_TLS_V1_0_2020_02 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_TLS_V1_0_2020_07 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field PQ_TLS_V1_0_2021_05 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field SYSTEM_DEFAULT Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public final fun isSupported ()Z - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static fun values ()[Laws/sdk/kotlin/crt/io/TlsCipherPreference; -} - -public final class aws/sdk/kotlin/crt/io/TlsContext : aws/sdk/kotlin/crt/Closeable { - public static final field Companion Laws/sdk/kotlin/crt/io/TlsContext$Companion; - public fun ()V - public fun (Laws/sdk/kotlin/crt/io/TlsContextOptions;)V - public synthetic fun (Laws/sdk/kotlin/crt/io/TlsContextOptions;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun close ()V -} - -public final class aws/sdk/kotlin/crt/io/TlsContext$Companion { -} - -public final class aws/sdk/kotlin/crt/io/TlsContextKt { - public static final fun build (Laws/sdk/kotlin/crt/io/TlsContext$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/TlsContext; -} - -public final class aws/sdk/kotlin/crt/io/TlsContextOptions { - public static final field Companion Laws/sdk/kotlin/crt/io/TlsContextOptions$Companion; - public final fun getAlpn ()Ljava/lang/String; - public final fun getCaDir ()Ljava/lang/String; - public final fun getCaFile ()Ljava/lang/String; - public final fun getCaRoot ()Ljava/lang/String; - public final fun getCertificate ()Ljava/lang/String; - public final fun getCertificatePath ()Ljava/lang/String; - public final fun getMinTlsVersion ()Laws/sdk/kotlin/crt/io/TlsVersion; - public final fun getPkcs12Password ()Ljava/lang/String; - public final fun getPkcs12Path ()Ljava/lang/String; - public final fun getPrivateKey ()Ljava/lang/String; - public final fun getPrivateKeyPath ()Ljava/lang/String; - public final fun getTlsCipherPreference ()Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public final fun getVerifyPeer ()Z -} - -public final class aws/sdk/kotlin/crt/io/TlsContextOptions$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun defaultClient ()Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun defaultServer ()Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun isAlpnSupported ()Z - public final fun isCipherPreferenceSupported (Laws/sdk/kotlin/crt/io/TlsCipherPreference;)Z -} - -public final class aws/sdk/kotlin/crt/io/TlsContextOptionsBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun getAlpn ()Ljava/lang/String; - public final fun getCaDir ()Ljava/lang/String; - public final fun getCaFile ()Ljava/lang/String; - public final fun getCaRoot ()Ljava/lang/String; - public final fun getCertificate ()Ljava/lang/String; - public final fun getCertificatePath ()Ljava/lang/String; - public final fun getMinTlsVersion ()Laws/sdk/kotlin/crt/io/TlsVersion; - public final fun getPkcs12Password ()Ljava/lang/String; - public final fun getPkcs12Path ()Ljava/lang/String; - public final fun getPrivateKey ()Ljava/lang/String; - public final fun getPrivateKeyPath ()Ljava/lang/String; - public final fun getTlsCipherPreference ()Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public final fun getVerifyPeer ()Z - public final fun setAlpn (Ljava/lang/String;)V - public final fun setCaDir (Ljava/lang/String;)V - public final fun setCaFile (Ljava/lang/String;)V - public final fun setCaRoot (Ljava/lang/String;)V - public final fun setCertificate (Ljava/lang/String;)V - public final fun setCertificatePath (Ljava/lang/String;)V - public final fun setMinTlsVersion (Laws/sdk/kotlin/crt/io/TlsVersion;)V - public final fun setPkcs12Password (Ljava/lang/String;)V - public final fun setPkcs12Path (Ljava/lang/String;)V - public final fun setPrivateKey (Ljava/lang/String;)V - public final fun setPrivateKeyPath (Ljava/lang/String;)V - public final fun setTlsCipherPreference (Laws/sdk/kotlin/crt/io/TlsCipherPreference;)V - public final fun setVerifyPeer (Z)V -} - -public final class aws/sdk/kotlin/crt/io/TlsVersion : java/lang/Enum { - public static final field SSLv3 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field SYS_DEFAULT Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLS_V1_1 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLS_V1_2 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLS_V1_3 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLSv1 Laws/sdk/kotlin/crt/io/TlsVersion; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/TlsVersion; - public static fun values ()[Laws/sdk/kotlin/crt/io/TlsVersion; -} - -public final class aws/sdk/kotlin/crt/io/Uri { - public static final field Companion Laws/sdk/kotlin/crt/io/Uri$Companion; - public fun (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;Z)V - public synthetic fun (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()I - public final fun component4 ()Ljava/lang/String; - public final fun component5 ()Ljava/lang/String; - public final fun component6 ()Ljava/lang/String; - public final fun component7 ()Laws/sdk/kotlin/crt/io/UserInfo; - public final fun component8 ()Z - public final fun copy (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;Z)Laws/sdk/kotlin/crt/io/Uri; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/Uri;Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;ZILjava/lang/Object;)Laws/sdk/kotlin/crt/io/Uri; - public fun equals (Ljava/lang/Object;)Z - public final fun getAuthority ()Ljava/lang/String; - public final fun getForceQuery ()Z - public final fun getFragment ()Ljava/lang/String; - public final fun getHost ()Ljava/lang/String; - public final fun getHostAndPort ()Ljava/lang/String; - public final fun getParameters ()Ljava/lang/String; - public final fun getPath ()Ljava/lang/String; - public final fun getPort ()I - public final fun getScheme ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getSpecifiedPort ()I - public final fun getUserInfo ()Laws/sdk/kotlin/crt/io/UserInfo; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/io/Uri$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/Uri; - public final fun parse (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/Uri; -} - -public final class aws/sdk/kotlin/crt/io/UriBuilder { - public static final field Companion Laws/sdk/kotlin/crt/io/UriBuilder$Companion; - public fun ()V - public final fun getForceQuery ()Z - public final fun getFragment ()Ljava/lang/String; - public final fun getHost ()Ljava/lang/String; - public final fun getParameters ()Ljava/lang/String; - public final fun getPath ()Ljava/lang/String; - public final fun getPort ()Ljava/lang/Integer; - public final fun getScheme ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getUserInfo ()Laws/sdk/kotlin/crt/io/UserInfo; - public final fun setForceQuery (Z)V - public final fun setFragment (Ljava/lang/String;)V - public final fun setHost (Ljava/lang/String;)V - public final fun setParameters (Ljava/lang/String;)V - public final fun setPath (Ljava/lang/String;)V - public final fun setPort (Ljava/lang/Integer;)V - public final fun setScheme (Laws/sdk/kotlin/crt/io/Protocol;)V - public final fun setUserInfo (Laws/sdk/kotlin/crt/io/UserInfo;)V -} - -public final class aws/sdk/kotlin/crt/io/UriBuilder$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/Uri; -} - -public final class aws/sdk/kotlin/crt/io/UriKt { - public static final field DEFAULT_SCHEME_PORT I - public static final fun requiresTls (Laws/sdk/kotlin/crt/io/Protocol;)Z -} - -public final class aws/sdk/kotlin/crt/io/UserInfo { - public fun (Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;)Laws/sdk/kotlin/crt/io/UserInfo; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/UserInfo;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Laws/sdk/kotlin/crt/io/UserInfo; - public fun equals (Ljava/lang/Object;)Z - public final fun getPassword ()Ljava/lang/String; - public final fun getUsername ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/util/Digest { - public static final field INSTANCE Laws/sdk/kotlin/crt/util/Digest; - public final fun sha256 ([B)[B -} - -public final class aws/sdk/kotlin/crt/util/DigestKt { - public static final fun encodeToHex ([B)Ljava/lang/String; - public static final fun hex (Laws/sdk/kotlin/crt/util/Digest;[B)Ljava/lang/String; -} - diff --git a/aws-crt-kotlin/api/aws-crt-kotlin.api b/aws-crt-kotlin/api/aws-crt-kotlin.api index ee4724c..31ea961 100644 --- a/aws-crt-kotlin/api/aws-crt-kotlin.api +++ b/aws-crt-kotlin/api/aws-crt-kotlin.api @@ -507,7 +507,6 @@ public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptionsBui public final class aws/sdk/kotlin/crt/http/HttpException : aws/sdk/kotlin/crt/CrtRuntimeException { public fun (I)V - public fun getErrorCode ()I } public final class aws/sdk/kotlin/crt/http/HttpHeader { diff --git a/aws-crt-kotlin/api/jvm/aws-crt-kotlin.api b/aws-crt-kotlin/api/jvm/aws-crt-kotlin.api deleted file mode 100644 index 31ea961..0000000 --- a/aws-crt-kotlin/api/jvm/aws-crt-kotlin.api +++ /dev/null @@ -1,1000 +0,0 @@ -public abstract interface class aws/sdk/kotlin/crt/AsyncShutdown { - public abstract fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/CRT { - public static final field INSTANCE Laws/sdk/kotlin/crt/CRT; - public final fun errorName (I)Ljava/lang/String; - public final fun errorString (I)Ljava/lang/String; - public final fun initRuntime (Lkotlin/jvm/functions/Function1;)V - public static synthetic fun initRuntime$default (Laws/sdk/kotlin/crt/CRT;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V - public final fun isHttpErrorRetryable (I)Z - public final fun lastError ()I - public final fun nativeMemory ()J -} - -public abstract interface class aws/sdk/kotlin/crt/Closeable { - public abstract fun close ()V -} - -public final class aws/sdk/kotlin/crt/CloseableKt { - public static final fun use (Laws/sdk/kotlin/crt/Closeable;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/Config { - public fun ()V - public final fun getLogDestination ()Laws/sdk/kotlin/crt/LogDestination; - public final fun getLogFile ()Ljava/lang/String; - public final fun getLogLevel ()Laws/sdk/kotlin/crt/LogLevel; - public final fun setLogDestination (Laws/sdk/kotlin/crt/LogDestination;)V - public final fun setLogFile (Ljava/lang/String;)V - public final fun setLogLevel (Laws/sdk/kotlin/crt/LogLevel;)V -} - -public class aws/sdk/kotlin/crt/CrtRuntimeException : java/lang/RuntimeException { - public fun ()V - public fun (Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/Integer;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/Integer;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun getErrorCode ()I - public final fun getErrorDescription ()Ljava/lang/String; - public final fun getErrorName ()Ljava/lang/String; - public fun getMessage ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/LogDestination : java/lang/Enum { - public static final field File Laws/sdk/kotlin/crt/LogDestination; - public static final field None Laws/sdk/kotlin/crt/LogDestination; - public static final field Stderr Laws/sdk/kotlin/crt/LogDestination; - public static final field Stdout Laws/sdk/kotlin/crt/LogDestination; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/LogDestination; - public static fun values ()[Laws/sdk/kotlin/crt/LogDestination; -} - -public final class aws/sdk/kotlin/crt/LogLevel : java/lang/Enum { - public static final field Debug Laws/sdk/kotlin/crt/LogLevel; - public static final field Error Laws/sdk/kotlin/crt/LogLevel; - public static final field Fatal Laws/sdk/kotlin/crt/LogLevel; - public static final field Info Laws/sdk/kotlin/crt/LogLevel; - public static final field None Laws/sdk/kotlin/crt/LogLevel; - public static final field Trace Laws/sdk/kotlin/crt/LogLevel; - public static final field Warn Laws/sdk/kotlin/crt/LogLevel; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/LogLevel; - public static fun values ()[Laws/sdk/kotlin/crt/LogLevel; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider; - public final fun getRefreshTimeInMilliseconds ()J - public final fun getSource ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun setRefreshTimeInMilliseconds (J)V - public final fun setSource (Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/Credentials { - public fun (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public fun ([B[B[B)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/auth/credentials/Credentials;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public fun equals (Ljava/lang/Object;)Z - public final fun getAccessKeyId ()Ljava/lang/String; - public final fun getSecretAccessKey ()Ljava/lang/String; - public final fun getSessionToken ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public abstract interface class aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public abstract fun getCredentials (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider; - public final fun getAuthToken ()Ljava/lang/String; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getHost ()Ljava/lang/String; - public final fun getPathAndQuery ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setAuthToken (Ljava/lang/String;)V - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setHost (Ljava/lang/String;)V - public final fun setPathAndQuery (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider; -} - -public abstract class aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider, java/io/Closeable { - public fun ()V - public fun close ()V - public fun getCredentials (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getConfigFileName ()Ljava/lang/String; - public final fun getCredentialsFileName ()Ljava/lang/String; - public final fun getProfileName ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setConfigFileName (Ljava/lang/String;)V - public final fun setCredentialsFileName (Ljava/lang/String;)V - public final fun setProfileName (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion; - public synthetic fun getJniCredentials$aws_crt_kotlin ()Lsoftware/amazon/awssdk/crt/auth/credentials/CredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider; - public final fun getAccessKeyId ()Ljava/lang/String; - public final fun getSecretAccessKey ()Ljava/lang/String; - public final fun getSessionToken ()Ljava/lang/String; - public final fun setAccessKeyId (Ljava/lang/String;)V - public final fun setSecretAccessKey (Ljava/lang/String;)V - public final fun setSessionToken (Ljava/lang/String;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider; - public static final fun fromCredentials (Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider$Companion;Laws/sdk/kotlin/crt/auth/credentials/Credentials;)Laws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getCredentialsProvider ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun getDurationSeconds ()Ljava/lang/Integer; - public final fun getRoleArn ()Ljava/lang/String; - public final fun getSessionName ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setCredentialsProvider (Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider;)V - public final fun setDurationSeconds (Ljava/lang/Integer;)V - public final fun setRoleArn (Ljava/lang/String;)V - public final fun setSessionName (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider : aws/sdk/kotlin/crt/auth/credentials/JniCredentialsProvider, aws/sdk/kotlin/crt/auth/credentials/CredentialsProvider { - public static final field Companion Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider$Companion; -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider$Companion { -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProviderBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getEndpoint ()Ljava/lang/String; - public final fun getProxyOptions ()Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public final fun getRoleAlias ()Ljava/lang/String; - public final fun getThingName ()Ljava/lang/String; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setEndpoint (Ljava/lang/String;)V - public final fun setProxyOptions (Laws/sdk/kotlin/crt/http/HttpProxyOptions;)V - public final fun setRoleAlias (Ljava/lang/String;)V - public final fun setThingName (Ljava/lang/String;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V -} - -public final class aws/sdk/kotlin/crt/auth/credentials/X509CredentialsProviderKt { - public static final fun build (Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/credentials/X509CredentialsProvider; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSignatureType : java/lang/Enum { - public static final field HTTP_REQUEST_CHUNK Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_EVENT Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_TRAILING_HEADERS Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_VIA_HEADERS Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static final field HTTP_REQUEST_VIA_QUERY_PARAMS Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public static fun values ()[Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType : java/lang/Enum { - public static final field NONE Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public static final field X_AMZ_CONTENT_SHA256 Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public static fun values ()[Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSignedBodyValue { - public static final field EMPTY_SHA256 Ljava/lang/String; - public static final field INSTANCE Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyValue; - public static final field STREAMING_AWS4_HMAC_SHA256_EVENTS Ljava/lang/String; - public static final field STREAMING_AWS4_HMAC_SHA256_PAYLOAD Ljava/lang/String; - public static final field UNSIGNED_PAYLOAD Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigner { - public static final field INSTANCE Laws/sdk/kotlin/crt/auth/signing/AwsSigner; - public final fun sign (Laws/sdk/kotlin/crt/http/HttpRequest;Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun signChunk ([B[BLaws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun signChunkTrailer (Laws/sdk/kotlin/crt/http/Headers;[BLaws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public final fun signRequest (Laws/sdk/kotlin/crt/http/HttpRequest;Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig;Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm : java/lang/Enum { - public static final field SIGV4 Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static final field SIGV4_ASYMMETRIC Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static final field SIGV4_S3EXPRESS Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public static fun values ()[Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningConfig { - public static final field Companion Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Companion; - public fun (Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Builder;)V - public final fun getAlgorithm ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public final fun getCredentials ()Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public final fun getCredentialsProvider ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun getDate ()J - public final fun getExpirationInSeconds ()J - public final fun getNormalizeUriPath ()Z - public final fun getOmitSessionToken ()Z - public final fun getRegion ()Ljava/lang/String; - public final fun getService ()Ljava/lang/String; - public final fun getShouldSignHeader ()Lkotlin/jvm/functions/Function1; - public final fun getSignatureType ()Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public final fun getSignedBodyHeader ()Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public final fun getSignedBodyValue ()Ljava/lang/String; - public final fun getUseDoubleUriEncode ()Z - public final fun toBuilder ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Builder; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Builder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig; - public final fun getAlgorithm ()Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm; - public final fun getCredentials ()Laws/sdk/kotlin/crt/auth/credentials/Credentials; - public final fun getCredentialsProvider ()Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider; - public final fun getDate ()Ljava/lang/Long; - public final fun getExpirationInSeconds ()J - public final fun getNormalizeUriPath ()Z - public final fun getOmitSessionToken ()Z - public final fun getRegion ()Ljava/lang/String; - public final fun getService ()Ljava/lang/String; - public final fun getShouldSignHeader ()Lkotlin/jvm/functions/Function1; - public final fun getSignatureType ()Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType; - public final fun getSignedBodyHeader ()Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType; - public final fun getSignedBodyValue ()Ljava/lang/String; - public final fun getUseDoubleUriEncode ()Z - public final fun setAlgorithm (Laws/sdk/kotlin/crt/auth/signing/AwsSigningAlgorithm;)V - public final fun setCredentials (Laws/sdk/kotlin/crt/auth/credentials/Credentials;)V - public final fun setCredentialsProvider (Laws/sdk/kotlin/crt/auth/credentials/CredentialsProvider;)V - public final fun setDate (Ljava/lang/Long;)V - public final fun setExpirationInSeconds (J)V - public final fun setNormalizeUriPath (Z)V - public final fun setOmitSessionToken (Z)V - public final fun setRegion (Ljava/lang/String;)V - public final fun setService (Ljava/lang/String;)V - public final fun setShouldSignHeader (Lkotlin/jvm/functions/Function1;)V - public final fun setSignatureType (Laws/sdk/kotlin/crt/auth/signing/AwsSignatureType;)V - public final fun setSignedBodyHeader (Laws/sdk/kotlin/crt/auth/signing/AwsSignedBodyHeaderType;)V - public final fun setSignedBodyValue (Ljava/lang/String;)V - public final fun setUseDoubleUriEncode (Z)V -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningConfig$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/auth/signing/AwsSigningConfig; -} - -public final class aws/sdk/kotlin/crt/auth/signing/AwsSigningResult { - public fun (Laws/sdk/kotlin/crt/http/HttpRequest;[B)V - public final fun component1 ()Laws/sdk/kotlin/crt/http/HttpRequest; - public final fun component2 ()[B - public final fun copy (Laws/sdk/kotlin/crt/http/HttpRequest;[B)Laws/sdk/kotlin/crt/auth/signing/AwsSigningResult; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/auth/signing/AwsSigningResult;Laws/sdk/kotlin/crt/http/HttpRequest;[BILjava/lang/Object;)Laws/sdk/kotlin/crt/auth/signing/AwsSigningResult; - public fun equals (Ljava/lang/Object;)Z - public final fun getSignature ()[B - public final fun getSignedRequest ()Laws/sdk/kotlin/crt/http/HttpRequest; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public abstract interface class aws/sdk/kotlin/crt/http/Headers { - public static final field Companion Laws/sdk/kotlin/crt/http/Headers$Companion; - public abstract fun contains (Ljava/lang/String;)Z - public abstract fun contains (Ljava/lang/String;Ljava/lang/String;)Z - public abstract fun entries ()Ljava/util/Set; - public abstract fun forEach (Lkotlin/jvm/functions/Function2;)V - public abstract fun get (Ljava/lang/String;)Ljava/lang/String; - public abstract fun getAll (Ljava/lang/String;)Ljava/util/List; - public abstract fun isEmpty ()Z - public abstract fun names ()Ljava/util/Set; -} - -public final class aws/sdk/kotlin/crt/http/Headers$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/http/Headers; -} - -public final class aws/sdk/kotlin/crt/http/Headers$DefaultImpls { - public static fun contains (Laws/sdk/kotlin/crt/http/Headers;Ljava/lang/String;Ljava/lang/String;)Z - public static fun forEach (Laws/sdk/kotlin/crt/http/Headers;Lkotlin/jvm/functions/Function2;)V - public static fun get (Laws/sdk/kotlin/crt/http/Headers;Ljava/lang/String;)Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HeadersBuilder { - public fun ()V - public final fun append (Ljava/lang/String;Ljava/lang/String;)V - public final fun appendAll (Laws/sdk/kotlin/crt/http/Headers;)V - public final fun appendAll (Ljava/lang/String;Ljava/lang/Iterable;)V - public final fun appendMissing (Laws/sdk/kotlin/crt/http/Headers;)V - public final fun appendMissing (Ljava/lang/String;Ljava/lang/Iterable;)V - public final fun build ()Laws/sdk/kotlin/crt/http/Headers; - public final fun clear ()V - public final fun contains (Ljava/lang/String;)Z - public final fun contains (Ljava/lang/String;Ljava/lang/String;)Z - public final fun entries ()Ljava/util/Set; - public final fun get (Ljava/lang/String;)Ljava/lang/String; - public final fun getAll (Ljava/lang/String;)Ljava/util/List; - public final fun isEmpty ()Z - public final fun names ()Ljava/util/Set; - public final fun remove (Ljava/lang/String;)Ljava/util/List; - public final fun remove (Ljava/lang/String;Ljava/lang/String;)Z - public final fun removeKeysWithNoEntries ()V - public final fun set (Ljava/lang/String;Ljava/lang/String;)V -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpClientConnection : aws/sdk/kotlin/crt/Closeable { - public abstract fun getId ()Ljava/lang/String; - public abstract fun makeRequest (Laws/sdk/kotlin/crt/http/HttpRequest;Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;)Laws/sdk/kotlin/crt/http/HttpStream; - public abstract fun shutdown ()V -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManager : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun (Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions;)V - public final fun acquireConnection (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; - public fun close ()V - public final fun getManagerMetrics ()Laws/sdk/kotlin/crt/http/HttpManagerMetrics; - public final fun getOptions ()Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions; - public final fun releaseConnection (Laws/sdk/kotlin/crt/http/HttpClientConnection;)V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions { - public static final field Companion Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions$Companion; - public static final field DEFAULT_INITIAL_WINDOW_SIZE I - public static final field DEFAULT_MAX_CONNECTIONS I - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getInitialWindowSize ()I - public final fun getManualWindowManagement ()Z - public final fun getMaxConnectionIdleMs ()J - public final fun getMaxConnections ()I - public final fun getMonitoringOptions ()Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public final fun getProxyOptions ()Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public final fun getSocketOptions ()Laws/sdk/kotlin/crt/io/SocketOptions; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun getUri ()Laws/sdk/kotlin/crt/io/Uri; -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions; -} - -public final class aws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptionsBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/http/HttpClientConnectionManagerOptions; - public final fun getClientBootstrap ()Laws/sdk/kotlin/crt/io/ClientBootstrap; - public final fun getInitialWindowSize ()I - public final fun getManualWindowManagement ()Z - public final fun getMaxConnectionIdleMs ()J - public final fun getMaxConnections ()I - public final fun getMonitoringOptions ()Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public final fun getProxyOptions ()Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public final fun getSocketOptions ()Laws/sdk/kotlin/crt/io/SocketOptions; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun getUri ()Laws/sdk/kotlin/crt/io/Uri; - public final fun setClientBootstrap (Laws/sdk/kotlin/crt/io/ClientBootstrap;)V - public final fun setInitialWindowSize (I)V - public final fun setManualWindowManagement (Z)V - public final fun setMaxConnectionIdleMs (J)V - public final fun setMaxConnections (I)V - public final fun setMonitoringOptions (Laws/sdk/kotlin/crt/http/HttpMonitoringOptions;)V - public final fun setProxyOptions (Laws/sdk/kotlin/crt/http/HttpProxyOptions;)V - public final fun setSocketOptions (Laws/sdk/kotlin/crt/io/SocketOptions;)V - public final fun setTlsContext (Laws/sdk/kotlin/crt/io/TlsContext;)V - public final fun setUri (Laws/sdk/kotlin/crt/io/Uri;)V - public final fun uri (Lkotlin/jvm/functions/Function1;)V -} - -public final class aws/sdk/kotlin/crt/http/HttpException : aws/sdk/kotlin/crt/CrtRuntimeException { - public fun (I)V -} - -public final class aws/sdk/kotlin/crt/http/HttpHeader { - public fun (Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;)Laws/sdk/kotlin/crt/http/HttpHeader; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpHeader;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpHeader; - public fun equals (Ljava/lang/Object;)Z - public final fun getName ()Ljava/lang/String; - public final fun getValue ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpHeaderBlock : java/lang/Enum { - public static final field INFORMATIONAL Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public static final field MAIN Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public static final field TRAILING Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public final fun getBlockType ()I - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/http/HttpHeaderBlock; - public static fun values ()[Laws/sdk/kotlin/crt/http/HttpHeaderBlock; -} - -public final class aws/sdk/kotlin/crt/http/HttpManagerMetrics { - public fun (JJJ)V - public final fun component1 ()J - public final fun component2 ()J - public final fun component3 ()J - public final fun copy (JJJ)Laws/sdk/kotlin/crt/http/HttpManagerMetrics; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpManagerMetrics;JJJILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpManagerMetrics; - public fun equals (Ljava/lang/Object;)Z - public final fun getAvailableConcurrency ()J - public final fun getLeasedConcurrency ()J - public final fun getPendingConcurrencyAcquires ()J - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpMonitoringOptions { - public fun ()V - public fun (II)V - public synthetic fun (IIILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()I - public final fun component2 ()I - public final fun copy (II)Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpMonitoringOptions;IIILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpMonitoringOptions; - public fun equals (Ljava/lang/Object;)Z - public final fun getAllowableThroughputFailureIntervalSeconds ()I - public final fun getMinThroughputBytesPerSecond ()I - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpProxyAuthorizationType : java/lang/Enum { - public static final field Basic Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public static final field None Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public static fun values ()[Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; -} - -public final class aws/sdk/kotlin/crt/http/HttpProxyOptions { - public fun (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/Integer; - public final fun component3 ()Ljava/lang/String; - public final fun component4 ()Ljava/lang/String; - public final fun component5 ()Laws/sdk/kotlin/crt/io/TlsContext; - public final fun component6 ()Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public final fun copy (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;)Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpProxyOptions;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/TlsContext;Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType;ILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpProxyOptions; - public fun equals (Ljava/lang/Object;)Z - public final fun getAuthPassword ()Ljava/lang/String; - public final fun getAuthType ()Laws/sdk/kotlin/crt/http/HttpProxyAuthorizationType; - public final fun getAuthUsername ()Ljava/lang/String; - public final fun getHost ()Ljava/lang/String; - public final fun getPort ()Ljava/lang/Integer; - public final fun getTlsContext ()Laws/sdk/kotlin/crt/io/TlsContext; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpRequest { - public static final field Companion Laws/sdk/kotlin/crt/http/HttpRequest$Companion; - public fun (Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)V - public synthetic fun (Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()Laws/sdk/kotlin/crt/http/Headers; - public final fun component4 ()Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; - public final fun copy (Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)Laws/sdk/kotlin/crt/http/HttpRequest; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpRequest;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/http/Headers;Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;ILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpRequest; - public fun equals (Ljava/lang/Object;)Z - public final fun getBody ()Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; - public final fun getEncodedPath ()Ljava/lang/String; - public final fun getHeaders ()Laws/sdk/kotlin/crt/http/Headers; - public final fun getMethod ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpRequest$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/http/HttpRequest; -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpRequestBodyStream { - public static final field Companion Laws/sdk/kotlin/crt/http/HttpRequestBodyStream$Companion; - public abstract fun resetPosition ()Z - public abstract fun sendRequestBody (Laws/sdk/kotlin/crt/io/MutableBuffer;)Z -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestBodyStream$Companion { - public final fun fromByteArray ([B)Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestBodyStream$DefaultImpls { - public static fun resetPosition (Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)Z - public static fun sendRequestBody (Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;Laws/sdk/kotlin/crt/io/MutableBuffer;)Z -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/http/HttpRequest; - public final fun getBody ()Laws/sdk/kotlin/crt/http/HttpRequestBodyStream; - public final fun getEncodedPath ()Ljava/lang/String; - public final fun getHeaders ()Laws/sdk/kotlin/crt/http/HeadersBuilder; - public final fun getMethod ()Ljava/lang/String; - public final fun setBody (Laws/sdk/kotlin/crt/http/HttpRequestBodyStream;)V - public final fun setEncodedPath (Ljava/lang/String;)V - public final fun setMethod (Ljava/lang/String;)V -} - -public final class aws/sdk/kotlin/crt/http/HttpRequestKt { - public static final fun headers (Laws/sdk/kotlin/crt/http/HttpRequestBuilder;Lkotlin/jvm/functions/Function1;)V -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpStream : aws/sdk/kotlin/crt/Closeable { - public abstract fun activate ()V - public abstract fun getResponseStatusCode ()I - public abstract fun incrementWindow (I)V - public abstract fun writeChunk ([BZLkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/http/HttpStreamMetrics { - public fun (JJJJJJI)V - public final fun component1 ()J - public final fun component2 ()J - public final fun component3 ()J - public final fun component4 ()J - public final fun component5 ()J - public final fun component6 ()J - public final fun component7 ()I - public final fun copy (JJJJJJI)Laws/sdk/kotlin/crt/http/HttpStreamMetrics; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/http/HttpStreamMetrics;JJJJJJIILjava/lang/Object;)Laws/sdk/kotlin/crt/http/HttpStreamMetrics; - public fun equals (Ljava/lang/Object;)Z - public final fun getReceiveEndTimestampNs ()J - public final fun getReceiveStartTimestampNs ()J - public final fun getReceivingDurationNs ()J - public final fun getSendEndTimestampNs ()J - public final fun getSendStartTimestampNs ()J - public final fun getSendingDurationNs ()J - public final fun getStreamId ()I - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/http/HttpStreamMetricsJVMKt { - public static final fun toKotlin (Lsoftware/amazon/awssdk/crt/http/HttpStreamMetrics;)Laws/sdk/kotlin/crt/http/HttpStreamMetrics; -} - -public abstract interface class aws/sdk/kotlin/crt/http/HttpStreamResponseHandler { - public abstract fun onMetrics (Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/http/HttpStreamMetrics;)V - public abstract fun onResponseBody (Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/io/Buffer;)I - public abstract fun onResponseComplete (Laws/sdk/kotlin/crt/http/HttpStream;I)V - public abstract fun onResponseHeaders (Laws/sdk/kotlin/crt/http/HttpStream;IILjava/util/List;)V - public abstract fun onResponseHeadersDone (Laws/sdk/kotlin/crt/http/HttpStream;I)V -} - -public final class aws/sdk/kotlin/crt/http/HttpStreamResponseHandler$DefaultImpls { - public static fun onMetrics (Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/http/HttpStreamMetrics;)V - public static fun onResponseBody (Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;Laws/sdk/kotlin/crt/http/HttpStream;Laws/sdk/kotlin/crt/io/Buffer;)I - public static fun onResponseHeadersDone (Laws/sdk/kotlin/crt/http/HttpStreamResponseHandler;Laws/sdk/kotlin/crt/http/HttpStream;I)V -} - -public abstract interface class aws/sdk/kotlin/crt/io/Buffer { - public static final field Companion Laws/sdk/kotlin/crt/io/Buffer$Companion; - public abstract fun copyTo ([BI)I - public abstract fun getLen ()I - public abstract fun readAll ()[B -} - -public final class aws/sdk/kotlin/crt/io/Buffer$Companion { - public final fun getEmpty ()Laws/sdk/kotlin/crt/io/Buffer; -} - -public final class aws/sdk/kotlin/crt/io/Buffer$DefaultImpls { - public static synthetic fun copyTo$default (Laws/sdk/kotlin/crt/io/Buffer;[BIILjava/lang/Object;)I -} - -public final class aws/sdk/kotlin/crt/io/BufferKt { - public static final fun byteArrayBuffer ([B)Laws/sdk/kotlin/crt/io/Buffer; -} - -public final class aws/sdk/kotlin/crt/io/ClientBootstrap : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun (Laws/sdk/kotlin/crt/io/EventLoopGroup;Laws/sdk/kotlin/crt/io/HostResolver;)V - public fun close ()V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/io/EventLoopGroup : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun ()V - public fun (I)V - public synthetic fun (IILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun close ()V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/io/HostResolver : aws/sdk/kotlin/crt/AsyncShutdown, aws/sdk/kotlin/crt/Closeable { - public fun (Laws/sdk/kotlin/crt/io/EventLoopGroup;)V - public fun (Laws/sdk/kotlin/crt/io/EventLoopGroup;I)V - public fun close ()V - public fun waitForShutdown (Lkotlin/coroutines/Continuation;)Ljava/lang/Object; -} - -public final class aws/sdk/kotlin/crt/io/MutableBuffer { - public static final field Companion Laws/sdk/kotlin/crt/io/MutableBuffer$Companion; - public fun (Ljava/nio/ByteBuffer;)V - public final fun getBuffer ()Ljava/nio/ByteBuffer; - public final fun getWriteRemaining ()I - public final fun write ([BII)I - public static synthetic fun write$default (Laws/sdk/kotlin/crt/io/MutableBuffer;[BIIILjava/lang/Object;)I -} - -public final class aws/sdk/kotlin/crt/io/MutableBuffer$Companion { - public final fun of ([B)Laws/sdk/kotlin/crt/io/MutableBuffer; -} - -public final class aws/sdk/kotlin/crt/io/Protocol { - public static final field Companion Laws/sdk/kotlin/crt/io/Protocol$Companion; - public fun (Ljava/lang/String;I)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()I - public final fun copy (Ljava/lang/String;I)Laws/sdk/kotlin/crt/io/Protocol; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;IILjava/lang/Object;)Laws/sdk/kotlin/crt/io/Protocol; - public fun equals (Ljava/lang/Object;)Z - public final fun getDefaultPort ()I - public final fun getName ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/io/Protocol$Companion { - public final fun createOrDefault (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/Protocol; - public final fun getByName ()Ljava/util/Map; - public final fun getHTTP ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getHTTPS ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getWS ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getWSS ()Laws/sdk/kotlin/crt/io/Protocol; -} - -public final class aws/sdk/kotlin/crt/io/SocketDomain : java/lang/Enum { - public static final field IPv4 Laws/sdk/kotlin/crt/io/SocketDomain; - public static final field IPv6 Laws/sdk/kotlin/crt/io/SocketDomain; - public static final field LOCAL Laws/sdk/kotlin/crt/io/SocketDomain; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/SocketDomain; - public static fun values ()[Laws/sdk/kotlin/crt/io/SocketDomain; -} - -public final class aws/sdk/kotlin/crt/io/SocketOptions { - public fun ()V - public fun (Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;III)V - public synthetic fun (Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;IIIILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Laws/sdk/kotlin/crt/io/SocketDomain; - public final fun component2 ()Laws/sdk/kotlin/crt/io/SocketType; - public final fun component3 ()I - public final fun component4 ()I - public final fun component5 ()I - public final fun copy (Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;III)Laws/sdk/kotlin/crt/io/SocketOptions; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/SocketOptions;Laws/sdk/kotlin/crt/io/SocketDomain;Laws/sdk/kotlin/crt/io/SocketType;IIIILjava/lang/Object;)Laws/sdk/kotlin/crt/io/SocketOptions; - public fun equals (Ljava/lang/Object;)Z - public final fun getConnectTimeoutMs ()I - public final fun getDomain ()Laws/sdk/kotlin/crt/io/SocketDomain; - public final fun getKeepAliveIntervalSecs ()I - public final fun getKeepAliveTimeoutSecs ()I - public final fun getType ()Laws/sdk/kotlin/crt/io/SocketType; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/io/SocketType : java/lang/Enum { - public static final field DGRAM Laws/sdk/kotlin/crt/io/SocketType; - public static final field STREAM Laws/sdk/kotlin/crt/io/SocketType; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/SocketType; - public static fun values ()[Laws/sdk/kotlin/crt/io/SocketType; -} - -public final class aws/sdk/kotlin/crt/io/TlsCipherPreference : java/lang/Enum { - public static final field KMS_PQ_SIKE_TLS_V1_0_2019_11 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_SIKE_TLS_V1_0_2020_02 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_TLS_V1_0_2019_06 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_TLS_V1_0_2020_02 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field KMS_PQ_TLS_V1_0_2020_07 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field PQ_TLS_V1_0_2021_05 Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static final field SYSTEM_DEFAULT Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public final fun isSupported ()Z - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public static fun values ()[Laws/sdk/kotlin/crt/io/TlsCipherPreference; -} - -public final class aws/sdk/kotlin/crt/io/TlsContext : aws/sdk/kotlin/crt/Closeable { - public static final field Companion Laws/sdk/kotlin/crt/io/TlsContext$Companion; - public fun ()V - public fun (Laws/sdk/kotlin/crt/io/TlsContextOptions;)V - public synthetic fun (Laws/sdk/kotlin/crt/io/TlsContextOptions;ILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun close ()V -} - -public final class aws/sdk/kotlin/crt/io/TlsContext$Companion { -} - -public final class aws/sdk/kotlin/crt/io/TlsContextKt { - public static final fun build (Laws/sdk/kotlin/crt/io/TlsContext$Companion;Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/TlsContext; -} - -public final class aws/sdk/kotlin/crt/io/TlsContextOptions { - public static final field Companion Laws/sdk/kotlin/crt/io/TlsContextOptions$Companion; - public final fun getAlpn ()Ljava/lang/String; - public final fun getCaDir ()Ljava/lang/String; - public final fun getCaFile ()Ljava/lang/String; - public final fun getCaRoot ()Ljava/lang/String; - public final fun getCertificate ()Ljava/lang/String; - public final fun getCertificatePath ()Ljava/lang/String; - public final fun getMinTlsVersion ()Laws/sdk/kotlin/crt/io/TlsVersion; - public final fun getPkcs12Password ()Ljava/lang/String; - public final fun getPkcs12Path ()Ljava/lang/String; - public final fun getPrivateKey ()Ljava/lang/String; - public final fun getPrivateKeyPath ()Ljava/lang/String; - public final fun getTlsCipherPreference ()Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public final fun getVerifyPeer ()Z -} - -public final class aws/sdk/kotlin/crt/io/TlsContextOptions$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun defaultClient ()Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun defaultServer ()Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun isAlpnSupported ()Z - public final fun isCipherPreferenceSupported (Laws/sdk/kotlin/crt/io/TlsCipherPreference;)Z -} - -public final class aws/sdk/kotlin/crt/io/TlsContextOptionsBuilder { - public fun ()V - public final fun build ()Laws/sdk/kotlin/crt/io/TlsContextOptions; - public final fun getAlpn ()Ljava/lang/String; - public final fun getCaDir ()Ljava/lang/String; - public final fun getCaFile ()Ljava/lang/String; - public final fun getCaRoot ()Ljava/lang/String; - public final fun getCertificate ()Ljava/lang/String; - public final fun getCertificatePath ()Ljava/lang/String; - public final fun getMinTlsVersion ()Laws/sdk/kotlin/crt/io/TlsVersion; - public final fun getPkcs12Password ()Ljava/lang/String; - public final fun getPkcs12Path ()Ljava/lang/String; - public final fun getPrivateKey ()Ljava/lang/String; - public final fun getPrivateKeyPath ()Ljava/lang/String; - public final fun getTlsCipherPreference ()Laws/sdk/kotlin/crt/io/TlsCipherPreference; - public final fun getVerifyPeer ()Z - public final fun setAlpn (Ljava/lang/String;)V - public final fun setCaDir (Ljava/lang/String;)V - public final fun setCaFile (Ljava/lang/String;)V - public final fun setCaRoot (Ljava/lang/String;)V - public final fun setCertificate (Ljava/lang/String;)V - public final fun setCertificatePath (Ljava/lang/String;)V - public final fun setMinTlsVersion (Laws/sdk/kotlin/crt/io/TlsVersion;)V - public final fun setPkcs12Password (Ljava/lang/String;)V - public final fun setPkcs12Path (Ljava/lang/String;)V - public final fun setPrivateKey (Ljava/lang/String;)V - public final fun setPrivateKeyPath (Ljava/lang/String;)V - public final fun setTlsCipherPreference (Laws/sdk/kotlin/crt/io/TlsCipherPreference;)V - public final fun setVerifyPeer (Z)V -} - -public final class aws/sdk/kotlin/crt/io/TlsVersion : java/lang/Enum { - public static final field SSLv3 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field SYS_DEFAULT Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLS_V1_1 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLS_V1_2 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLS_V1_3 Laws/sdk/kotlin/crt/io/TlsVersion; - public static final field TLSv1 Laws/sdk/kotlin/crt/io/TlsVersion; - public static fun getEntries ()Lkotlin/enums/EnumEntries; - public final fun getValue ()I - public static fun valueOf (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/TlsVersion; - public static fun values ()[Laws/sdk/kotlin/crt/io/TlsVersion; -} - -public final class aws/sdk/kotlin/crt/io/Uri { - public static final field Companion Laws/sdk/kotlin/crt/io/Uri$Companion; - public fun (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;Z)V - public synthetic fun (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun component2 ()Ljava/lang/String; - public final fun component3 ()I - public final fun component4 ()Ljava/lang/String; - public final fun component5 ()Ljava/lang/String; - public final fun component6 ()Ljava/lang/String; - public final fun component7 ()Laws/sdk/kotlin/crt/io/UserInfo; - public final fun component8 ()Z - public final fun copy (Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;Z)Laws/sdk/kotlin/crt/io/Uri; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/Uri;Laws/sdk/kotlin/crt/io/Protocol;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/sdk/kotlin/crt/io/UserInfo;ZILjava/lang/Object;)Laws/sdk/kotlin/crt/io/Uri; - public fun equals (Ljava/lang/Object;)Z - public final fun getAuthority ()Ljava/lang/String; - public final fun getForceQuery ()Z - public final fun getFragment ()Ljava/lang/String; - public final fun getHost ()Ljava/lang/String; - public final fun getHostAndPort ()Ljava/lang/String; - public final fun getParameters ()Ljava/lang/String; - public final fun getPath ()Ljava/lang/String; - public final fun getPort ()I - public final fun getScheme ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getSpecifiedPort ()I - public final fun getUserInfo ()Laws/sdk/kotlin/crt/io/UserInfo; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/io/Uri$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/Uri; - public final fun parse (Ljava/lang/String;)Laws/sdk/kotlin/crt/io/Uri; -} - -public final class aws/sdk/kotlin/crt/io/UriBuilder { - public static final field Companion Laws/sdk/kotlin/crt/io/UriBuilder$Companion; - public fun ()V - public final fun getForceQuery ()Z - public final fun getFragment ()Ljava/lang/String; - public final fun getHost ()Ljava/lang/String; - public final fun getParameters ()Ljava/lang/String; - public final fun getPath ()Ljava/lang/String; - public final fun getPort ()Ljava/lang/Integer; - public final fun getScheme ()Laws/sdk/kotlin/crt/io/Protocol; - public final fun getUserInfo ()Laws/sdk/kotlin/crt/io/UserInfo; - public final fun setForceQuery (Z)V - public final fun setFragment (Ljava/lang/String;)V - public final fun setHost (Ljava/lang/String;)V - public final fun setParameters (Ljava/lang/String;)V - public final fun setPath (Ljava/lang/String;)V - public final fun setPort (Ljava/lang/Integer;)V - public final fun setScheme (Laws/sdk/kotlin/crt/io/Protocol;)V - public final fun setUserInfo (Laws/sdk/kotlin/crt/io/UserInfo;)V -} - -public final class aws/sdk/kotlin/crt/io/UriBuilder$Companion { - public final fun build (Lkotlin/jvm/functions/Function1;)Laws/sdk/kotlin/crt/io/Uri; -} - -public final class aws/sdk/kotlin/crt/io/UriKt { - public static final field DEFAULT_SCHEME_PORT I - public static final fun requiresTls (Laws/sdk/kotlin/crt/io/Protocol;)Z -} - -public final class aws/sdk/kotlin/crt/io/UserInfo { - public fun (Ljava/lang/String;Ljava/lang/String;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Ljava/lang/String; - public final fun copy (Ljava/lang/String;Ljava/lang/String;)Laws/sdk/kotlin/crt/io/UserInfo; - public static synthetic fun copy$default (Laws/sdk/kotlin/crt/io/UserInfo;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Laws/sdk/kotlin/crt/io/UserInfo; - public fun equals (Ljava/lang/Object;)Z - public final fun getPassword ()Ljava/lang/String; - public final fun getUsername ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class aws/sdk/kotlin/crt/util/Digest { - public static final field INSTANCE Laws/sdk/kotlin/crt/util/Digest; - public final fun sha256 ([B)[B -} - -public final class aws/sdk/kotlin/crt/util/DigestKt { - public static final fun encodeToHex ([B)Ljava/lang/String; - public static final fun hex (Laws/sdk/kotlin/crt/util/Digest;[B)Ljava/lang/String; -} - diff --git a/aws-crt-kotlin/build.gradle.kts b/aws-crt-kotlin/build.gradle.kts index 8992e05..fe5570b 100644 --- a/aws-crt-kotlin/build.gradle.kts +++ b/aws-crt-kotlin/build.gradle.kts @@ -7,7 +7,6 @@ import aws.sdk.kotlin.gradle.crt.cmakeInstallDir import aws.sdk.kotlin.gradle.crt.configureCrtCMakeBuild import aws.sdk.kotlin.gradle.crt.disableCrossCompileTargets import aws.sdk.kotlin.gradle.dsl.configurePublishing -import aws.sdk.kotlin.gradle.kmp.IDEA_ACTIVE import aws.sdk.kotlin.gradle.kmp.configureKmpTargets import aws.sdk.kotlin.gradle.util.typedProp import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget @@ -23,7 +22,7 @@ plugins { val sdkVersion: String by project group = properties["publishGroupName"] ?: error("missing publishGroupName") version = sdkVersion -description = "Kotlin Multiplatform bindings for AWS SDK Common Runtime" +description = "Kotlin Multiplatform bindings for AWS Common Runtime" // See: https://kotlinlang.org/docs/reference/opt-in-requirements.html#opting-in-to-using-api val optinAnnotations = listOf("kotlin.RequiresOptIn", "kotlinx.cinterop.ExperimentalForeignApi") @@ -45,42 +44,6 @@ kotlin { // FIXME - setup docker files and cmake tasks appropriately // mingwX64() - jvm { - attributes { - attribute( - TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, - objects.named(TargetJvmEnvironment.STANDARD_JVM), - ) - } - } - - // KMP doesn't support sharing source sets for multiple JVM targets OR JVM + Android targets. - // We can manually declare a `jvmCommon` target and wire it up. It will compile fine but Intellij does - // not support this and the developer experience is abysmal. Kotlin/Native suffers a similar problem and - // we can use the same solution. Simply, if Intellij is running (i.e. the one invoking this script) then - // assume we are only building for JVM. Otherwise declare the additional JVM target for Android and - // set the sourceSet the same for both but with different runtime dependencies. - // See: - // * https://kotlinlang.org/docs/mpp-share-on-platforms.html#share-code-in-libraries - // * https://kotlinlang.org/docs/mpp-set-up-targets.html#distinguish-several-targets-for-one-platform - if (!IDEA_ACTIVE) { - - // NOTE: We don't actually need the Android plugin. All of the Android specifics are handled in aws-crt-java, - // we just need a variant with a different dependency set + some distinguishing attributes. - jvm("android") { - attributes { - attribute( - org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.Companion.attribute, - org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.androidJvm, - ) - attribute( - TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, - objects.named(TargetJvmEnvironment.ANDROID), - ) - } - } - } - sourceSets { val commonMain by getting { dependencies { @@ -110,30 +73,6 @@ kotlin { implementation(libs.mockserver.netty) } } - - if (!IDEA_ACTIVE) { - val androidMain by getting { - // re-use the jvm (desktop) sourceSet. We only really care about declaring a variant with a different set - // of runtime dependencies - kotlin.srcDir("jvm/src") - dependsOn(commonMain) - dependencies { - // we need symbols we can resolve during compilation but at runtime (i.e. on device) we depend on the Android dependency - compileOnly(libs.crt.java) - val crtJavaVersion = libs.versions.crt.java.version.get() - implementation("software.amazon.awssdk.crt:aws-crt-android:$crtJavaVersion@aar") - - // FIXME - temporary integration with CompletableFuture while we work out a POC on the jvm target - implementation(libs.kotlinx.coroutines.jdk8) - } - } - - // disable compilation of android test source set. It is the same as the jvmTest sourceSet/tests. This - // sourceSet only exists to create a new variant that is the same in every way except the runtime - // dependency on aws-crt-android. To test this we would need to run it on device/emulator. - tasks.getByName("androidTest").enabled = false - tasks.getByName("compileTestKotlinAndroid").enabled = false - } } sourceSets.all { diff --git a/build.gradle.kts b/build.gradle.kts index 2079c16..e9e133c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ buildscript { } plugins { - id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2" + alias(libs.plugins.kotlinx.binary.compatibility.validator) alias(libs.plugins.kotlin.multiplatform) apply false alias(libs.plugins.aws.kotlin.repo.tools.kmp) alias(libs.plugins.aws.kotlin.repo.tools.artifactsizemetrics) @@ -60,7 +60,7 @@ subprojects { if (project.typedProp("kotlinWarningsAsErrors") == true) { allprojects { tasks.withType { - kotlinOptions.allWarningsAsErrors = true + compilerOptions.allWarningsAsErrors = true } } } @@ -75,7 +75,3 @@ val lintPaths = listOf( ) configureLinting(lintPaths) - -apiValidation { - ignoredProjects += setOf("elasticurl") -} diff --git a/elasticurl/build.gradle.kts b/elasticurl/build.gradle.kts deleted file mode 100644 index 04164ec..0000000 --- a/elasticurl/build.gradle.kts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ -import aws.sdk.kotlin.gradle.util.typedProp - -plugins { - alias(libs.plugins.kotlin.multiplatform) - application -} - -val disableCrossCompile = typedProp("aws.sdk.kotlin.crt.disableCrossCompile") == true - -kotlin { - applyDefaultHierarchyTemplate() - macosX64() - macosArm64() - - if (disableCrossCompile) { - logger.warn("aws.sdk.kotlin.crt.disableCrossCompile=true: Cross compilation is disabled.") - } else { - linuxX64() - // FIXME - not supported by kotlinx-cli - // linuxArm64() - } - - jvm { - val jvmJar by tasks.getting(org.gradle.jvm.tasks.Jar::class) { - doFirst { - manifest { - attributes["Main-Class"] = "ApplicationKt" - } - from(configurations.getByName("jvmRuntimeClasspath").map { if (it.isDirectory) it else zipTree(it) }) - } - - duplicatesStrategy = DuplicatesStrategy.WARN - } - attributes { - attribute(org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.Companion.attribute, org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType.jvm) - attribute(TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE, objects.named(TargetJvmEnvironment.STANDARD_JVM)) - } - } - - sourceSets { - commonMain { - dependencies { - implementation(libs.kotlin.stdlib) - implementation(libs.kotlinx.cli) - implementation(project(":aws-crt-kotlin")) - implementation(libs.kotlinx.coroutines.core) - implementation(libs.kotlinx.io) - } - } - } - - targets.withType { - binaries { - executable("elasticurl", listOf(DEBUG)) { - // entryPoint = "software.amazon.awssdk.kotlin.crt.elasticurl.ApplicationKt" - } - } - } -} - -application { - mainClass = "ApplicationKt" -} diff --git a/elasticurl/src/commonMain/kotlin/Application.kt b/elasticurl/src/commonMain/kotlin/Application.kt deleted file mode 100644 index 9ce5291..0000000 --- a/elasticurl/src/commonMain/kotlin/Application.kt +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ -import aws.sdk.kotlin.crt.CRT -import aws.sdk.kotlin.crt.LogDestination -import aws.sdk.kotlin.crt.http.* -import aws.sdk.kotlin.crt.io.* -import kotlinx.coroutines.channels.Channel -import kotlinx.coroutines.runBlocking -import kotlinx.io.Sink -import kotlinx.io.buffered - -fun main(args: Array) { - val opts = CliOpts.from(args) - - CRT.initRuntime { - logLevel = opts.logLevel - logDestination = LogDestination.Stderr - if (opts.traceFile != null) { - logDestination = LogDestination.File - logFile = opts.traceFile - } - } - - println("url: ${opts.url}") - val uri = Uri.parse(opts.url) - println("parsed uri: $uri") - println("headers: ${opts.headers}") - - val rawSink = if (opts.outputFile != null) createFileSink(opts.outputFile!!) else StdoutSink() - val sink = rawSink.buffered() - - val tlsContextBuilder = TlsContextOptionsBuilder() - - if (uri.scheme.requiresTls()) { - // TODO - mutual tls, process cacert and key - - tlsContextBuilder.caDir = opts.capath - tlsContextBuilder.caRoot = opts.cacert - tlsContextBuilder.verifyPeer = !opts.insecure - } else { - if (opts.requireHttp2) { - throw IllegalArgumentException("error, we don't support h2c, please use TLS for HTTP/2 connection") - } - } - - val tlsContext = TlsContext(tlsContextBuilder.build()) - - val socketOpts = SocketOptions(connectTimeoutMs = opts.connectTimeout) - val elg = EventLoopGroup() - val hr = HostResolver(elg) - - val clientBootstrap = ClientBootstrap(elg, hr) - - val httpConnOptions = HttpClientConnectionManagerOptions.build { - this.tlsContext = tlsContext - this.uri = uri - this.clientBootstrap = clientBootstrap - socketOptions = socketOpts - } - - val httpConnManager = HttpClientConnectionManager(httpConnOptions) - - val request = HttpRequest.build { - method = opts.httpMethod.name - opts.headers?.map(::headerPair)?.forEach { headers.append(it.first, it.second) } - encodedPath = uri.path - - headers { - // manually add a user-agent and host header - if (!contains("User-Agent")) append("User-Agent", "elasticurl_kotlin 1.0, Powered by the AWS Common Runtime.") - if (!contains("Host")) append("Host", uri.hostAndPort) - } - } - - runBlocking { - val conn = httpConnManager.acquireConnection() - - try { - conn.roundTrip(request, sink) - } catch (ex: Exception) { - println("failed to round trip request: $ex") - ex.printStackTrace() - } finally { - // ... fixme - need to define the resource management story - println("closing http connection") - conn.close() - println("closing http connection manager") - httpConnManager.close() - httpConnManager.waitForShutdown() - - println("closing tls context") - tlsContext.close() - - println("closing client bootstrap") - clientBootstrap.close() - clientBootstrap.waitForShutdown() - - println("closing host resolver") - hr.close() - hr.waitForShutdown() - - println("closing event loop group") - elg.close() - elg.waitForShutdown() - - sink.close() - } - } - - println("exiting") -} - -private suspend fun HttpClientConnection.roundTrip(request: HttpRequest, sink: Sink) { - val streamDone = Channel() - - val responseHandler = object : HttpStreamResponseHandler { - override fun onResponseHeaders( - stream: HttpStream, - responseStatusCode: Int, - blockType: Int, - nextHeaders: List?, - ) { - println("onResponseHeaders -- status: $responseStatusCode ") - println("headers:") - nextHeaders?.forEach { println("\t${it.name}: ${it.value}") } - } - - override fun onResponseBody(stream: HttpStream, bodyBytesIn: Buffer): Int { - println("onResponseBody -- recv'd ${bodyBytesIn.len} bytes") - val contents = bodyBytesIn.readAll() - sink.write(contents) - - return contents.size - } - - override fun onResponseComplete(stream: HttpStream, errorCode: Int) { - println("onResponseComplete: errorCode: $errorCode") - if (errorCode != 0) { - val errName = CRT.errorName(errorCode) - val errDesc = CRT.errorString(errorCode) - println("error $errName: $errDesc") - } - streamDone.trySend(Unit) - // has to be explicitly closed or it leaks in K/N - streamDone.close() - } - } - - val stream = makeRequest(request, responseHandler) - try { - stream.activate() - // wait for completion signal - streamDone.receiveCatching() - } finally { - stream.close() - } -} diff --git a/elasticurl/src/commonMain/kotlin/CliOpts.kt b/elasticurl/src/commonMain/kotlin/CliOpts.kt deleted file mode 100644 index 0582b77..0000000 --- a/elasticurl/src/commonMain/kotlin/CliOpts.kt +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -import aws.sdk.kotlin.crt.LogLevel -import kotlinx.cli.* - -private const val DEFAULT_CONNECT_TIMEOUT_MS = 3000 - -private class FileArgtype(val isDirectory: kotlin.Boolean = false) : ArgType(true) { - override val description: kotlin.String - get() = if (isDirectory) "{ PATH }" else "{ FILE }" - - override fun convert(value: kotlin.String, name: kotlin.String): kotlin.String = value -} - -enum class HttpMethod { GET, POST, PUT, HEAD, DELETE } - -class CliOpts { - companion object { - fun from(args: Array): CliOpts = CliOpts().apply { parse(args) } - } - private val parser = ArgParser("elasticurl") - - val url: String by parser.argument(ArgType.String, description = "URL to make request to") - val cacert: String? by parser.option(FileArgtype(), description = "path to CA certificate file") - val capath: String? by parser.option(FileArgtype(true), description = "path to CA certificate file") - - val cert: String? by parser.option(FileArgtype(), description = "path to a PEM encoded certificate to use with mTLS") - val key: String? by parser.option(FileArgtype(), description = "path to a PEM encoded private key that matches cert") - val connectTimeout: Int by parser.option(ArgType.Int, fullName = "connect-timeout", description = "time in milliseconds to wait for a connection").default(DEFAULT_CONNECT_TIMEOUT_MS) - - val headers: List? by parser.option(ArgType.String, fullName = "header", shortName = "H", description = "additional headers to send with the request of the form `key:value`").multiple() - val includeHeaders: Boolean by parser.option(ArgType.Boolean, fullName = "include", shortName = "i", description = "include headers in output").default(false) - - val data: String? by parser.option(ArgType.String, shortName = "d", description = "data to POST or PUT") - val dataFile: String? by parser.option(FileArgtype(), fullName = "data-file", description = "file to read data from") - - private val rawHttpMethod: HttpMethod by parser.option(ArgType.Choice(), fullName = "method", shortName = "M", description = "HTTP method to use for the request").default(HttpMethod.GET) - private val useHttpGet: Boolean? by parser.option(ArgType.Boolean, fullName = "get", shortName = "G", description = "uses GET for http verb/method") - private val useHttpPost: Boolean? by parser.option(ArgType.Boolean, fullName = "post", shortName = "P", description = "uses POST for http verb/method") - private val useHttpHead: Boolean? by parser.option(ArgType.Boolean, fullName = "head", shortName = "I", description = "uses HEAD for http verb/method") - - val insecure: Boolean by parser.option(ArgType.Boolean, shortName = "k", description = "turn off TLS validation").default(false) - val outputFile: String? by parser.option(FileArgtype(), fullName = "output", shortName = "o", description = "dumps content-body to FILE instead of stdout") - val traceFile: String? by parser.option(FileArgtype(), fullName = "trace", shortName = "t", description = "dumps logs to FILE instead of stderr") - val logLevel: LogLevel by parser.option(ArgType.Choice(), fullName = "verbose", shortName = "v", description = "log level to configure").default(LogLevel.None) - - val requireHttp1: Boolean by parser.option(ArgType.Boolean, fullName = "http1_1", description = "HTTP/1.1 connection required").default(false) - val requireHttp2: Boolean by parser.option(ArgType.Boolean, fullName = "http2", description = "HTTP/2 connection required").default(false) - - fun parse(args: Array) = parser.parse(args) - - val httpMethod: HttpMethod - get() = when { - useHttpGet == true -> HttpMethod.GET - useHttpPost == true -> HttpMethod.POST - useHttpHead == true -> HttpMethod.HEAD - else -> rawHttpMethod - } -} diff --git a/elasticurl/src/commonMain/kotlin/Utils.kt b/elasticurl/src/commonMain/kotlin/Utils.kt deleted file mode 100644 index 534ff8e..0000000 --- a/elasticurl/src/commonMain/kotlin/Utils.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ -import kotlinx.io.Buffer -import kotlinx.io.RawSink -import kotlinx.io.files.Path -import kotlinx.io.files.SystemFileSystem -import kotlinx.io.readByteArray - -/* - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0 - */ - -internal fun headerPair(raw: String): Pair { - val parts = raw.split(":", limit = 2) - require(parts.size == 2) { "invalid HTTP header specified: $raw " } - return parts[0] to parts[1] -} - -fun createFileSink(path: String): RawSink = SystemFileSystem.sink(Path(path)) - -class StdoutSink : RawSink { - - override fun write(source: Buffer, byteCount: Long) { - val data = source.readByteArray() - println(data.decodeToString()) - } - override fun flush() {} - override fun close() { } -} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3e9d285..8b5b861 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -42,6 +42,7 @@ kotest-assertions-core-jvm = { module = "io.kotest:kotest-assertions-core-jvm", mockserver-netty = { module = "org.mock-server:mockserver-netty", version.ref = "mock-server-version" } [plugins] -kotlin-multiplatform = {id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin-version" } -aws-kotlin-repo-tools-kmp = { id = "aws.sdk.kotlin.gradle.kmp", version.ref = "aws-kotlin-repo-tools-version" } aws-kotlin-repo-tools-artifactsizemetrics = { id = "aws.sdk.kotlin.gradle.artifactsizemetrics", version.ref = "aws-kotlin-repo-tools-version" } +aws-kotlin-repo-tools-kmp = { id = "aws.sdk.kotlin.gradle.kmp", version.ref = "aws-kotlin-repo-tools-version" } +kotlin-multiplatform = {id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin-version" } +kotlinx-binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.13.2" } diff --git a/scripts/elasticurl-test.sh b/scripts/elasticurl-test.sh deleted file mode 100755 index 1d97407..0000000 --- a/scripts/elasticurl-test.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -TEST_SCRIPT=/tmp/http_client_test.py -SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" - -# TODO - expand to support selecting target platform -JVM_EXE=$SCRIPTPATH/elasticurlJvm.sh - -ROOT_PATH=$(dirname $SCRIPTPATH) - -cd $ROOT_PATH - -if [ ! -f $TEST_SCRIPT ]; then - curl -L -o $TEST_SCRIPT https://raw.githubusercontent.com/awslabs/aws-c-http/master/integration-testing/http_client_test.py -fi - -python3 $TEST_SCRIPT $JVM_EXE - diff --git a/scripts/elasticurlJvm.sh b/scripts/elasticurlJvm.sh deleted file mode 100755 index 5ede193..0000000 --- a/scripts/elasticurlJvm.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -java -jar ./elasticurl/build/libs/elasticurl-jvm.jar "$@" diff --git a/settings.gradle.kts b/settings.gradle.kts index a4303b9..2466425 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -22,4 +22,3 @@ includeBuild("./build-support") rootProject.name = "aws-crt-kotlin-parent" include(":aws-crt-kotlin") -include(":elasticurl")