Exemple #1
0
 public FrameAdapter(IHttp2Connection connection, DefaultHttp2FrameReader reader, IHttp2FrameListener listener,
                     CountdownEvent latch)
 {
     this.connection = connection;
     this.listener   = listener;
     this.reader     = reader;
     this.latch      = latch;
 }
Exemple #2
0
        public DefaultHttp2FrameReaderTest()
        {
            this.listener = new Mock <IHttp2FrameListener>();
            this.ctx      = new Mock <IChannelHandlerContext>();
            this.ctx.Setup(x => x.Allocator).Returns(UnpooledByteBufferAllocator.Default);

            this.frameReader  = new DefaultHttp2FrameReader();
            this.hpackEncoder = new HpackEncoder();
        }