Format headers as a record.