@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Function parseFileInfoHeaders

    • Extracts custom file-info key/value pairs from B2 response headers.

      Scans for headers prefixed with x-bz-info- and decodes both the key suffix and value using decodeFileName.

      Parameters

      • headers: Headers

        The HTTP response headers from a B2 download or file-info call.

      Returns Record<string, string>

      A record of decoded file-info key/value pairs.