Package reactor.netty.http
Interface Http2SettingsSpec.Builder
- Enclosing class:
- Http2SettingsSpec
public static interface Http2SettingsSpec.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newHttp2SettingsSpec.connectProtocolEnabled(boolean connectProtocolEnabled) Sets theSETTINGS_ENABLE_CONNECT_PROTOCOLvalue.headerTableSize(long headerTableSize) Sets theSETTINGS_HEADER_TABLE_SIZEvalue.initialWindowSize(int initialWindowSize) Sets theSETTINGS_INITIAL_WINDOW_SIZEvalue.maxConcurrentStreams(long maxConcurrentStreams) Sets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.maxDecodedRstFramesPerWindow(int maxDecodedRstFramesPerWindow, int maxDecodedRstFramesSecondsPerWindow) Sets the maximum number RST frames that are allowed per window before the connection is closed.maxEncodedRstFramesPerWindow(int maxEncodedRstFramesPerWindow, int maxEncodedRstFramesSecondsPerWindow) Sets the maximum number RST frames that are allowed per window before the connection is closed.maxFrameSize(int maxFrameSize) Sets theSETTINGS_MAX_FRAME_SIZEvalue.maxHeaderListSize(long maxHeaderListSize) Sets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.maxStreams(long maxStreams) The connection is marked for closing once the number of all-time streams reachesmaxStreams.
-
Method Details
-
build
Http2SettingsSpec build()Build a newHttp2SettingsSpec.- Returns:
- a new
Http2SettingsSpec
-
connectProtocolEnabled
Sets theSETTINGS_ENABLE_CONNECT_PROTOCOLvalue.- Parameters:
connectProtocolEnabled- theSETTINGS_ENABLE_CONNECT_PROTOCOLvalue- Returns:
this- Since:
- 1.2.5
-
headerTableSize
Sets theSETTINGS_HEADER_TABLE_SIZEvalue.- Parameters:
headerTableSize- theSETTINGS_HEADER_TABLE_SIZEvalue- Returns:
this
-
initialWindowSize
Sets theSETTINGS_INITIAL_WINDOW_SIZEvalue.- Parameters:
initialWindowSize- theSETTINGS_INITIAL_WINDOW_SIZEvalue- Returns:
this
-
maxConcurrentStreams
Sets theSETTINGS_MAX_CONCURRENT_STREAMSvalue.- Parameters:
maxConcurrentStreams- theSETTINGS_MAX_CONCURRENT_STREAMSvalue- Returns:
this
-
maxDecodedRstFramesPerWindow
Http2SettingsSpec.Builder maxDecodedRstFramesPerWindow(int maxDecodedRstFramesPerWindow, int maxDecodedRstFramesSecondsPerWindow) Sets the maximum number RST frames that are allowed per window before the connection is closed. This allows to protect against the remote peer flooding us with such frames and so use up a lot of CPU.0for any of the parameters means no protection should be applied. For server, the default {code maxDecodedRstFramesPerWindow} is200and for the client it is0. The default {code maxDecodedRstFramesSecondsPerWindow} is30.- Parameters:
maxDecodedRstFramesPerWindow- the maximum number RST frames that are allowed per windowmaxDecodedRstFramesSecondsPerWindow- the maximum seconds per window- Returns:
this- Since:
- 1.2.11
-
maxEncodedRstFramesPerWindow
Http2SettingsSpec.Builder maxEncodedRstFramesPerWindow(int maxEncodedRstFramesPerWindow, int maxEncodedRstFramesSecondsPerWindow) Sets the maximum number RST frames that are allowed per window before the connection is closed. This allows to protect against the remote peer that will trigger us to generate a flood of RST frames and so use up a lot of CPU.0for any of the parameters means no protection should be applied. For server, the default {code maxEncodedRstFramesPerWindow} is200and for the client it is0. The default {code maxEncodedRstFramesSecondsPerWindow} is30.- Parameters:
maxEncodedRstFramesPerWindow- the maximum number RST frames that are allowed per windowmaxEncodedRstFramesSecondsPerWindow- the maximum seconds per window- Returns:
this- Since:
- 1.2.11
-
maxFrameSize
Sets theSETTINGS_MAX_FRAME_SIZEvalue.- Parameters:
maxFrameSize- theSETTINGS_MAX_FRAME_SIZEvalue- Returns:
this
-
maxHeaderListSize
Sets theSETTINGS_MAX_HEADER_LIST_SIZEvalue.- Parameters:
maxHeaderListSize- theSETTINGS_MAX_HEADER_LIST_SIZEvalue- Returns:
this
-
maxStreams
The connection is marked for closing once the number of all-time streams reachesmaxStreams.- Returns:
this- Since:
- 1.0.33
-