1 write to Name
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\runtime\Http2\Hpack\HeaderField.cs (1)
27Name = name.ToArray();
34 references to Name
Microsoft.AspNetCore.Shared.Tests (34)
runtime\Http2\DynamicTableTest.cs (24)
33dynamicTable.Insert(_header1.Name, _header1.Value); 36dynamicTable.Insert(_header2.Name, _header2.Value); 46dynamicTable.Insert(_header1.Name, _header1.Value); 49dynamicTable.Insert(_header2.Name, _header2.Value); 57dynamicTable.Insert(_header1.Name, _header1.Value); 58dynamicTable.Insert(_header2.Name, _header2.Value); 69dynamicTable.Insert(_header1.Name, _header1.Value); 77dynamicTable.Insert(_header1.Name, _header1.Value); 87dynamicTable.Insert(_header1.Name, _header1.Value); 91dynamicTable.Insert(_header2.Name, _header2.Value); 139Assert.True(expectedData.AsSpan().SequenceEqual(dynamicField.Name)); 177Assert.True(headers[i].Name.AsSpan().SequenceEqual(dynamicTable[i].Name)); 186dynamicTable.Insert(_header1.Name, _header1.Value); 187dynamicTable.Insert(_header2.Name, _header2.Value); 200dynamicTable.Insert(_header1.Name, _header1.Value); 201dynamicTable.Insert(_header2.Name, _header2.Value); 213dynamicTable.Insert(_header1.Name, _header1.Value); 214dynamicTable.Insert(_header2.Name, _header2.Value); 223dynamicTable.Insert(_header2.Name, _header2.Value); 246Assert.NotSame(entries[i].Name, headerField.Name); 247Assert.Equal(entries[i].Name, headerField.Name);
runtime\Http2\HPackDecoderTest.cs (4)
851Assert.Equal(expectedHeaderName, Encoding.ASCII.GetString(dynamicTable[0].Name)); 879((IHttpStreamHeadersHandler)this).OnHeader(entry.Name, entry.Value); 880DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 885byte[] name = H2StaticTable.Get(index - 1).Name;
src\Shared\runtime\Http2\Hpack\HeaderField.cs (3)
37public int Length => GetLength(Name.Length, Value.Length); 43if (Name != null) 45return Encoding.Latin1.GetString(Name) + ": " + Encoding.Latin1.GetString(Value);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (3)
511_dynamicTable.Insert(_headerStaticIndex, H2StaticTable.Get(_headerStaticIndex - 1).Name, headerValueSpan); 551handler.OnDynamicIndexedHeader(header.StaticTableIndex, header.Name, header.Value); 565_headerName = GetDynamicHeader(index).Name;