HttpClientExtensions Class
Namespace
Statiq.Core
Base Types
  • object
graph BT Type-->Base0["object"] Type["HttpClientExtensions"] class Type type-node

Syntax

public static class HttpClientExtensions

Methods

Name Return Value Summary
SendWithRetryAsync(HttpClient, Func<HttpRequestMessage>, CancellationToken) Task<HttpResponseMessage>
Retries a request with exponential back-off. This helps with websites like GitHub that will give us a 429 (TooManyRequests).
static
SendWithRetryAsync(HttpClient, Func<HttpRequestMessage>, int, CancellationToken) Task<HttpResponseMessage>
Retries a request with exponential back-off. This helps with websites like GitHub that will give us a 429 (TooManyRequests).
static
SendWithRetryAsync(HttpClient, string, CancellationToken) Task<HttpResponseMessage>
Retries a GET request with exponential back-off. This helps with websites like GitHub that will give us a 429 (TooManyRequests).
static
SendWithRetryAsync(HttpClient, string, int, CancellationToken) Task<HttpResponseMessage>
Retries a GET request with exponential back-off. This helps with websites like GitHub that will give us a 429 (TooManyRequests).
static
SendWithRetryAsync(HttpClient, Uri, CancellationToken) Task<HttpResponseMessage>
Retries a GET request with exponential back-off. This helps with websites like GitHub that will give us a 429 (TooManyRequests).
static
SendWithRetryAsync(HttpClient, Uri, int, CancellationToken) Task<HttpResponseMessage>
Retries a GET request with exponential back-off. This helps with websites like GitHub that will give us a 429 (TooManyRequests).
static