Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @aws-sdk/middleware-flexible-checksums

@aws-sdk/middleware-flexible-checksums

NPM version NPM downloads

This package provides AWS SDK for JavaScript middleware that applies a checksum of the request body as a header.

Index

References

ChecksumAlgorithm

Re-exports ChecksumAlgorithm

ChecksumLocation

Re-exports ChecksumLocation

FlexibleChecksumsMiddlewareConfig

Re-exports FlexibleChecksumsMiddlewareConfig

flexibleChecksumsMiddleware

Re-exports flexibleChecksumsMiddleware

flexibleChecksumsMiddlewareOptions

Re-exports flexibleChecksumsMiddlewareOptions

getFlexibleChecksumsPlugin

Re-exports getFlexibleChecksumsPlugin

Variables

Const CLIENT_SUPPORTED_ALGORITHMS

CLIENT_SUPPORTED_ALGORITHMS: ChecksumAlgorithm[] = [ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.SHA256,]

List of algorithms supported by client.

Const PRIORITY_ORDER_ALGORITHMS

PRIORITY_ORDER_ALGORITHMS: ChecksumAlgorithm[] = [ChecksumAlgorithm.CRC32,ChecksumAlgorithm.CRC32C,ChecksumAlgorithm.SHA1,ChecksumAlgorithm.SHA256,]

Priority order for validating checksum algorithm. A faster algorithm has higher priority. ToDo: update the priority order based on profiling of JavaScript implementations.

Functions

Const flexibleChecksumsMiddleware

Const getChecksum

Const getChecksumAlgorithmForRequest

  • getChecksumAlgorithmForRequest(input: any, __namedParameters: { requestAlgorithmMember: string; requestChecksumRequired: boolean }): ChecksumAlgorithm | undefined

Const getChecksumAlgorithmListForResponse

  • getChecksumAlgorithmListForResponse(responseAlgorithms?: string[]): ChecksumAlgorithm[]

Const getChecksumLocationName

Const getFlexibleChecksumsPlugin

Const hasHeader

  • hasHeader(header: string, headers: HeaderBag): boolean

Const isStreaming

  • isStreaming(body: unknown): boolean

Const selectChecksumAlgorithmFunction

Const stringHasher

  • stringHasher(checksumAlgorithmFn: HashConstructor, body: any): Promise<Uint8Array>

Const validateChecksumFromResponse

  • validateChecksumFromResponse(response: HttpResponse, __namedParameters: { config: PreviouslyResolved; responseAlgorithms: string[] }): Promise<void>

Object literals

Const flexibleChecksumsMiddlewareOptions

flexibleChecksumsMiddlewareOptions: object

name

name: string = "flexibleChecksumsMiddleware"

override

override: true = true

step

step: "build" = "build"

tags

tags: string[] = ["BODY_CHECKSUM"]