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

    Function buildFileInfoHeaders

    • Converts a file-info map into X-Bz-Info-* HTTP headers.

      Both keys and values are percent-encoded with encodeFileName to satisfy B2 header requirements.

      Parameters

      • fileInfo: Record<string, string> | undefined

        Key/value pairs to attach as custom file info, or undefined.

      Returns Record<string, string>

      A record of header name/value pairs (empty if fileInfo is undefined).