16 references to _literalHeaderNameString
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (16)
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (16)
54private static readonly byte[] _literalHeaderNameBytes = Encoding.ASCII.GetBytes(_literalHeaderNameString);
170Assert.Equal(_literalHeaderNameString, _handler.DecodedHeaders[_headerNameString]); // but we got the header anyway
514Assert.True(_handler.DecodedHeaders.ContainsKey(_literalHeaderNameString));
515Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
530Assert.True(_handler.DecodedHeaders.ContainsKey(_literalHeaderNameString));
531Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
542_decoder.Decode(encoded[..(_literalHeaderNameString.Length / 2)], endHeaders: false, handler: _handler);
543_decoder.Decode(encoded[(_literalHeaderNameString.Length / 2)..], endHeaders: true, handler: _handler);
546Assert.True(_handler.DecodedHeaders.ContainsKey(_literalHeaderNameString));
547Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
562Assert.True(_handler.DecodedHeaders.ContainsKey(_literalHeaderNameString));
563Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
578Assert.True(_handler.DecodedHeaders.ContainsKey(_literalHeaderNameString));
579Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);
594Assert.True(_handler.DecodedHeaders.ContainsKey(_literalHeaderNameString));
595Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]);