By default we set values for MAX_HEADER_LIST_SIZE and INITIAL_WINDOW_SIZE settings at H2ProtocolConfigBuilder level. However, if users want to change only one setting (for example, MAX_CONCURRENT_STREAMS), they lose our defaults when they use Http2SettingsBuilder.
Modifications:
Move defaults initialization from H2ProtocolConfigBuilder to Http2SettingsBuilder.
Result:
Users always start with consistent default Http2Settings and can use builder methods to override what they want.
Motivation:
By default we set values for
MAX_HEADER_LIST_SIZE
andINITIAL_WINDOW_SIZE
settings atH2ProtocolConfigBuilder
level. However, if users want to change only one setting (for example,MAX_CONCURRENT_STREAMS
), they lose our defaults when they useHttp2SettingsBuilder
.Modifications:
H2ProtocolConfigBuilder
toHttp2SettingsBuilder
.Result:
Users always start with consistent default
Http2Settings
and can use builder methods to override what they want.