Beispiel #1
0
 public override void ProcessFragment(bool endOfHeaders, IByteBuffer fragment, int len, IHttp2FrameListener listener)
 {
     _builder.AddFragment(fragment, len, _ctx.Allocator, endOfHeaders);
     if (endOfHeaders)
     {
         listener.OnPushPromiseRead(_ctx, _streamId, _promisedStreamId, _builder.Headers(), _padding);
     }
 }
Beispiel #2
0
 public virtual void OnPushPromiseRead(IChannelHandlerContext ctx, int streamId, int promisedStreamId, IHttp2Headers headers, int padding)
 {
     _listener.OnPushPromiseRead(ctx, streamId, promisedStreamId, headers, padding);
 }
 public void OnPushPromiseRead(IChannelHandlerContext ctx, int streamId, int promisedStreamId, IHttp2Headers headers, int padding)
 {
     _logger.LogPushPromise(Direction.Inbound, ctx, streamId, promisedStreamId, headers, padding);
     _listener.OnPushPromiseRead(ctx, streamId, promisedStreamId, headers, padding);
 }