You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime/protocol/http-client/api/http-client.api
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -340,7 +340,7 @@ public final class aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksums
340
340
341
341
public final class aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptor : aws/smithy/kotlin/runtime/client/Interceptor {
342
342
public static final field Companion Laws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptor$Companion;
343
-
public fun <init> (ZLaws/smithy/kotlin/runtime/client/config/HttpChecksumConfigOption;)V
343
+
public fun <init> (ZLaws/smithy/kotlin/runtime/client/config/HttpChecksumConfigOption;Z)V
344
344
public fun modifyBeforeAttemptCompletion-gIAlu-s (Laws/smithy/kotlin/runtime/client/ResponseInterceptorContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
345
345
public fun modifyBeforeCompletion-gIAlu-s (Laws/smithy/kotlin/runtime/client/ResponseInterceptorContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
346
346
public fun modifyBeforeDeserialization (Laws/smithy/kotlin/runtime/client/ProtocolResponseInterceptorContext;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Copy file name to clipboardExpand all lines: runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptor.kt
+34-35Lines changed: 34 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ import kotlinx.coroutines.job
26
26
importkotlin.coroutines.coroutineContext
27
27
28
28
/**
29
-
* Calculates a request's checksum.
29
+
* Handles request checksums.
30
30
*
31
31
* If a user supplies a checksum via an HTTP header no calculation will be done. The exception is MD5, if a user
32
32
* supplies an MD5 checksum header it will be ignored.
Copy file name to clipboardExpand all lines: runtime/protocol/http-client/common/src/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptor.kt
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -32,21 +32,22 @@ internal val CHECKSUM_HEADER_VALIDATION_PRIORITY_LIST: List<String> = listOf(
32
32
)
33
33
34
34
/**
35
-
* Validate a response's checksum.
35
+
* Handles response checksums.
36
36
*
37
37
* If it's a streaming response, it wraps the response in a hashing body, calculating the checksum as the response is
38
38
* streamed to the user. The checksum is validated after the user has consumed the entire body using a checksum validating body.
39
39
* Otherwise, the checksum if calculated all at once.
40
40
*
41
41
* Users can check which checksum was validated by referencing the `ResponseChecksumValidated` execution context variable.
42
42
*
43
-
* @param responseValidationRequired Flag indicating if the checksum validation is mandatory.
43
+
* @param responseValidationRequired Model sourced flag indicating if the checksum validation is mandatory.
44
44
* @param responseChecksumValidation Configuration option that determines when checksum validation should be done.
Copy file name to clipboardExpand all lines: runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ class FlexibleChecksumsRequestInterceptorTest {
Copy file name to clipboardExpand all lines: runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ class FlexibleChecksumsResponseInterceptorTest {
0 commit comments