public Http2FrameCodec(IHttp2ConnectionEncoder encoder, IHttp2ConnectionDecoder decoder, Http2Settings initialSettings, bool decoupleCloseAndGoAway) : base(decoder, encoder, initialSettings, decoupleCloseAndGoAway) { _frameStreamToInitializeMap = new ConcurrentDictionary <int, DefaultHttp2FrameStream>(); decoder.FrameListener = new FrameListener(this); var connection = Connection; connection.AddListener(new ConnectionListener(this)); connection.Remote.FlowController.Listener(new Http2RemoteFlowControllerListener(this)); _streamKey = connection.NewKey(); _upgradeKey = connection.NewKey(); _initialFlowControlWindowSize = initialSettings.InitialWindowSize(); }
public virtual void OnSettingsRead(IChannelHandlerContext ctx, Http2Settings settings) { }
public DelegatingFrameAdapter(Http2Settings decodedSettings) => _decodedSettings = decodedSettings;
public override void OnSettingsRead(IChannelHandlerContext ctx, Http2Settings settings) { _ = _decodedSettings.CopyFrom(settings); }
public virtual Task WriteSettingsAsync(IChannelHandlerContext ctx, Http2Settings settings, IPromise promise) { return(_innerWriter.WriteSettingsAsync(ctx, settings, promise)); }