18 references to HeaderWriteResult
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (18)
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (13)
32
public static
HeaderWriteResult
BeginEncodeHeaders(int statusCode, DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headersEnumerator, Span<byte> buffer, out int length)
50
return
HeaderWriteResult
.Done;
55
var
done = EncodeHeadersCore(hpackEncoder, headersEnumerator, buffer.Slice(length), canRequestLargerBuffer: false, out var headersLength);
63
public static
HeaderWriteResult
BeginEncodeHeaders(DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headersEnumerator, Span<byte> buffer, out int length) =>
69
public static
HeaderWriteResult
RetryBeginEncodeHeaders(DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headersEnumerator, Span<byte> buffer, out int length) =>
75
private static
HeaderWriteResult
BeginEncodeHeaders(DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headersEnumerator, Span<byte> buffer, bool iterateBeforeFirstElement, out int length)
87
return
HeaderWriteResult
.Done;
90
var
done = EncodeHeadersCore(hpackEncoder, headersEnumerator, buffer.Slice(length), canRequestLargerBuffer: true, out var headersLength);
98
public static
HeaderWriteResult
ContinueEncodeHeaders(DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headersEnumerator, Span<byte> buffer, out int length)
118
private static
HeaderWriteResult
EncodeHeadersCore(DynamicHPackEncoder hpackEncoder, Http2HeadersEnumerator headersEnumerator, Span<byte> buffer, bool canRequestLargerBuffer, out int length)
146
return
HeaderWriteResult
.BufferTooSmall;
149
return
HeaderWriteResult
.MoreHeaders;
156
return
HeaderWriteResult
.Done;
src\Servers\Kestrel\shared\test\PipeWriterHttp2FrameExtensions.cs (5)
13
using HeaderWriteResult = Microsoft.AspNetCore.Server.Kestrel.Core.Tests.
HeaderWriteResult
;
37
var
done = HPackHeaderWriter.BeginEncodeHeaders(hpackEncoder, headers, buffer, out var length);
40
if (done ==
HeaderWriteResult
.Done)
53
while (done !=
HeaderWriteResult
.Done)
60
if (done ==
HeaderWriteResult
.Done)