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); 157Assert.True(expectedData.AsSpan().SequenceEqual(dynamicField.Name)); 195Assert.True(headers[i].Name.AsSpan().SequenceEqual(dynamicTable[i].Name)); 204dynamicTable.Insert(_header1.Name, _header1.Value); 205dynamicTable.Insert(_header2.Name, _header2.Value); 218dynamicTable.Insert(_header1.Name, _header1.Value); 219dynamicTable.Insert(_header2.Name, _header2.Value); 231dynamicTable.Insert(_header1.Name, _header1.Value); 232dynamicTable.Insert(_header2.Name, _header2.Value); 241dynamicTable.Insert(_header2.Name, _header2.Value); 264Assert.NotSame(entries[i].Name, headerField.Name); 265Assert.Equal(entries[i].Name, headerField.Name);
runtime\Http2\HPackDecoderTest.cs (4)
948Assert.Equal(expectedHeaderName, Encoding.ASCII.GetString(dynamicTable[0].Name)); 976((IHttpStreamHeadersHandler)this).OnHeader(entry.Name, entry.Value); 977DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 982byte[] 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)
516_dynamicTable.Insert(_headerStaticIndex, H2StaticTable.Get(_headerStaticIndex - 1).Name, headerValueSpan); 556handler.OnDynamicIndexedHeader(header.StaticTableIndex, header.Name, header.Value); 570_headerName = GetDynamicHeader(index).Name;