1 type derived from HttpIOException
System.Net.Http (1)
System\Net\Http\HttpProtocolException.cs (1)
18
public sealed class HttpProtocolException :
HttpIOException
24 instantiations of HttpIOException
Aspire.Cli.Tests (1)
Agents\AspireSkillsInstallerTests.cs (1)
1104
var handler = new MockHttpMessageHandler(new
HttpIOException
(HttpRequestError.ResponseEnded));
System.Net.Http (23)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (5)
76
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _chunkBytesRemaining));
192
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _chunkBytesRemaining));
335
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_chunk_header_invalid, BitConverter.ToString(currentLine.ToArray())));
389
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_chunk_terminator_invalid, Encoding.ASCII.GetString(currentLine)));
452
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_chunk_extension_invalid, BitConverter.ToString(lineAfterChunkSize.ToArray())));
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (2)
41
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _contentBytesRemaining));
103
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _contentBytesRemaining));
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (5)
486
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, requiredBytes - _incomingBuffer.ActiveLength));
489
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.net_http_invalid_response_missing_frame);
529
InitialSettingsReceived.TrySetException(new
HttpIOException
(HttpRequestError.InvalidResponse, SR.net_http_http2_connection_not_established, e));
531
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.net_http_http2_connection_not_established, e);
1879
var ex = new
HttpIOException
(HttpRequestError.Unknown, SR.net_http_http2_frame_limit_exceeded);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (7)
423
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.net_http_invalid_response);
623
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.net_http_invalid_response);
922
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.net_http_invalid_response_premature_eof);
975
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.net_http_invalid_response_premature_eof);
1242
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _responseDataPayloadRemaining));
1314
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.Format(SR.net_http_invalid_response_premature_eof_bytecount, _responseDataPayloadRemaining));
1382
throw new
HttpIOException
(HttpRequestError.Unknown, SR.net_http_client_execution_error, new HttpRequestException(SR.net_http_client_execution_error, ex));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (4)
663
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.net_http_invalid_response_premature_eof);
1612
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.net_http_invalid_response_chunk_line_ending);
1623
throw new
HttpIOException
(HttpRequestError.InvalidResponse, SR.net_http_invalid_response_chunk_line_ending);
1680
throw new
HttpIOException
(HttpRequestError.ResponseEnded, SR.net_http_invalid_response_premature_eof);
11 references to HttpIOException
aspire (1)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
278
catch (Exception ex) when (ex is HttpRequestException or
HttpIOException
or JsonException)
System.Net.Http (10)
System\Net\Http\HttpContent.cs (1)
707
HttpRequestError error = e is
HttpIOException
ioEx ? ioEx.HttpRequestError : HttpRequestError.Unknown;
System\Net\Http\HttpIOException.cs (1)
14
/// Initializes a new instance of the <see cref="
HttpIOException
"/> class.
System\Net\Http\HttpRequestError.cs (1)
7
/// Defines error categories representing the reason for <see cref="HttpRequestException"/> or <see cref="
HttpIOException
"/>.
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (4)
1879
var
ex = new HttpIOException(HttpRequestError.Unknown, SR.net_http_http2_frame_limit_exceeded);
2177
catch (
HttpIOException
e)
2285
throw new HttpRequestException((innerException as
HttpIOException
)?.HttpRequestError ?? HttpRequestError.Unknown, message, innerException, RequestRetryType.RetryOnConnectionFailure);
2288
innerException as
HttpIOException
?? ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_http_request_aborted, innerException));
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
359
catch (
HttpIOException
ex)
1370
case
HttpIOException
:
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
937
HttpRequestError error = ioe is
HttpIOException
httpIoe ? httpIoe.HttpRequestError : HttpRequestError.Unknown;