45 references to SR
System.Net.Http.WinHttpHandler (45)
src\runtime\src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (5)
16throw new ArgumentOutOfRangeException(nameof(bufferSize), bufferSize, SR.ArgumentOutOfRange_NeedPosNum); 22throw new ObjectDisposedException(null, SR.ObjectDisposed_StreamClosed); 28throw new ObjectDisposedException(nameof(destination), SR.ObjectDisposed_StreamClosed); 33throw new NotSupportedException(SR.NotSupported_UnreadableStream); 38throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\Net\Http\NoWriteNoSeekStreamContent.cs (1)
43throw new InvalidOperationException(SR.net_http_content_stream_already_read);
System\Net\Http\WinHttpAuthHelper.cs (1)
361throw new InvalidOperationException(SR.net_http_username_empty_string);
System\Net\Http\WinHttpException.cs (2)
82return SR.Format(SR.net_http_winhttp_error, error, nameOfCalledFunction, httpError);
System\Net\Http\WinHttpHandler.cs (20)
167SR.Format(SR.net_http_value_must_be_greater_than, 0)); 299throw new InvalidOperationException(SR.Format(SR.net_http_invalid_enable_first, "ClientCertificateOptions", "Manual")); 398SR.Format(SR.net_http_value_must_be_greater_than, 0)); 531SR.Format(SR.net_http_value_must_be_greater_than, 0)); 553SR.Format(SR.net_http_value_must_be_greater_than, 0)); 600throw new InvalidOperationException(SR.net_http_client_invalid_requesturi); 605throw new NotSupportedException(SR.Format(SR.net_http_unsupported_requesturi_scheme, requestUri.Scheme)); 611throw new InvalidOperationException(SR.net_http_invalid_proxyusepolicy); 616throw new InvalidOperationException(SR.net_http_invalid_proxy); 622throw new InvalidOperationException(SR.net_http_invalid_cookiecontainer); 707throw new InvalidOperationException(SR.net_http_chunked_not_allowed_with_empty_content); 874state.Tcs.TrySetException(new NotSupportedException(SR.net_http_unsupported_version)); 1571state.Tcs.TrySetException(new HttpRequestException(SR.net_http_client_execution_error, ex)); 1600throw new InvalidOperationException(SR.net_http_operation_started);
System\Net\Http\WinHttpRequestCallback.cs (5)
190state.LifecycleAwaitable.SetException(new IOException(SR.Format( 191SR.net_http_io_read_incomplete, 489new IOException(SR.net_http_io_read, innerException)); 501state.LifecycleAwaitable.SetException(new IOException(SR.net_http_io_read, innerException)); 515new IOException(SR.net_http_io_write, innerException));
System\Net\Http\WinHttpRequestStream.cs (4)
114throw new ArgumentException(SR.net_http_buffer_insufficient_length, nameof(buffer)); 129throw new InvalidOperationException(SR.net_http_no_concurrent_io_allowed); 237new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData)))); 258new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData))));
System\Net\Http\WinHttpResponseStream.cs (7)
112throw new InvalidOperationException(SR.net_http_no_concurrent_io_allowed); 126throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 143throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData))); 188throw new ArgumentException(SR.net_http_buffer_insufficient_length, nameof(buffer)); 216throw new InvalidOperationException(SR.net_http_no_concurrent_io_allowed); 227throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 242throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData)));