Class HttpRetryHandlerRequest
- Namespace
- NuGet.Protocol
- Assembly
- NuGet.Protocol.dll
public class HttpRetryHandlerRequest
- Inheritance
-
HttpRetryHandlerRequest
- Inherited Members
-
- Extension Methods
-
Constructors
HttpRetryHandlerRequest(HttpClient, Func<HttpRequestMessage>)
public HttpRetryHandlerRequest(HttpClient httpClient, Func<HttpRequestMessage> requestFactory)
Parameters
httpClient
HttpClient
requestFactory
Func<HttpRequestMessage>
Fields
DefaultDownloadTimeout
public static readonly TimeSpan DefaultDownloadTimeout
Field Value
- TimeSpan
DefaultMaxTries
public static readonly int DefaultMaxTries
Field Value
- int
Properties
AddHeaders
public IList<KeyValuePair<string, IEnumerable<string>>> AddHeaders { get; set; }
Property Value
- IList<KeyValuePair<string, IEnumerable<string>>>
CompletionOption
public HttpCompletionOption CompletionOption { get; set; }
Property Value
- HttpCompletionOption
DownloadTimeout
public TimeSpan DownloadTimeout { get; set; }
Property Value
- TimeSpan
HttpClient
public HttpClient HttpClient { get; }
Property Value
- HttpClient
IsLastAttempt
public bool IsLastAttempt { get; set; }
Property Value
- bool
IsRetry
public bool IsRetry { get; set; }
Property Value
- bool
MaxTries
public int MaxTries { get; set; }
Property Value
- int
RequestFactory
public Func<HttpRequestMessage> RequestFactory { get; }
Property Value
- Func<HttpRequestMessage>
RequestTimeout
public TimeSpan RequestTimeout { get; set; }
Property Value
- TimeSpan
RetryDelay
public TimeSpan RetryDelay { get; set; }
Property Value
- TimeSpan