Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public virtual void OnSettingsRead(IChannelHandlerContext ctx, Http2Settings settings)
 {
 }
Exemplo n.º 3
0
 public DelegatingFrameAdapter(Http2Settings decodedSettings) => _decodedSettings = decodedSettings;
Exemplo n.º 4
0
 public override void OnSettingsRead(IChannelHandlerContext ctx, Http2Settings settings)
 {
     _ = _decodedSettings.CopyFrom(settings);
 }
Exemplo n.º 5
0
 public virtual Task WriteSettingsAsync(IChannelHandlerContext ctx, Http2Settings settings, IPromise promise)
 {
     return(_innerWriter.WriteSettingsAsync(ctx, settings, promise));
 }