getFirstHeader

Returns the first header with a specified name of this message. Header
values are ignored. If there is more than one matching header in the
message the first element of HttpMessage.getHeaders(String) is returned.
If there is no matching header in the message null is
returned.

getLastHeader

Returns the last header with a specified name of this message. Header values
are ignored. If there is more than one matching header in the message the
last element of HttpMessage.getHeaders(String) is returned. If there is no
matching header in the message null is returned.