GeezerVison is showing netty.io — Http2FrameCodecBuilder (Netty API Reference (4.1.141.Final))
Class Http2FrameCodecBuilder
-
Constructor Summary
Constructors
Modifier
Constructor
Description
protected
Allows overriding behavior of existing builder.
-
Method Summary
Modifier and Type
Method
Description
Determine if PING frame should automatically be acknowledged or not.
Determine if settings frame should automatically be acknowledged and applied.
int
Returns the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed.
Sets the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed.
Sets the maximum number RST frames that are allowed per window before
the connection is closed.
int
Returns the maximum number of small CONTINUATION frames per HEADERS block that are allowed
before the connection is closed.
Returns the maximum number of small CONTINUATION frames per HEADERS block that are allowed
before the connection is closed.
boolean
Returns if the encoder should queue frames if the maximum number of concurrent streams
would otherwise be exceeded.
Sets if the encoder should queue frames if the maximum number of concurrent streams
would otherwise be exceeded.
int
Returns the maximum number of queued control frames that are allowed before the connection is closed.
Sets the maximum number of queued control frames that are allowed before the connection is closed.
Sets the maximum number RST frames that are allowed per window before
the connection is closed.
Determine if the Preface
should be automatically flushed when the Channel becomes active or not.
Creates a builder for an HTTP/2 client.
Creates a builder for an HTTP/2 server.
Returns the logger that is used for the encoder and decoder.
Sets the logger that is used for the encoder and decoder.
long
Returns the graceful shutdown timeout of the Http2Connection in milliseconds.
Sets the Http2Settings to use for the initial connection settings exchange.
Sets the Http2Settings to use for the initial connection settings exchange.
boolean
boolean
int
Get the maximum number of streams which can be in the reserved state at any given time.
Set the maximum number of streams which can be in the reserved state at any given time.
Sets if request and response HEADERS that omit a mandatory pseudo-header field are rejected,
according to RFC 9113, 8.3.
codec, connection, connection, decoder, decoupleCloseAndGoAway, encoder, flushPreface, frameListener, frameListener, isAutoAckPingFrame, isAutoAckSettingsFrame, isValidateRequiredPseudoHeaders, promisedRequestVerifier, promisedRequestVerifier, self, server
Modifier and Type
Method
Description
protected boolean
protected boolean
Determine if the Preface
should be automatically flushed when the Channel becomes active or not.
Returns the listener of inbound frames.
Sets the listener of inbound frames.
protected boolean
Determine if the PING frames should be automatically acknowledged or not.
protected boolean
Determine if the SETTINGS frames should be automatically acknowledged and applied.
protected boolean
Returns if mandatory pseudo-header fields are validated according to
RFC 9113, 8.3.
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Http2FrameCodecBuilder
protected Http2FrameCodecBuilder()
- See Also:
-
-
Method Details
-
forClient
Creates a builder for an HTTP/2 client.
-
forServer
Creates a builder for an HTTP/2 server.
-
-
-
gracefulShutdownTimeoutMillis
-
gracefulShutdownTimeoutMillis
-
-
maxReservedStreams
public int maxReservedStreams()
Get the maximum number of streams which can be in the reserved state at any given time.
By default this value will be ignored on the server for local endpoint. This is because the RFC provides
no way to explicitly communicate a limit to how many states can be in the reserved state, and instead relies
on the peer to send RST_STREAM frames when they will be rejected.
- Overrides:
maxReservedStreams in class AbstractHttp2ConnectionHandlerBuilder<Http2FrameCodec, Http2FrameCodecBuilder>
-
-
-
-
validateRequiredPseudoHeaders
-
-
-
encoderEnforceMaxConcurrentStreams
-
encoderEnforceMaxConcurrentStreams
-
encoderEnforceMaxQueuedControlFrames
-
encoderEnforceMaxQueuedControlFrames
-
headerSensitivityDetector
-
headerSensitivityDetector
-
encoderIgnoreMaxHeaderListSize
-
initialHuffmanDecodeCapacity
-
-
-
-
flushPreface
Determine if the Preface
should be automatically flushed when the Channel becomes active or not.
Client may choose to opt-out from this automatic behavior and manage flush manually if it's ready to send
request frames immediately after the preface. It may help to avoid unnecessary latency.
- Overrides:
flushPreface in class AbstractHttp2ConnectionHandlerBuilder<Http2FrameCodec, Http2FrameCodecBuilder>
- Parameters:
flushPreface - true to automatically flush, false otherwise.
- Returns:
this.
- See Also:
-
-
decoderEnforceMaxConsecutiveEmptyDataFrames
-
decoderEnforceMaxConsecutiveEmptyDataFrames
-
decoderEnforceMaxRstFramesPerWindow
-
encoderEnforceMaxRstFramesPerWindow
-
decoderEnforceMaxSmallContinuationFrames
-
decoderEnforceMaxSmallContinuationFrames
-
-
|