,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})} ,System.Boolean,System.Nullable{System.DateTimeOffset})}
HttpMixinExtensions.DownloadUrl(IBlobCache, string, IDictionary?, bool, DateTimeOffset?) method¶
Defined in
Type: HttpMixinExtensions
Namespace: Akavache
Assembly: Akavache.Core.dll
Applies to
net9.0, net9.0-maccatalyst18.0, net9.0-macos15.0, net9.0-tvos18.0, net9.0-android35.0, net9.0-ios18.0, net8.0, net8.0-android34.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos17.2, netstandard2.1, netstandard2.0
Overloads¶
- 1.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 2.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 3.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string key, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 4.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string key, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 5.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 6.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 7.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, string key, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 8.
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, string key, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
1. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. The URL itself is used as the key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
url | string | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
2. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. The URL itself is used as the key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
url | Uri | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
3. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string key, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. An explicit key is provided rather than the URL itself.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
key | string | The key to store with. |
url | string | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
4. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string key, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. An explicit key is provided rather than the URL itself.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
key | string | The key to store with. |
url | Uri | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
5. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. The URL itself is used as the key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
method | HttpMethod | The type of HTTP Method. |
url | string | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
6. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. The URL itself is used as the key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
method | HttpMethod | The type of HTTP Method. |
url | Uri | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
7. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, string key, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. An explicit key is provided rather than the URL itself.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
method | HttpMethod | The type of HTTP Method. |
key | string | The key to store with. |
url | string | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable
8. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, HttpMethod method, string key, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Summary: Download data from an HTTP URL and insert the result into the cache. If the data is already in the cache, this returns a cached value. An explicit key is provided rather than the URL itself.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to perform the operation on. |
method | HttpMethod | The type of HTTP Method. |
key | string | The key to store with. |
url | Uri | The URL to download. |
headers = null | IDictionary | An optional Dictionary containing the HTTP request headers. |
fetchAlways = false | bool | Force a web request to always be issued, skipping the cache. |
absoluteExpiration = null | DateTimeOffset? | An optional expiration date. |
Returns: IObservable