Skip to content

})} },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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlstringThe URL to download from.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset?An optional expiration date for the cached data.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The cache to read from and write to.
urlstringThe URL to download.
fetchAlwaysboolWhether to bypass the cache and always fetch.

Returns: IObservable -- An observable that emits the downloaded bytes.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlUriThe URL to download from.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset?An optional expiration date for the cached data.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The cache to read from and write to.
urlUriThe URL to download.
fetchAlwaysboolWhether to bypass the cache and always fetch.

Returns: IObservable -- An observable that emits the downloaded bytes.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlstringThe URL to download from.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlstringThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset?An optional expiration date for the cached data.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The cache to read from and write to.
keystringThe cache key to store the response under.
urlstringThe URL to download.
fetchAlwaysboolWhether to bypass the cache and always fetch.

Returns: IObservable -- An observable that emits the downloaded bytes.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlUriThe URL to download from.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to store the downloaded data.
keystringThe custom key to use for the cache entry.
urlUriThe URL to download from.
methodHttpMethod?The HTTP method to use for the request.
headersIEnumerable>?Optional HTTP headers to include in the request.
fetchAlwaysboolA value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset?An optional expiration date for the cached data.

Returns: IObservable -- An observable that emits the downloaded byte data.

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

NameTypeDescription
blobCache[IBlobCache](#The cache to read from and write to.
keystringThe cache key to store the response under.
urlUriThe URL to download.
fetchAlwaysboolWhether to bypass the cache and always fetch.

Returns: IObservable -- An observable that emits the downloaded bytes.