Http3Connection constructor
Http3Connection({
- required Object quicConnection,
- Http3SettingsFrame? localSettings,
Creates an Http3Connection over quicConnection.
quicConnection must support openBidirectionalStream(),
openUnidirectionalStream(), buildEncryptedPacket(), and
connectionId (typically a QuicConnection).
localSettings defaults to a conservative profile:
maxFieldSectionSize: 16384, maxTableCapacity: 0,
blockedStreams: 0.
Implementation
Http3Connection({
required Object quicConnection,
Http3SettingsFrame? localSettings,
}) : _quicConnection = quicConnection,
_localSettings = localSettings ??
Http3SettingsFrame.from(
maxFieldSectionSize: 16384,
maxTableCapacity: 0,
blockedStreams: 0,
) {
// The local decoder capacity is bounded by the local SETTINGS value that
// we will advertise to the peer.
qpackDecoder.dynamicTable.setCapacity(_localSettings.maxTableCapacity);
}