コード例 #1
0
        public void EmptyPushPromiseShouldMatch()
        {
            IHttp2Headers headers = EmptyHttp2Headers.Instance;

            writer.WritePushPromiseAsync(this.ctx.Object, STREAM_ID, 2, headers, 0, this.ctx.Object.NewPromise());
            this.ReadFrames();
            this.listener.Verify(
                x => x.OnPushPromiseRead(
                    It.Is <IChannelHandlerContext>(c => c == this.ctx.Object),
                    It.Is <int>(id => id == STREAM_ID),
                    It.Is <int>(v => v == 2),
                    It.Is <IHttp2Headers>(h => h.Equals(headers)),
                    It.Is <int>(v => v == 0)));
        }
コード例 #2
0
 public virtual Task WritePushPromiseAsync(IChannelHandlerContext ctx, int streamId, int promisedStreamId, IHttp2Headers headers, int padding, IPromise promise)
 {
     return(_innerWriter.WritePushPromiseAsync(ctx, streamId, promisedStreamId, headers, padding, promise));
 }
コード例 #3
0
 public Task WritePushPromiseAsync(IChannelHandlerContext ctx, int streamId, int promisedStreamId, IHttp2Headers headers, int padding, IPromise promise)
 {
     _logger.LogPushPromise(Direction.Outbound, ctx, streamId, promisedStreamId, headers, padding);
     return(_writer.WritePushPromiseAsync(ctx, streamId, promisedStreamId, headers, padding, promise));
 }