42 references to Http2ProtocolErrorCode
System.Net.Http (42)
System\Net\Http\HttpProtocolException.cs (17)
39
internal static HttpProtocolException CreateHttp2StreamException(
Http2ProtocolErrorCode
protocolError)
45
internal static HttpProtocolException CreateHttp2ConnectionException(
Http2ProtocolErrorCode
protocolError, string? message = null)
63
private static string GetName(
Http2ProtocolErrorCode
code) =>
67
Http2ProtocolErrorCode
.NoError => "NO_ERROR",
68
Http2ProtocolErrorCode
.ProtocolError => "PROTOCOL_ERROR",
69
Http2ProtocolErrorCode
.InternalError => "INTERNAL_ERROR",
70
Http2ProtocolErrorCode
.FlowControlError => "FLOW_CONTROL_ERROR",
71
Http2ProtocolErrorCode
.SettingsTimeout => "SETTINGS_TIMEOUT",
72
Http2ProtocolErrorCode
.StreamClosed => "STREAM_CLOSED",
73
Http2ProtocolErrorCode
.FrameSizeError => "FRAME_SIZE_ERROR",
74
Http2ProtocolErrorCode
.RefusedStream => "REFUSED_STREAM",
75
Http2ProtocolErrorCode
.Cancel => "CANCEL",
76
Http2ProtocolErrorCode
.CompressionError => "COMPRESSION_ERROR",
77
Http2ProtocolErrorCode
.ConnectError => "CONNECT_ERROR",
78
Http2ProtocolErrorCode
.EnhanceYourCalm => "ENHANCE_YOUR_CALM",
79
Http2ProtocolErrorCode
.InadequateSecurity => "INADEQUATE_SECURITY",
80
Http2ProtocolErrorCode
.Http11Required => "HTTP_1_1_REQUIRED",
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (20)
75
private
Http2ProtocolErrorCode
? _goAwayErrorCode;
436
ThrowProtocolError(initialFrame ?
Http2ProtocolErrorCode
.ProtocolError :
Http2ProtocolErrorCode
.FrameSizeError);
807
ThrowProtocolError(
Http2ProtocolErrorCode
.FrameSizeError);
824
ThrowProtocolError(
Http2ProtocolErrorCode
.FrameSizeError);
851
ThrowProtocolError(
Http2ProtocolErrorCode
.FlowControlError);
975
ThrowProtocolError(
Http2ProtocolErrorCode
.FrameSizeError);
1004
ThrowProtocolError(
Http2ProtocolErrorCode
.FrameSizeError);
1041
ThrowProtocolError(
Http2ProtocolErrorCode
.FrameSizeError);
1057
var
protocolError = (
Http2ProtocolErrorCode
)BinaryPrimitives.ReadInt32BigEndian(_incomingBuffer.ActiveSpan);
1062
bool canRetry = protocolError ==
Http2ProtocolErrorCode
.RefusedStream;
1101
private (int lastStreamId,
Http2ProtocolErrorCode
errorCode) ReadGoAwayFrame(FrameHeader frameHeader)
1107
ThrowProtocolError(
Http2ProtocolErrorCode
.FrameSizeError);
1116
Http2ProtocolErrorCode
errorCode = (
Http2ProtocolErrorCode
)BinaryPrimitives.ReadInt32BigEndian(_incomingBuffer.ActiveSpan.Slice(sizeof(int)));
1300
private Task SendRstStreamAsync(int streamId,
Http2ProtocolErrorCode
errorCode) =>
2137
ThrowProtocolError(
Http2ProtocolErrorCode
.ProtocolError, SR.net_ping_request_timed_out);
2171
ThrowProtocolError(
Http2ProtocolErrorCode
.ProtocolError);
2174
private static void ThrowProtocolError(
Http2ProtocolErrorCode
errorCode, string? message = null) =>
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (5)
377
_connection.LogExceptions(_connection.SendRstStreamAsync(StreamId,
Http2ProtocolErrorCode
.Cancel));
890
ThrowProtocolError(
Http2ProtocolErrorCode
.FlowControlError);
942
public void OnReset(Exception resetException,
Http2ProtocolErrorCode
? resetStreamErrorCode = null, bool canRetry = false)
981
if (resetStreamErrorCode ==
Http2ProtocolErrorCode
.NoError &&
1396
_connection.LogExceptions(_connection.SendRstStreamAsync(StreamId,
Http2ProtocolErrorCode
.Cancel));