25 references to HPackHeaderWriter
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (25)
Http2\Http2HPackEncoderTests.cs (22)
25
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(302, hpackEncoder, enumerator, buffer, out var length));
48
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(302, hpackEncoder, enumerator, buffer, out var length));
76
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(302, hpackEncoder, enumerator, buffer, out var length));
118
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(307, hpackEncoder, enumerator, buffer, out length));
159
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(200, hpackEncoder, enumerator, buffer, out length));
220
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(302, hpackEncoder, enumerator, buffer, out var length));
262
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(307, hpackEncoder, enumerator, buffer, out length));
303
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(200, hpackEncoder, enumerator, buffer, out length));
361
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, enumerator, buffer, out _));
387
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(200, hpackEncoder, enumerator, buffer, out var length));
476
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(statusCode.Value, hpackEncoder, GetHeadersEnumerator(headers), payload, out length));
480
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, GetHeadersEnumerator(headers), payload, out length));
542
Assert.Equal(HeaderWriteResult.MoreHeaders,
HPackHeaderWriter
.BeginEncodeHeaders(statusCode, hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out var length));
549
Assert.Equal(HeaderWriteResult.MoreHeaders,
HPackHeaderWriter
.ContinueEncodeHeaders(hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out length));
556
Assert.Equal(HeaderWriteResult.MoreHeaders,
HPackHeaderWriter
.ContinueEncodeHeaders(hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out length));
563
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.ContinueEncodeHeaders(hpackEncoder, headerEnumerator, payload.Slice(offset, sliceLength), out length));
580
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, enumerator, buffer, out var length));
594
Assert.Equal(HeaderWriteResult.Done,
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, enumerator, buffer, out length));
610
Assert.Equal(HeaderWriteResult.MoreHeaders,
HPackHeaderWriter
.BeginEncodeHeaders(200, hpackEncoder, enumerator, buffer, out var length));
625
Assert.Equal(HeaderWriteResult.BufferTooSmall,
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, enumerator, buffer, out var length));
640
Assert.Equal(HeaderWriteResult.MoreHeaders,
HPackHeaderWriter
.BeginEncodeHeaders(200, hpackEncoder, enumerator, buffer, out var length));
656
Assert.Equal(HeaderWriteResult.MoreHeaders,
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, enumerator, buffer, out var length));
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (3)
12
using HPackHeaderWriter = Microsoft.AspNetCore.Server.Kestrel.Core.Tests.
HPackHeaderWriter
;
37
var done =
HPackHeaderWriter
.BeginEncodeHeaders(hpackEncoder, headers, buffer, out var length);
57
done =
HPackHeaderWriter
.ContinueEncodeHeaders(hpackEncoder, headers, buffer, out length);