iya-sts
    Preparing search index...

    Variable verifyContentDigest

    verifyContentDigest: (headerValue: any, body: any, options: any) => Result = ...

    Type Declaration

      • (headerValue: any, body: any, options: any): Result
      • Verifies a Content-Digest field against a body: every member whose algorithm is accepted must match, and at least one must be present.

        Parameters

        • headerValue: any

          the Content-Digest field value

        • body: any

          the body's bytes

        • options: any

          accepted, the algorithms accepted (sha-256 and sha-512 by default)

        Returns Result

        { ok: true, algorithms } naming those matched, or a refusal