A class for combining a set of headers.
This class allows for multiple headers with the same name and
keeps track of the order in which headers were added.
author: Michael Becke since: 4.0
Tests if headers with the given name are contained within this group.
Header name comparison is case insensitive.
Parameters: name - the header name to test for true if at least one header with the name iscontained, false otherwise
Gets a header representing all of the header values with the given name.
If more that one header with the given name exists the values will be
combined with a "," as per RFC 2616.
Header name comparison is case insensitive.
Parameters: name - the name of the header(s) to get a header with a condensed value or null if noheaders by the given name are present
Returns an iterator over the headers with a given name in this group.
Parameters: name - the name of the headers over which to iterate, ornull for all headers iterator over some headers in this group. since: 4.0
Sets all of the headers contained within this group overriding any
existing headers. The headers are added in the order in which they appear
in the array.
Parameters: headers - the headers to set
Replaces the first occurence of the header with the same name. If no header with
the same name is found the given header is added to the end of the list.
Parameters: header - the new header that should replace the first header with the same name if present in the list.