Class CoreeHttpClient
Inheritance
CoreeHttpClient
Assembly: Coree.NETStandard.dll
Syntax
public class CoreeHttpClient : ICoreeHttpClient
Constructors
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
CoreeHttpClient(ILogger<CoreeHttpClient>, IHttpClientFactory, IMemoryCache)
Declaration
public CoreeHttpClient(ILogger<CoreeHttpClient> logger, IHttpClientFactory httpClientFactory, IMemoryCache memoryCache)
Parameters
Methods
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
GetAsync(string, Dictionary<string, string>?, TimeSpan?, int, TimeSpan?, CancellationToken)
Declaration
public Task<HttpResponseResult> GetAsync(string url, Dictionary<string, string>? headers = null, TimeSpan? cacheDuration = null, int maxTries = 3, TimeSpan? retryDelay = null, CancellationToken cancellationToken = default)
Parameters
Returns
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
GetJsonDocumentAsync(string, Dictionary<string, string>?, TimeSpan?, int, TimeSpan?, CancellationToken)
Declaration
public Task<JsonDocument?> GetJsonDocumentAsync(string url, Dictionary<string, string>? headers = null, TimeSpan? cacheDuration = null, int maxTries = 3, TimeSpan? retryDelay = null, CancellationToken cancellationToken = default)
Parameters
Returns
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
GetJsonNodeAsync(string, Dictionary<string, string>?, TimeSpan?, int, TimeSpan?, CancellationToken)
Declaration
public Task<JsonNode?> GetJsonNodeAsync(string url, Dictionary<string, string>? headers = null, TimeSpan? cacheDuration = null, int maxTries = 3, TimeSpan? retryDelay = null, CancellationToken cancellationToken = default)
Parameters
Returns
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
GetJsonPathResultAsync(string, string, Dictionary<string, string>?, TimeSpan?, int, TimeSpan?, CancellationToken)
Declaration
public Task<PathResult?> GetJsonPathResultAsync(string url, string jsonPath, Dictionary<string, string>? headers = null, TimeSpan? cacheDuration = null, int maxTries = 3, TimeSpan? retryDelay = null, CancellationToken cancellationToken = default)
Parameters
Returns
Type |
Description |
Task<PathResult> |
|
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
GetJsonPathResultAsync<T>(string, string, Dictionary<string, string>?, TimeSpan?, int, TimeSpan?, CancellationToken)
Declaration
public Task<List<T>?> GetJsonPathResultAsync<T>(string url, string jsonPath, Dictionary<string, string>? headers = null, TimeSpan? cacheDuration = null, int maxTries = 3, TimeSpan? retryDelay = null, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
|
<<<<<<< HEAD
Edit this page
View Source
=======
Edit this page
View Source
>>>>>>> release
GetStringAsync(string, Dictionary<string, string>?, TimeSpan?, int, TimeSpan?, CancellationToken)
Declaration
public Task<string?> GetStringAsync(string url, Dictionary<string, string>? headers = null, TimeSpan? cacheDuration = null, int maxTries = 3, TimeSpan? retryDelay = null, CancellationToken cancellationToken = default)
Parameters
Returns
Implements