- java.lang.Object
-
- io.netty5.handler.codec.http.HttpHeaders
-
- io.netty5.handler.codec.http.DefaultHttpHeaders
-
- io.netty5.handler.codec.http.CombinedHttpHeaders
-
public class CombinedHttpHeaders extends DefaultHttpHeaders
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.
-
-
Constructor Summary
Constructors Constructor Description CombinedHttpHeaders(boolean validate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsValue(CharSequence name, CharSequence value, boolean ignoreCase)
Returnstrue
if a header with thename
andvalue
exists,false
otherwise.-
Methods inherited from class io.netty5.handler.codec.http.DefaultHttpHeaders
add, add, add, add, add, addInt, addShort, clear, contains, contains, contains, contains, copy, entries, equals, get, get, getAll, getAll, getInt, getInt, getShort, getShort, getTimeMillis, getTimeMillis, hashCode, isEmpty, iterator, iteratorCharSequence, names, remove, remove, set, set, set, set, set, setInt, setShort, size, valueCharSequenceIterator, valueStringIterator
-
Methods inherited from class io.netty5.handler.codec.http.HttpHeaders
addDateHeader, addDateHeader, addHeader, addHeader, addIntHeader, addIntHeader, clearHeaders, equalsIgnoreCase, get, getAllAsString, getAsString, getContentLength, getContentLength, getDate, getDate, getDateHeader, getDateHeader, getDateHeader, getDateHeader, getHeader, getHeader, getHeader, getHeader, getHost, getHost, getIntHeader, getIntHeader, getIntHeader, getIntHeader, is100ContinueExpected, isContentLengthSet, isKeepAlive, isTransferEncodingChunked, iteratorAsString, newEntity, removeHeader, removeHeader, removeTransferEncodingChunked, set100ContinueExpected, set100ContinueExpected, setAll, setContentLength, setDate, setDateHeader, setDateHeader, setDateHeader, setDateHeader, setHeader, setHeader, setHeader, setHeader, setHost, setHost, setIntHeader, setIntHeader, setIntHeader, setIntHeader, setKeepAlive, setTransferEncodingChunked, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
containsValue
public boolean containsValue(CharSequence name, CharSequence value, boolean ignoreCase)
Description copied from class:HttpHeaders
Returnstrue
if a header with thename
andvalue
exists,false
otherwise. This also handles multiple values that are separated with a,
.If
ignoreCase
istrue
then a case insensitive compare is done on the value.- Overrides:
containsValue
in classHttpHeaders
- Parameters:
name
- the name of the header to findvalue
- the value of the header to findignoreCase
-true
then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
-
-