public class CombinedHttpHeaders extends DefaultHttpHeaders
Please refer to section RFC 7230, 3.2.2.
HttpHeaders.Names, HttpHeaders.ValuesEMPTY_HEADERS| Constructor and Description |
|---|
CombinedHttpHeaders(boolean validate)
Deprecated.
Prefer instead to configuring a
HttpHeadersFactory
by calling withCombiningHeaders(true)
on DefaultHttpHeadersFactory.headersFactory(). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsValue(CharSequence name,
CharSequence value,
boolean ignoreCase)
Returns
true if a header with the name and value exists, false otherwise. |
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, unwrap, valueCharSequenceIterator, valueStringIteratoraddDateHeader, addDateHeader, addHeader, addHeader, addIntHeader, addIntHeader, clearHeaders, encodeAscii, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliterator@Deprecated public CombinedHttpHeaders(boolean validate)
HttpHeadersFactory
by calling withCombiningHeaders(true)
on DefaultHttpHeadersFactory.headersFactory().validate - Should Netty validate header values to ensure they aren't malicious.public boolean containsValue(CharSequence name, CharSequence value, boolean ignoreCase)
HttpHeaderstrue if a header with the name and value exists, false otherwise.
This also handles multiple values that are separated with a ,.
If ignoreCase is true then a case insensitive compare is done on the value.
containsValue in class HttpHeadersname - 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.Copyright © 2008–2025 The Netty Project. All rights reserved.