})} },System.Boolean)} },System.Boolean,System.Nullable{System.DateTimeOffset})} })} },System.Boolean)} },System.Boolean,System.Nullable{System.DateTimeOffset})} })} },System.Boolean)} },System.Boolean,System.Nullable{System.DateTimeOffset})} })} },System.Boolean)} },System.Boolean,System.Nullable{System.DateTimeOffset})}
IHttpService.DownloadUrl(IBlobCache, string) method¶
Defined in
Type: IHttpService
Namespace: Akavache.Reactive
Assembly: Akavache.HttpDownloader.Reactive.dll
Applies to
net10.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-tvos26.0, net10.0-windows10.0.19041, net10.0-macos26.0, net10.0-ios26.0, net10.0-android36.0, net9.0, net9.0-tvos18.0, net9.0-macos15.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-ios18.0, net9.0-desktop1.0, net8.0, net8.0-windows10.0.19041, 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.5, netstandard2.1, net481, net462, net471
Overloads¶
- 1.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url) - 2.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method) - 3.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers) - 4.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways) - 5.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration) - 6.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, bool fetchAlways) - 7.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url) - 8.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method) - 9.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers) - 10.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways) - 11.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration) - 12.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, bool fetchAlways) - 13.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url) - 14.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method) - 15.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers) - 16.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways) - 17.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration) - 18.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, bool fetchAlways) - 19.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url) - 20.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method) - 21.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers) - 22.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways) - 23.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration) - 24.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, bool fetchAlways)
1. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | string | The URL to download from. |
Returns: IObservable
2. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
Returns: IObservable
3. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
Returns: IObservable
4. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
Returns: IObservable
5. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
absoluteExpiration | DateTimeOffset? | An optional expiration date for the cached data. |
Returns: IObservable
6. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, bool fetchAlways)
Summary: Downloads a URL, optionally bypassing the cache, using the default method and no extra headers.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The cache to read from and write to. |
url | string | The URL to download. |
fetchAlways | bool | Whether to bypass the cache and always fetch. |
Returns: IObservable
7. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | Uri | The URL to download from. |
Returns: IObservable
8. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
Returns: IObservable
9. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
Returns: IObservable
10. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
Returns: IObservable
11. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)
Summary: Downloads data from a URL and caches it, using the URL as the cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
absoluteExpiration | DateTimeOffset? | An optional expiration date for the cached data. |
Returns: IObservable
12. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, bool fetchAlways)
Summary: Downloads a URL, optionally bypassing the cache, using the default method and no extra headers.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The cache to read from and write to. |
url | Uri | The URL to download. |
fetchAlways | bool | Whether to bypass the cache and always fetch. |
Returns: IObservable
13. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | string | The URL to download from. |
Returns: IObservable
14. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
Returns: IObservable
15. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
Returns: IObservable
16. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
Returns: IObservable
17. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | string | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
absoluteExpiration | DateTimeOffset? | An optional expiration date for the cached data. |
Returns: IObservable
18. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, bool fetchAlways)
Summary: Downloads a URL under an explicit cache key, optionally bypassing the cache.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The cache to read from and write to. |
key | string | The cache key to store the response under. |
url | string | The URL to download. |
fetchAlways | bool | Whether to bypass the cache and always fetch. |
Returns: IObservable
19. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | Uri | The URL to download from. |
Returns: IObservable
20. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
Returns: IObservable
21. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
Returns: IObservable
22. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
Returns: IObservable
23. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)
Summary: Downloads data from a URL and caches it using a custom cache key.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to store the downloaded data. |
key | string | The custom key to use for the cache entry. |
url | Uri | The URL to download from. |
method | HttpMethod? | The HTTP method to use for the request. |
headers | IEnumerable | Optional HTTP headers to include in the request. |
fetchAlways | bool | A value indicating whether to always fetch from the web, bypassing the cache. |
absoluteExpiration | DateTimeOffset? | An optional expiration date for the cached data. |
Returns: IObservable
24. Overload¶
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, bool fetchAlways)
Summary: Downloads a URL under an explicit cache key, optionally bypassing the cache.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The cache to read from and write to. |
key | string | The cache key to store the response under. |
url | Uri | The URL to download. |
fetchAlways | bool | Whether to bypass the cache and always fetch. |
Returns: IObservable