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

HttpService.DownloadUrl(IBlobCache, string) method

Defined in

Type: HttpService Namespace: Akavache Assembly: Akavache.HttpDownloader.dll

Applies to

net11.0, net11.0-ios27.2, net11.0-android37.0, net11.0-windows10.0.19041, net11.0-macos27.2, net11.0-maccatalyst27.2, net10.0, net10.0-android36.0, net10.0-windows10.0.19041, net10.0-maccatalyst26.0, net10.0-ios26.0, net10.0-macos26.0, net472, net47, net471, net48, net481

Overloads

  1. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url)

  2. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method)

  3. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

  4. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

  5. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

  6. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, bool fetchAlways)

  7. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url)

  8. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method)

  9. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

  10. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

  11. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

  12. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, bool fetchAlways)

  13. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url)

  14. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method)

  15. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

  16. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

  17. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

  18. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, bool fetchAlways)

  19. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url)

  20. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method)

  21. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

  22. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

  23. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

  24. public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, bool fetchAlways)

1. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

Summary: Downloads data from a URL and caches it, using the URL as the cache key.

Parameters

NameTypeDescription
blobCache[IBlobCache](#Akavache.IBlobCache)The blob cache to store the downloaded data.
urlstring (opens in a new tab)The URL to download from.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

2. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

3. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

4. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

5. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset? (opens in a new tab)An optional expiration date for the cached data.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

6. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlstring (opens in a new tab)The URL to download.
fetchAlwaysbool (opens in a new tab)Whether to bypass the cache and always fetch.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded bytes.

7. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlUri (opens in a new tab)The URL to download from.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

8. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

9. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

10. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

11. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset? (opens in a new tab)An optional expiration date for the cached data.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

12. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
urlUri (opens in a new tab)The URL to download.
fetchAlwaysbool (opens in a new tab)Whether to bypass the cache and always fetch.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded bytes.

13. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlstring (opens in a new tab)The URL to download from.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

14. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

15. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

16. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

17. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlstring (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset? (opens in a new tab)An optional expiration date for the cached data.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

18. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The cache key to store the response under.
urlstring (opens in a new tab)The URL to download.
fetchAlwaysbool (opens in a new tab)Whether to bypass the cache and always fetch.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded bytes.

19. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlUri (opens in a new tab)The URL to download from.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

20. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

21. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

22. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

23. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways, DateTimeOffset? absoluteExpiration)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The custom key to use for the cache entry.
urlUri (opens in a new tab)The URL to download from.
methodHttpMethod? (opens in a new tab)The HTTP method to use for the request.
headersIEnumerable>? (opens in a new tab)Optional HTTP headers to include in the request.
fetchAlwaysbool (opens in a new tab)A value indicating whether to always fetch from the web, bypassing the cache.
absoluteExpirationDateTimeOffset? (opens in a new tab)An optional expiration date for the cached data.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded byte data.

24. Overload

public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, bool fetchAlways)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IHttpService. The member doesn't override them on this type.

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.
keystring (opens in a new tab)The cache key to store the response under.
urlUri (opens in a new tab)The URL to download.
fetchAlwaysbool (opens in a new tab)Whether to bypass the cache and always fetch.

Returns: IObservable (opens in a new tab) -- An observable that emits the downloaded bytes.