34 references to Http2ErrorCode
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (34)
Http2Tests.cs (13)
382
Http2Utilities.VerifyGoAway(goAwayFrame, int.MaxValue,
Http2ErrorCode
.NO_ERROR);
421
Http2Utilities.VerifyGoAway(goAwayFrame, int.MaxValue,
Http2ErrorCode
.NO_ERROR);
461
Http2Utilities.VerifyGoAway(goAwayFrame, int.MaxValue,
Http2ErrorCode
.NO_ERROR);
496
Http2Utilities.VerifyGoAway(goAwayFrame, streamId,
Http2ErrorCode
.NO_ERROR);
572
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1,
Http2ErrorCode
.CANCEL);
604
Http2Utilities.VerifyResetFrame(frame, expectedStreamId: 1,
Http2ErrorCode
.INTERNAL_ERROR);
684
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1, expectedErrorCode: (
Http2ErrorCode
)1111);
734
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1, expectedErrorCode: (
Http2ErrorCode
)1111);
784
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1, expectedErrorCode: (
Http2ErrorCode
)1111);
882
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1, expectedErrorCode: (
Http2ErrorCode
)1111);
931
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1, expectedErrorCode: (
Http2ErrorCode
)1111);
956
feature.Reset((int)
Http2ErrorCode
.NO_ERROR); // GRPC does this
989
Http2Utilities.VerifyResetFrame(resetFrame, expectedStreamId: 1, expectedErrorCode:
Http2ErrorCode
.NO_ERROR);
src\Shared\Http2cat\Http2Utilities.cs (11)
763
rstStreamFrame.PrepareRstStream(streamId,
Http2ErrorCode
.CANCEL);
765
BinaryPrimitives.WriteUInt32BigEndian(payload, (uint)
Http2ErrorCode
.CANCEL);
775
frame.PrepareRstStream(streamId,
Http2ErrorCode
.CANCEL);
785
frame.PrepareGoAway(0,
Http2ErrorCode
.NO_ERROR);
794
frame.PrepareGoAway(0,
Http2ErrorCode
.NO_ERROR);
894
return WaitForConnectionErrorAsync<Exception>(ignoreNonGoAwayFrames, expectedLastStreamId,
Http2ErrorCode
.NO_ERROR);
922
internal static void VerifyGoAway(Http2Frame frame, int expectedLastStreamId,
Http2ErrorCode
expectedErrorCode)
932
internal static void VerifyResetFrame(Http2Frame frame, int expectedStreamId,
Http2ErrorCode
expectedErrorCode)
941
internal async Task WaitForConnectionErrorAsync<TException>(bool ignoreNonGoAwayFrames, int expectedLastStreamId,
Http2ErrorCode
expectedErrorCode)
948
internal async Task WaitForConnectionErrorAsyncDoNotCloseTransport<TException>(bool ignoreNonGoAwayFrames, int expectedLastStreamId,
Http2ErrorCode
expectedErrorCode)
964
internal async Task WaitForStreamErrorAsync(int expectedStreamId,
Http2ErrorCode
expectedErrorCode)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (2)
10
public Http2ConnectionErrorException(string message,
Http2ErrorCode
errorCode, ConnectionEndReason reason)
17
public
Http2ErrorCode
ErrorCode { get; }
src\Shared\ServerInfrastructure\Http2\Http2Frame.GoAway.cs (2)
19
public
Http2ErrorCode
GoAwayErrorCode { get; set; }
21
public void PrepareGoAway(int lastStreamId,
Http2ErrorCode
errorCode)
src\Shared\ServerInfrastructure\Http2\Http2Frame.RstStream.cs (2)
13
public
Http2ErrorCode
RstStreamErrorCode { get; set; }
15
public void PrepareRstStream(int streamId,
Http2ErrorCode
errorCode)
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (4)
54
throw new Http2ConnectionErrorException(SharedStrings.FormatHttp2ErrorFrameOverLimit(payloadLength, maxFrameSize),
Http2ErrorCode
.FRAME_SIZE_ERROR, ConnectionEndReason.MaxFrameLengthExceeded);
86
SharedStrings.FormatHttp2ErrorUnexpectedFrameLength(frame.Type, expectedLength: extendedHeaderLength),
Http2ErrorCode
.FRAME_SIZE_ERROR, ConnectionEndReason.InvalidFrameLength);
154
frame.GoAwayErrorCode = (
Http2ErrorCode
)BinaryPrimitives.ReadUInt32BigEndian(extendedHeaders.Slice(4));
175
frame.RstStreamErrorCode = (
Http2ErrorCode
)BinaryPrimitives.ReadUInt32BigEndian(extendedHeaders);