18 references to Append
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpProtocol.cs (1)
536
HttpRequestHeaders.
Append
(name, value, checkForNewlineChars);
Internal\Http2\Http2Stream.cs (1)
732
HttpRequestHeaders.
Append
(name, value, checkForNewlineChars: true);
Internal\Http3\Http3Stream.cs (1)
278
HttpRequestHeaders.
Append
(name, value, checkForNewlineChars: true);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (15)
HttpRequestHeadersTests.cs (15)
403
() => headers.
Append
(Encoding.Latin1.GetBytes(key), Encoding.ASCII.GetBytes("value"), checkForNewlineChars: false));
553
headers.
Append
(headerNameBytes, prevSpan, checkForNewlineChars: false);
569
headers.
Append
(headerNameBytes, nextSpan, checkForNewlineChars: false);
615
headers.
Append
(headerNameBytes, latinValueSpan, checkForNewlineChars: false);
620
headers.
Append
(headerNameBytes, latinValueSpan, checkForNewlineChars: false);
659
headers.
Append
(headerNameBytes, valueSpan, checkForNewlineChars: false);
685
Assert.Throws<InvalidOperationException>(() => headers.
Append
(acceptNameBytes, headerValueBytes, checkForNewlineChars: false));
686
headers.
Append
(cookieNameBytes, headerValueBytes, checkForNewlineChars: false);
704
headers.
Append
(contentLengthNameBytes, contentLengthValueBytes, checkForNewlineChars: false);
710
new HttpRequestHeaders().
Append
(contentLengthNameBytes, contentLengthValueBytes, checkForNewlineChars: false));
750
headers.
Append
(headerNameBytes, prevSpan, checkForNewlineChars: false);
799
headers.
Append
(headerNameBytes, prevSpan1, checkForNewlineChars: false);
800
headers.
Append
(headerNameBytes, prevSpan2, checkForNewlineChars: false);
852
headers.
Append
(headerName, prevSpan, checkForNewlineChars: false);
862
headers.
Append
(headerName, nextSpan, checkForNewlineChars: false);