Package io.netty.handler.codec.http3
Interface Http3SettingsFrame
-
- All Superinterfaces:
Http3ControlStreamFrame
,Http3Frame
,java.lang.Iterable<java.util.Map.Entry<java.lang.Long,java.lang.Long>>
- All Known Implementing Classes:
DefaultHttp3SettingsFrame
public interface Http3SettingsFrame extends Http3ControlStreamFrame, java.lang.Iterable<java.util.Map.Entry<java.lang.Long,java.lang.Long>>
See SETTINGS.
-
-
Field Summary
Fields Modifier and Type Field Description static long
HTTP3_SETTINGS_MAX_FIELD_SECTION_SIZE
static long
HTTP3_SETTINGS_QPACK_BLOCKED_STREAMS
static long
HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable java.lang.Long
get(long key)
Get a setting from the frame.default java.lang.Long
getOrDefault(long key, long defaultValue)
Get a setting from the frame.@Nullable java.lang.Long
put(long key, java.lang.Long value)
Put a setting in the frame.default long
type()
The type of the frame.
-
-
-
Field Detail
-
HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY
static final long HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY
- See Also:
- Constant Field Values
-
HTTP3_SETTINGS_QPACK_BLOCKED_STREAMS
static final long HTTP3_SETTINGS_QPACK_BLOCKED_STREAMS
- See Also:
- Constant Field Values
-
HTTP3_SETTINGS_MAX_FIELD_SECTION_SIZE
static final long HTTP3_SETTINGS_MAX_FIELD_SECTION_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
default long type()
Description copied from interface:Http3Frame
The type of the frame.- Specified by:
type
in interfaceHttp3Frame
- Returns:
- the type.
-
get
@Nullable @Nullable java.lang.Long get(long key)
Get a setting from the frame.- Parameters:
key
- the key of the setting.- Returns:
- the value of the setting or
null
if none was found with the given key.
-
getOrDefault
default java.lang.Long getOrDefault(long key, long defaultValue)
Get a setting from the frame.- Parameters:
key
- the key of the setting.defaultValue
- If the setting does not exist.- Returns:
- the value of the setting or
defaultValue
if none was found with the given key.
-
put
@Nullable @Nullable java.lang.Long put(long key, java.lang.Long value)
Put a setting in the frame.- Parameters:
key
- the key of the settingvalue
- the value of the setting.- Returns:
- the previous stored valued for the given key or
null
if none was stored before.
-
-