Interface Http3Headers
- All Superinterfaces:
Headers<CharSequence, CharSequence, Http3Headers>, Iterable<Map.Entry<CharSequence, CharSequence>>
- All Known Implementing Classes:
DefaultHttp3Headers
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumHTTP/2 (and HTTP/3) pseudo-headers names. -
Method Summary
Modifier and TypeMethodDescription@Nullable CharSequenceGets theHttp3Headers.PseudoHeaderName.AUTHORITYheader ornullif there is no such headerauthority(CharSequence value) Sets theHttp3Headers.PseudoHeaderName.AUTHORITYheaderbooleancontains(CharSequence name, CharSequence value, boolean caseInsensitive) Returnstrueif a header with thenameandvalueexists,falseotherwise.iterator()Returns an iterator over all HTTP/3 headers.@Nullable CharSequencemethod()Gets theHttp3Headers.PseudoHeaderName.METHODheader ornullif there is no such headermethod(CharSequence value) Sets theHttp3Headers.PseudoHeaderName.METHODheader@Nullable CharSequencepath()Gets theHttp3Headers.PseudoHeaderName.PATHheader ornullif there is no such headerpath(CharSequence value) Sets theHttp3Headers.PseudoHeaderName.PATHheaderdefault @Nullable CharSequenceprotocol()Gets theHttp3Headers.PseudoHeaderName.PROTOCOLheader ornullif there is no such headerdefault Http3Headersprotocol(CharSequence value) Sets theHttp3Headers.PseudoHeaderName.PROTOCOLheader@Nullable CharSequencescheme()Gets theHttp3Headers.PseudoHeaderName.SCHEMEheader ornullif there is no such headerscheme(CharSequence value) Sets theHttp3Headers.PseudoHeaderName.SCHEMEheader@Nullable CharSequencestatus()Gets theHttp3Headers.PseudoHeaderName.STATUSheader ornullif there is no such headerstatus(CharSequence value) Sets theHttp3Headers.PseudoHeaderName.STATUSheadervalueIterator(CharSequence name) Equivalent toHeaders.getAll(Object)but no intermediate list is generated.Methods inherited from interface Headers
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, names, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, sizeMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
iterator
Iterator<Map.Entry<CharSequence, CharSequence>> iterator()Returns an iterator over all HTTP/3 headers. The iteration order is as follows: 1. All pseudo headers (order not specified). 2. All non-pseudo headers (in insertion order).- Specified by:
iteratorin interfaceHeaders<CharSequence, CharSequence, Http3Headers>- Specified by:
iteratorin interfaceIterable<Map.Entry<CharSequence, CharSequence>>
-
valueIterator
Equivalent toHeaders.getAll(Object)but no intermediate list is generated.- Parameters:
name- the name of the header to retrieve- Returns:
- an
Iteratorof header values corresponding toname.
-
method
Sets theHttp3Headers.PseudoHeaderName.METHODheader- Parameters:
value- the value for the header.- Returns:
- this instance itself.
-
scheme
Sets theHttp3Headers.PseudoHeaderName.SCHEMEheader- Parameters:
value- the value for the header.- Returns:
- this instance itself.
-
authority
Sets theHttp3Headers.PseudoHeaderName.AUTHORITYheader- Parameters:
value- the value for the header.- Returns:
- this instance itself.
-
path
Sets theHttp3Headers.PseudoHeaderName.PATHheader- Parameters:
value- the value for the header.- Returns:
- this instance itself.
-
status
Sets theHttp3Headers.PseudoHeaderName.STATUSheader- Parameters:
value- the value for the header.- Returns:
- this instance itself.
-
protocol
Sets theHttp3Headers.PseudoHeaderName.PROTOCOLheaderThis pseudo-header is used for Extended CONNECT requests as defined in RFC 9220. Common values include "webtransport" and "websocket".
- Parameters:
value- the value for the header.- Returns:
- this instance itself.
- See Also:
-
method
Gets theHttp3Headers.PseudoHeaderName.METHODheader ornullif there is no such header- Returns:
- the value of the header.
-
scheme
Gets theHttp3Headers.PseudoHeaderName.SCHEMEheader ornullif there is no such header- Returns:
- the value of the header.
-
authority
Gets theHttp3Headers.PseudoHeaderName.AUTHORITYheader ornullif there is no such header- Returns:
- the value of the header.
-
path
Gets theHttp3Headers.PseudoHeaderName.PATHheader ornullif there is no such header- Returns:
- the value of the header.
-
status
Gets theHttp3Headers.PseudoHeaderName.STATUSheader ornullif there is no such header- Returns:
- the value of the header.
-
protocol
Gets theHttp3Headers.PseudoHeaderName.PROTOCOLheader ornullif there is no such headerThis pseudo-header is used for Extended CONNECT requests as defined in RFC 9220.
- Returns:
- the value of the header.
- See Also:
-
contains
Returnstrueif a header with thenameandvalueexists,falseotherwise.If
caseInsensitiveistruethen a case insensitive compare is done on the value.- Parameters:
name- the name of the header to findvalue- the value of the header to findcaseInsensitive-truethen a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.- Returns:
trueif its contained,falseotherwise.
-