Implement HeaderBag with append(name, value), set(name, value), get(name), getAll(name), has(name), and iteration via entries().
Header names are case-insensitive. append preserves every value in insertion order; set replaces all values for that name without moving the header's original position. get returns values joined with ", " or null; getAll returns a defensive array. Iteration yields one [originalName, joinedValue] per distinct header in first-insertion order. Reject empty/whitespace names and names containing characters outside letters, digits, or hyphen.