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))); }
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)); }
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)); }