Support variable header part count.

In OutgoingMessage, iterate over header parts dynamically.