Top Description Inners Constructors Methods
io.netty.handler.codec.http

public Class CombinedHttpHeaders

extends DefaultHttpHeaders
Class Inheritance
Imports
io.netty.handler.codec.DefaultHeaders, .DefaultHeaders.NameValidator, .DefaultHeaders.ValueValidator, .Headers, .ValueConverter, io.netty.util.HashingStrategy, io.netty.util.internal.StringUtil, java.util.Collection, .Iterator, .List, .Map

Will add multiple values for the same header as single header with a comma separated list of values.

Please refer to section RFC 7230, 3.2.2.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public
CombinedHttpHeaders(boolean
Should Netty validate header values to ensure they aren't malicious.
validate
)

Deprecated Prefer instead to configuring a HttpHeadersFactory by calling withCombiningHeaders(true) on DefaultHttpHeadersFactory#headersFactory().
Create a combined HTTP header object, with optional validation.
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
containsValue(CharSequence
the name of the header to find
name
,
CharSequence
the value of the header to find
value
,
boolean
true then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
ignoreCase
)

Overrides io.netty.handler.codec.http.HttpHeaders.containsValue.

Returns true if a header with the name and value exists, false otherwise.
Inherited from io.netty.handler.codec.http.DefaultHttpHeaders:
addaddaddaddaddaddIntaddShortclearcontainscontainscontainscontainscopyentriesequalsgetgetgetAllgetAllgetIntgetIntgetShortgetShortgetTimeMillisgetTimeMillishashCodeisEmptyiteratoriteratorCharSequencenamesnameValidatorremoveremovesetsetsetsetsetsetIntsetShortsizevalueCharSequenceIteratorvalueConvertervalueStringIteratorvalueValidator