@backblaze-labs/b2-sdk - v0.6.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 percent-decodes both the key suffix and value. Malformed percent escapes throw URIError.

      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.

      A URIError if a key suffix or value contains malformed percent encoding.