Пример #1
0
        internal static HttpHeader ParseHttpHeader(ref ReadableBuffer buffer, ref HeaderTable headerTable, IBufferPool memoryPool)
        {
            var headers = new List <Header>();

            while (!buffer.IsEmpty)
            {
                var header = Hpack.ReadHeader(ref buffer, ref headerTable, memoryPool);
                if (!header.IsResize)
                {
                    headers.Add(header);
                }
            }
            return(new HttpHeader(headers));
        }
Пример #2
0
 public HttpHeader ParseHeader(ref ReadableBuffer buffer)
 => Hpack.ParseHttpHeader(ref buffer, ref _decoderTable, _memoryPool);