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