IBM COS SDK for JavaScript V2 - v1.0.0
    Preparing search index...

    Implements

    • HttpSigner
    Index

    Constructors

    Methods

    • Signs an HttpRequest with an identity and signing properties.

      Parameters

      • httpRequest: HttpRequest

        request to sign

      • identity: IbmAwsCredentialIdentity

        identity to sing the request with

      • signingProperties: Record<string, unknown>

        property bag for signing

      Returns Promise<HttpRequest>

      signed request in a promise

    • Internal

      Handler that executes after the HttpSigner.sign invocation and corresponding middleware throws an error. The error handler is expected to throw the error it receives, so the return type of the error handler is never.

      Parameters

      • signingProperties: Record<string, unknown>

      Returns (error: Error) => never

    • Internal

      Handler that executes after the HttpSigner.sign invocation and corresponding middleware succeeds.

      Parameters

      • httpResponse: unknown
      • signingProperties: Record<string, unknown>

      Returns void