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