The keys of the header fields are returned by the getHeaderFieldKey(int n) method.
The first field is 1.
If a numbered key is not found, null is returned.
You can use this in combination with getHeaderField() to loop through the
complete header