iya-sts
    Preparing search index...

    Variable verifyContentDigest

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

    Type Declaration

      • (headerValue: any, body: any, options: any): any
      • 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 any

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