Package io.netty.handler.codec.http3
Interface Http3Headers
-
- All Superinterfaces:
Headers<java.lang.CharSequence,java.lang.CharSequence,Http3Headers>
,java.lang.Iterable<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
- All Known Implementing Classes:
DefaultHttp3Headers
public interface Http3Headers extends Headers<java.lang.CharSequence,java.lang.CharSequence,Http3Headers>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Http3Headers.PseudoHeaderName
HTTP/2 (and HTTP/3) pseudo-headers names.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.lang.CharSequence
authority()
Gets theHttp3Headers.PseudoHeaderName.AUTHORITY
header ornull
if there is no such headerHttp3Headers
authority(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.AUTHORITY
headerboolean
contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean caseInsensitive)
Returnstrue
if a header with thename
andvalue
exists,false
otherwise.java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
iterator()
Returns an iterator over all HTTP/3 headers.@Nullable java.lang.CharSequence
method()
Gets theHttp3Headers.PseudoHeaderName.METHOD
header ornull
if there is no such headerHttp3Headers
method(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.METHOD
header@Nullable java.lang.CharSequence
path()
Gets theHttp3Headers.PseudoHeaderName.PATH
header ornull
if there is no such headerHttp3Headers
path(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.PATH
header@Nullable java.lang.CharSequence
scheme()
Gets theHttp3Headers.PseudoHeaderName.SCHEME
header ornull
if there is no such headerHttp3Headers
scheme(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.SCHEME
header@Nullable java.lang.CharSequence
status()
Gets theHttp3Headers.PseudoHeaderName.STATUS
header ornull
if there is no such headerHttp3Headers
status(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.STATUS
headerjava.util.Iterator<java.lang.CharSequence>
valueIterator(java.lang.CharSequence name)
Equivalent toHeaders.getAll(Object)
but no intermediate list is generated.-
Methods inherited from interface io.netty.handler.codec.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, size
-
-
-
-
Method Detail
-
iterator
java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.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:
iterator
in interfaceHeaders<java.lang.CharSequence,java.lang.CharSequence,Http3Headers>
- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
-
valueIterator
java.util.Iterator<java.lang.CharSequence> valueIterator(java.lang.CharSequence name)
Equivalent toHeaders.getAll(Object)
but no intermediate list is generated.- Parameters:
name
- the name of the header to retrieve- Returns:
- an
Iterator
of header values corresponding toname
.
-
method
Http3Headers method(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.METHOD
header- Parameters:
value
- the value for the header.- Returns:
- this instance itself.
-
scheme
Http3Headers scheme(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.SCHEME
header- Parameters:
value
- the value for the header.- Returns:
- this instance itself.
-
authority
Http3Headers authority(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.AUTHORITY
header- Parameters:
value
- the value for the header.- Returns:
- this instance itself.
-
path
Http3Headers path(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.PATH
header- Parameters:
value
- the value for the header.- Returns:
- this instance itself.
-
status
Http3Headers status(java.lang.CharSequence value)
Sets theHttp3Headers.PseudoHeaderName.STATUS
header- Parameters:
value
- the value for the header.- Returns:
- this instance itself.
-
method
@Nullable @Nullable java.lang.CharSequence method()
Gets theHttp3Headers.PseudoHeaderName.METHOD
header ornull
if there is no such header- Returns:
- the value of the header.
-
scheme
@Nullable @Nullable java.lang.CharSequence scheme()
Gets theHttp3Headers.PseudoHeaderName.SCHEME
header ornull
if there is no such header- Returns:
- the value of the header.
-
authority
@Nullable @Nullable java.lang.CharSequence authority()
Gets theHttp3Headers.PseudoHeaderName.AUTHORITY
header ornull
if there is no such header- Returns:
- the value of the header.
-
path
@Nullable @Nullable java.lang.CharSequence path()
Gets theHttp3Headers.PseudoHeaderName.PATH
header ornull
if there is no such header- Returns:
- the value of the header.
-
status
@Nullable @Nullable java.lang.CharSequence status()
Gets theHttp3Headers.PseudoHeaderName.STATUS
header ornull
if there is no such header- Returns:
- the value of the header.
-
contains
boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean caseInsensitive)
Returnstrue
if a header with thename
andvalue
exists,false
otherwise.If
caseInsensitive
istrue
then 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
-true
then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.- Returns:
true
if its contained,false
otherwise.
-
-