Appends the specified header to the end of the collection.
Appends the specified header to the end of the collection.
No checks are performed for uniqueness. This methods can be use for example, to append multiple cookies header fields.
HTTP header that will be appended
Appends the specified header to the end of the collection.
Appends the specified header to the end of the collection.
No checks are performed for uniqueness. This methods can be use for example, to append multiple cookies header fields.
Name of header field.
Value of the header
Returns true if there is a header with the specified name
Returns true if there is a header with the specified name
Name of header field to match in a case insensitive manner (RFC 2616)
True if there is a header with the specified name, false otherwise
Returns the value of the first header that has a matching name.
Returns the value of the first header that has a matching name.
Name of header field to match in a case insensitive manner (RFC 2616)
None if not found, else the value of the first header with a matching name
Returns the values of all matching headers
Returns the values of all matching headers
Name of header field to match in a case insensitive manner (RFC 2616)
Sequence of matching values
Returns the value of the first header that matches the name.
Returns the value of the first header that matches the name.
Name of header field to match in a case insensitive manner (RFC 2616)
value to return if header not found
Default value if not found, else the value of the first header with a matching name
Creates a new iterator over all headers
Creates a new iterator over all headers
Adds the specified header to the collection.
Adds the specified header to the collection. If an existing entry with the same name exists, the old entries are replaced with the new value.
HTTP header that will be put into the collection
Adds the specified header to the collection.
Adds the specified header to the collection. If an existing entry with the same name exists, the old entries are replaced with the new value.
Matching of names is performed in a case insensitive manner
Name of header field.
Value of the header
Removes all headers of with the specified name
Removes all headers of with the specified name
Name of header field to remove
The number of headers removed
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Mutable collection of HTTP headers
Unlike a HashMap, this collection supports multiple entries with the same field name and name matching is performed in a case insensitive manner as per RFC 2616.