Struct: checksum.ComputeInputPayloadChecksum

import "../ibm-cos-sdk-go-v2/service/internal/checksum"

Overview

ComputeInputPayloadChecksum middleware computes payload checksum

Implemented Interfaces

types.AnalyticsFilter, v4.HTTPPresigner, s3.HTTPPresignerV4, types.MetricsFilter, s3.PresignPost, arn.S3ObjectLambdaARN, types.SelectObjectContentEventStream

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

EnableComputePayloadHash bool

Enables support for computing the SHA256 checksum of input payloads along with the algorithm specified checksum. Prevents downstream middleware handlers (computePayloadSHA256) re-reading the payload.

The SHA256 payload hash will only be used for computed for requests that are not TLS, or do not enable trailing checksums.

The SHA256 payload hash will not be computed, if the Algorithm’s header is already set on the request.

EnableDecodedContentLengthHeader bool

Enables support for setting the aws-chunked decoded content length header for the decoded length of the underlying stream. Will only be set when used with trailing checksums, and aws-chunked content-encoding.

EnableTrailingChecksum bool

Enables support for wrapping the serialized input payload with a content-encoding: aws-check wrapper, and including a trailer for the algorithm’s checksum value.

The checksum will not be computed, nor added as trailing checksum, if the Algorithm’s header is already set on the request.

Method Details

func (m *ComputeInputPayloadChecksum) ID() string

ID provides the middleware’s identifier.



73
74
75
// File 'service/internal/checksum/middleware_compute_input_checksum.go', line 73

func (m *ComputeInputPayloadChecksum) ID() string { return "AWSChecksum:ComputeInputPayloadChecksum" }