Package io.servicetalk.http.api
Class Http2SettingsBuilder
java.lang.Object
io.servicetalk.http.api.Http2SettingsBuilder
Builder to help create a
Map
for
HTTP/2 Setting.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theMap
that represents HTTP/2 Setting.headerTableSize
(long value) Set the value for SETTINGS_HEADER_TABLE_SIZE.initialWindowSize
(int value) Set the value for SETTINGS_INITIAL_WINDOW_SIZE.initialWindowSize
(long value) Deprecated.maxConcurrentStreams
(long value) Set the value for SETTINGS_MAX_CONCURRENT_STREAMS.maxFrameSize
(int value) Set the value for SETTINGS_MAX_FRAME_SIZE.maxHeaderListSize
(long value) Set the value for SETTINGS_MAX_HEADER_LIST_SIZE.
-
Constructor Details
-
Http2SettingsBuilder
public Http2SettingsBuilder()Create a new instance.
-
-
Method Details
-
headerTableSize
Set the value for SETTINGS_HEADER_TABLE_SIZE.- Parameters:
value
- The value.- Returns:
this
.
-
maxConcurrentStreams
Set the value for SETTINGS_MAX_CONCURRENT_STREAMS.- Parameters:
value
- The value.- Returns:
this
.
-
initialWindowSize
Deprecated.Set the value for SETTINGS_INITIAL_WINDOW_SIZE.- Parameters:
value
- The value.- Returns:
this
.
-
initialWindowSize
Set the value for SETTINGS_INITIAL_WINDOW_SIZE.- Parameters:
value
- The value.- Returns:
this
.
-
maxFrameSize
Set the value for SETTINGS_MAX_FRAME_SIZE.- Parameters:
value
- The value.- Returns:
this
.
-
maxHeaderListSize
Set the value for SETTINGS_MAX_HEADER_LIST_SIZE.- Parameters:
value
- The value.- Returns:
this
.
-
build
Build theMap
that represents HTTP/2 Setting.- Returns:
- the
Map
that represents HTTP/2 Setting.
-
initialWindowSize(int)
.