Implemented interface member:
2 writes to Current
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
141Current = result ? new KeyValuePair<string, string>(key, _stringValuesEnumerator.Current!) : default; 151Current = new KeyValuePair<string, string>(name, value.ToString());
20 references to Current
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (20)
Http2\Http2HeadersEnumeratorTests.cs (16)
94Assert.Equal("Name1", e.Current.Key); 95Assert.Equal("Value1", e.Current.Value); 99Assert.Equal("Name2", e.Current.Key); 100Assert.Equal("Value2-1", e.Current.Value); 104Assert.Equal("Name2", e.Current.Key); 105Assert.Equal("Value2-2", e.Current.Value); 119Assert.Equal("Grpc-Status", e.Current.Key); 120Assert.Equal("1", e.Current.Value); 124Assert.Equal("Name1", e.Current.Key); 125Assert.Equal("Value1", e.Current.Value); 129Assert.Equal("Name2", e.Current.Key); 130Assert.Equal("Value2-1", e.Current.Value); 134Assert.Equal("Name2", e.Current.Key); 135Assert.Equal("Value2-2", e.Current.Value); 146headers.Add(CreateHeaderResult(enumerator.HPackStaticTableId, enumerator.Current.Key, enumerator.Current.Value));
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (2)
124var name = headersEnumerator.Current.Key; 125var value = headersEnumerator.Current.Value;
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (2)
44object IEnumerator.Current => Current; 87if (_hasMultipleValues && MoveNextOnStringEnumerator(Current.Key))