92 instantiations of HttpRequestException
Aspire.Cli.Tests (2)
Mcp\Docs\DocsFetcherTests.cs (1)
185using var handler = new MockHttpMessageHandler(new HttpRequestException("Network error"));
Mcp\Docs\DocsIndexServiceTests.cs (1)
583var fetcher = new ThrowingDocsFetcher(new HttpRequestException("Network error"));
Aspire.Hosting.Azure (1)
AcrLoginService.cs (1)
117throw new HttpRequestException(
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (1)
403throw new HttpRequestException(SR.net_http_request_invalid_char_encoding);
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\HttpClientLoggerTest.cs (1)
82var exception = new HttpRequestException();
Logging\HttpClientLoggingExtensionsTest.cs (1)
454: throw new HttpRequestException("Simulated failure");
Microsoft.Extensions.Http.Resilience.Tests (6)
Hedging\HedgingTests.cs (1)
355throw new HttpRequestException("Something went wrong!");
Hedging\HttpClientHedgingResiliencePredicatesTests.cs (2)
22Assert.True(HttpClientHedgingResiliencePredicates.IsTransientHttpException(new HttpRequestException())); 31Assert.True(HttpClientHedgingResiliencePredicates.IsTransient(Outcome.FromException<HttpResponseMessage>(new HttpRequestException())));
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (1)
23new object[] { new HttpRequestException(), true },
Polly\HttpClientResiliencePredicatesTests.cs (1)
20new object[] { new HttpRequestException(), true },
Polly\HttpRetryStrategyOptionsTests.cs (1)
25[new HttpRequestException(), null!, true],
System.Net.Http (78)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncoder.cs (1)
403throw new HttpRequestException(SR.net_http_request_invalid_char_encoding);
System\Net\Http\HttpContent.cs (3)
235throw new HttpRequestException(SR.net_http_content_read_as_stream_has_task); 708return ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(error, SR.net_http_content_stream_copy_error, e)); 780return (HttpRequestException)ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(CultureInfo.InvariantCulture, SR.net_http_content_buffersize_exceeded, maxBufferSize)));
System\Net\Http\HttpResponseMessage.cs (1)
165throw new HttpRequestException(
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
184throw new HttpRequestException(HttpRequestError.UserAuthenticationError, SR.Format(SR.net_http_authvalidationfailure, statusCode), statusCode: HttpStatusCode.Unauthorized);
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (2)
92HttpRequestException ex = new HttpRequestException(HttpRequestError.SecureConnectionError, SR.net_http_ssl_connection_failed, e); 143new HttpRequestException(DeduceError(exception), $"{exception.Message} ({host}:{port})", exception, RequestRetryType.RetryOnNextProxy);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (8)
460HttpRequestException exception = new(HttpRequestError.ExtendedConnectNotSupported, SR.net_unsupported_extended_connect); 527throw new HttpRequestException(HttpRequestError.VersionNegotiationError, SR.Format(SR.net_http_requested_version_server_refused, request.Version, request.VersionPolicy), e); 674stream = await streamTask.ConfigureAwait(false) ?? throw new HttpRequestException(SR.net_http_null_from_connect_callback); 763throw new HttpRequestException(SR.net_http_exception_during_plaintext_filter, e); 769throw new HttpRequestException(SR.net_http_null_from_plaintext_filter); 791throw new HttpRequestException(HttpRequestError.ProxyTunnelError, SR.Format(SR.net_http_proxy_tunnel_returned_failure_status_code, _proxyUri, (int)tunnelResponse.StatusCode), statusCode: tunnelResponse.StatusCode); 818throw new HttpRequestException(HttpRequestError.ProxyTunnelError, SR.net_http_proxy_tunnel_error, e); 865HttpRequestException ex = new(HttpRequestError.VersionNegotiationError, SR.Format(SR.net_http_requested_version_cannot_establish, request.Version, request.VersionPolicy, desiredVersion), inner);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (3)
201connectionException = new HttpRequestException(SR.Format(SR.net_ssl_http2_requires_tls12, sslStream.SslProtocol)); 265throw new HttpRequestException(SR.net_http_client_execution_error, e); 489HttpRequestException hre = new HttpRequestException(SR.net_http_http2_connection_not_established);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
273throw new HttpRequestException(HttpRequestError.ConnectionError, "QUIC connected but no HTTP/3 indicated via ALPN.", null, RequestRetryType.RetryOnConnectionFailure);
System\Net\Http\SocketsHttpHandler\ContentLengthWriteStream.cs (3)
29throw new HttpRequestException(SR.net_http_content_write_larger_than_content_length); 43return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(SR.net_http_content_write_larger_than_content_length))); 55return Task.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(SR.Format(SR.net_http_request_content_length_mismatch, BytesWritten, _contentLength))));
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (5)
1586throw new HttpRequestException(SR.Format(SR.net_http_request_headers_exceeded_length, maxHeaderListSize)); 2090throw new HttpRequestException(HttpRequestError.UserAuthenticationError, SR.net_http_authconnectionfailure, null, RequestRetryType.RetryOnSessionAuthenticationChallenge); 2098throw new HttpRequestException(e.HttpRequestError, e.Message, e); 2102throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_client_execution_error, e); 2204throw new HttpRequestException((innerException as HttpIOException)?.HttpRequestError ?? HttpRequestError.Unknown, message, innerException, RequestRetryType.RetryOnConnectionFailure);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (10)
232throw new HttpRequestException(SR.Format(SR.net_http_request_content_length_mismatch, writeStream.BytesWritten, writeStream.ContentLength)); 560throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response); 583throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response); 609throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(SR.net_http_response_headers_exceeded_length, _connection._pool.Settings.MaxResponseHeadersByteLength)); 631throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response_multiple_status_codes); 638throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response_pseudo_header_in_trailer); 701throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response); 745throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response); 754throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_header_name, Encoding.ASCII.GetString(name))); 1537return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(SR.net_http_content_write_larger_than_content_length)));
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (3)
314throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_request_aborted, null, RequestRetryType.RetryOnConnectionFailure); 327throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_request_aborted, null, RequestRetryType.RetryOnConnectionFailure); 345throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_client_execution_error, _abortException, RequestRetryType.RetryOnConnectionFailure);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (18)
300throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_retry_on_older_version, ex, RequestRetryType.RetryOnLowerHttpVersion); 305throw new HttpRequestException(HttpRequestError.HttpProtocolError, SR.net_http_request_aborted, rejectedException, RequestRetryType.RetryOnConnectionFailure); 311throw new HttpRequestException(httpRequestError, SR.net_http_client_execution_error, innerException); 321throw new HttpRequestException(HttpRequestError.HttpProtocolError, SR.net_http_client_execution_error, abortException); 336throw new HttpRequestException(httpRequestError, SR.net_http_client_execution_error, _connection.AbortException); 342throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_http3_connection_quic_error, ex); 356throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_request_aborted, ex, RequestRetryType.RetryOnConnectionFailure); 362throw new HttpRequestException(ex.HttpRequestError, SR.net_http_client_execution_error, ex); 367throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response, ex); 372throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_client_execution_error, ex); 384throw new HttpRequestException(HttpRequestError.Unknown, SR.net_http_client_execution_error, ex); 496throw new HttpRequestException(SR.Format(SR.net_http_request_content_length_mismatch, sent, contentLength)); 547throw new HttpRequestException(SR.net_http_content_write_larger_than_content_length); 764throw new HttpRequestException(SR.Format(SR.net_http_request_headers_exceeded_length, maxHeaderListSize)); 966throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(SR.net_http_response_headers_exceeded_length, _connection.Pool.Settings.MaxResponseHeadersByteLength)); 1007throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_header_name, Encoding.ASCII.GetString(name))); 1366throw new HttpRequestException(httpRequestError, SR.net_http_client_execution_error, _connection.AbortException); 1385throw new HttpIOException(HttpRequestError.Unknown, SR.net_http_client_execution_error, new HttpRequestException(SR.net_http_client_execution_error, ex));
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (1)
46throw new HttpRequestException(SR.net_http_request_invalid_host_punycode);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (16)
322throw new HttpRequestException(SR.net_http_request_no_host); 529throw new HttpRequestException(SR.net_http_request_invalid_char_encoding); 926mappedException = new HttpRequestException(SR.net_http_client_execution_error, exception); 935mappedException = new HttpRequestException(error, SR.net_http_client_execution_error, ioe, _canRetry ? RequestRetryType.RetryOnConnectionFailure : RequestRetryType.NoRetry); 1067throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_line, Encoding.ASCII.GetString(line))); 1088throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_line, Encoding.ASCII.GetString(line))); 1096throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_code, Encoding.ASCII.GetString(line.Slice(9, 3)))); 1121throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_reason, Encoding.ASCII.GetString(reasonBytes.ToArray())), formatEx); 1127throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_line, Encoding.ASCII.GetString(line))); 1226throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_header_line, Encoding.ASCII.GetString(buffer.Slice(0, newLineIndex)))); 1325throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_header_name, "")); 1328throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_header_name, Encoding.ASCII.GetString(name))); 1332throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(SR.net_http_response_headers_exceeded_length, _pool.Settings.MaxResponseHeadersByteLength)); 1620throw new HttpRequestException(SR.net_http_chunk_too_large); 2080throw new HttpRequestException(HttpRequestError.UserAuthenticationError, SR.net_http_authconnectionfailure); 2096throw new HttpRequestException(HttpRequestError.UserAuthenticationError, SR.net_http_authconnectionfailure);
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
189throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.Format(SR.net_http_invalid_response_status_code, Encoding.ASCII.GetString(value)));
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
649return ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(SR.net_http_client_execution_error,
System.Net.Http.Json (1)
System\Net\Http\Json\LengthLimitReadStream.cs (1)
33throw new HttpRequestException(SR.Format(SR.net_http_content_buffersize_exceeded, limit));
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
1571state.Tcs.TrySetException(new HttpRequestException(SR.net_http_client_execution_error, ex));
83 references to HttpRequestException
aspire (8)
Commands\TelemetryLogsCommand.cs (1)
160catch (HttpRequestException ex)
Commands\TelemetrySpansCommand.cs (1)
161catch (HttpRequestException ex)
Commands\TelemetryTracesCommand.cs (2)
157catch (HttpRequestException ex) 231catch (HttpRequestException ex)
Mcp\Tools\ListStructuredLogsTool.cs (1)
101catch (HttpRequestException ex)
Mcp\Tools\ListTracesTool.cs (1)
101catch (HttpRequestException ex)
Mcp\Tools\ListTraceStructuredLogsTool.cs (1)
101catch (HttpRequestException ex)
Npm\SigstoreNpmProvenanceChecker.cs (1)
106catch (HttpRequestException ex)
Aspire.Cli.Tests (1)
Mcp\Docs\DocsIndexServiceTests.cs (1)
586await Assert.ThrowsAsync<HttpRequestException>(() => service.SearchAsync("Redis").AsTask());
Aspire.Hosting (2)
Dcp\KubernetesService.cs (2)
492private static bool RetryOnConnectivityErrors(Exception ex) => ex is HttpRequestException || ex is KubeConfigException; 494ex is HttpRequestException ||
Aspire.Hosting.Azure.Tests (2)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
75ShouldHandle = new PredicateBuilder().Handle<HttpRequestException>() 147ShouldHandle = new PredicateBuilder().Handle<HttpRequestException>()
dotnet (2)
Commands\Sdk\Check\ProductCollectionProvider.cs (2)
33catch (Exception ex) when (ex is HttpRequestException || 36(aggregateEx.InnerException is HttpRequestException ||
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
945catch (HttpRequestException requestException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
112public static HttpResponseMessage ProcessGetResponseWebException(HttpRequestException requestException, HttpRequestMessage request, HttpAbortReason abortReason) 126public static Exception ConvertHttpRequestException(HttpRequestException exception, HttpRequestMessage request, HttpAbortReason abortReason)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Logging\AcceptanceTests.cs (4)
693var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.PutAsync("/error?body=true", content)); 727var ex = await Assert.ThrowsAsync<HttpRequestException>(() => client.PutAsync("/error?body=true", content));
Microsoft.Build.Tasks.Core (2)
DownloadFile.cs (2)
164catch (HttpRequestException) 255if (actualException is HttpRequestException httpRequestException)
Microsoft.DotNet.Arcade.Sdk (1)
src\DownloadFile.cs (1)
205catch (Exception e) when (e is HttpRequestException ||
Microsoft.Extensions.Http (4)
Logging\LoggingHttpMessageHandler.cs (1)
76catch (HttpRequestException ex)
Logging\LoggingScopeHttpMessageHandler.cs (1)
76catch (HttpRequestException ex)
Logging\LogHelper.cs (2)
102public static void LogRequestFailed(this ILogger logger, TimeSpan duration, HttpRequestException exception) => 141public static void LogRequestPipelineFailed(this ILogger logger, TimeSpan duration, HttpRequestException exception) =>
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Logging\HttpClientLoggerTest.cs (3)
82var exception = new HttpRequestException(); 110var actualException = await Assert.ThrowsAsync<HttpRequestException>(act);
Logging\HttpClientLoggingExtensionsTest.cs (2)
511HttpRequestException? lastException = null; 519catch (HttpRequestException ex)
Microsoft.Extensions.Http.Resilience (4)
Hedging\HttpHedgingStrategyOptions.cs (1)
23/// as well as <see cref="HttpRequestException"/>, <see cref="BrokenCircuitException"/>, and <see cref="TimeoutRejectedException"/> exceptions.
Polly\HttpCircuitBreakerStrategyOptions.cs (1)
20/// that is, timeouts, 5xx responses, and <see cref="HttpRequestException"/> exceptions.
Polly\HttpClientResiliencePredicates.cs (1)
50return exception is HttpRequestException or TimeoutRejectedException;
Polly\HttpRetryStrategyOptions.cs (1)
25/// as well as <see cref="HttpRequestException"/> and <see cref="TimeoutRejectedException"/> exceptions.
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
RetryBenchmark.cs (1)
48var builder = Policy.Handle<HttpRequestException>().Or<TimeoutRejectedException>().OrResult<HttpResponseMessage>(r =>
StandardResilienceBenchmark.cs (1)
43var builder = Policy.Handle<HttpRequestException>().Or<TimeoutRejectedException>().OrResult<HttpResponseMessage>(r =>
Microsoft.Extensions.Http.Resilience.Tests (2)
Hedging\HedgingTests.cs (2)
173var exception = await Assert.ThrowsAsync<HttpRequestException>(
Microsoft.NET.Build.Containers (4)
AmazonECRMessageHandler.cs (1)
26catch (HttpRequestException e) when (e.InnerException is IOException ioe && ioe.Message.Equals("The response ended prematurely.", StringComparison.OrdinalIgnoreCase))
AuthHandshakeMessageHandler.cs (1)
616catch (HttpRequestException e) when (e.InnerException is IOException ioe && ioe.InnerException is SocketException se)
FallbackToHttpMessageHandler.cs (2)
50catch (HttpRequestException re) when (canFallback && ShouldAttemptFallbackToHttp(re)) 77internal static bool ShouldAttemptFallbackToHttp(HttpRequestException exception)
Microsoft.NET.Sdk.Publish.Tasks (2)
Tasks\OneDeploy\OneDeployStatusService.cs (1)
77else if (ex is HttpRequestException)
Tasks\ZipDeploy\ZipDeploymentStatus.cs (1)
63catch (HttpRequestException)
netstandard (1)
netstandard.cs (1)
1130[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.HttpRequestException))]
NuGet.PackageManagement (2)
Resolution\ResolverGather.cs (2)
469catch (Exception ex) when (ex is System.Net.Http.HttpRequestException || ex is OperationCanceledException || ex is TaskCanceledException) 661catch (Exception ex) when (ex is System.Net.Http.HttpRequestException || ex is OperationCanceledException ||
NuGet.Protocol (3)
Resources\PackageSearchResourceV3.cs (1)
174catch (HttpRequestException ex)
Resources\PackageUpdateResource.cs (1)
947catch (HttpRequestException ex)
Resources\RawSearchResourceV3.cs (1)
105catch (HttpRequestException ex)
System.Net.Http (23)
System\Net\Http\DiagnosticsHelper.cs (1)
76errorType = (exception as HttpRequestException)?.HttpRequestError switch
System\Net\Http\HttpClient.cs (1)
622else if (e is HttpRequestException && cts.IsCancellationRequested) // if cancellationToken is canceled, cts will also be canceled
System\Net\Http\HttpContent.cs (2)
778private static HttpRequestException CreateOverCapacityException(long maxBufferSize) 780return (HttpRequestException)ExceptionDispatchInfo.SetCurrentStackTrace(new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.Format(CultureInfo.InvariantCulture, SR.net_http_content_buffersize_exceeded, maxBufferSize)));
System\Net\Http\HttpProtocolException.cs (1)
14/// <see cref="HttpRequestException"/> if a protocol error occurs.
System\Net\Http\HttpRequestError.cs (1)
7/// Defines error categories representing the reason for <see cref="HttpRequestException"/> or <see cref="HttpIOException"/>.
System\Net\Http\HttpRequestException.cs (2)
27/// Initializes a new instance of the <see cref="HttpRequestException" /> class with a specific message that describes the current exception, an inner exception, and an HTTP status code. 39/// Initializes a new instance of the <see cref="HttpRequestException" /> class with a specific message an inner exception, and an HTTP status code and an <see cref="HttpRequestError"/>.
System\Net\Http\HttpVersionPolicy.cs (2)
24/// Throwing <see cref="HttpRequestException" /> if a connection with higher or equal version cannot be established. 36/// Throwing <see cref="HttpRequestException" /> if a connection with the exact version cannot be established.
System\Net\Http\RequestRetryType.cs (1)
7/// Used with <see cref="HttpRequestException"/> to indicate if a request is safe to retry.
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
92HttpRequestException ex = new HttpRequestException(HttpRequestError.SecureConnectionError, SR.net_http_ssl_connection_failed, e);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (6)
460HttpRequestException exception = new(HttpRequestError.ExtendedConnectNotSupported, SR.net_unsupported_extended_connect); 499catch (HttpRequestException e) when (e.AllowRetry == RequestRetryType.RetryOnConnectionFailure) 522catch (HttpRequestException e) when (e.AllowRetry == RequestRetryType.RetryOnLowerHttpVersion) 538catch (HttpRequestException e) when (e.AllowRetry == RequestRetryType.RetryOnSessionAuthenticationChallenge) 817Debug.Assert(e is not HttpRequestException); 865HttpRequestException ex = new(HttpRequestError.VersionNegotiationError, SR.Format(SR.net_http_requested_version_cannot_establish, request.Version, request.VersionPolicy, desiredVersion), inner);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
489HttpRequestException hre = new HttpRequestException(SR.net_http_http2_connection_not_established);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
377if (ex is HttpRequestException) 516catch (HttpRequestException hex) when (hex.InnerException is QuicException qex && qex.QuicError == QuicError.StreamAborted && qex.ApplicationErrorCode == (long)Http3ErrorCode.NoError)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (2)
431HttpRequestException rethrowException; 439catch (HttpRequestException ex) when (ex.AllowRetry != RequestRetryType.NoRetry)
System.Net.Requests (3)
System\Net\WebException.cs (2)
83if (exception is HttpRequestException hre) 103private static WebExceptionStatus GetStatusFromExceptionHelper(HttpRequestException ex)
System\Net\WebExceptionPal.Unix.cs (1)
10internal static WebExceptionStatus GetStatusFromException(HttpRequestException ex)
System.ServiceModel.Http (3)
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1065catch (HttpRequestException requestException)
System\ServiceModel\Channels\HttpChannelHelpers.cs (2)
103public static HttpResponseMessage ProcessGetResponseWebException(HttpRequestException requestException, HttpRequestMessage request, HttpAbortReason abortReason) 117public static Exception ConvertHttpRequestException(HttpRequestException exception, HttpRequestMessage request, HttpAbortReason abortReason)