Skip to content

},System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})}

HttpExtensions.DownloadUrl(IBlobCache, string, HttpMethod?, IEnumerable>?, bool, DateTimeOffset?) method

Defined in

Type: HttpExtensions Namespace: ReactiveMarbles.CacheDatabase.Core Assembly: ReactiveMarbles.CacheDatabase.Core.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
  • 2. public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
  • 3. public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string key, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
  • 4. public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string key, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)

1. Overload

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

View source

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to perform the operation on.
urlstringThe URL to download.
method = nullHttpMethod?The method.
headers = nullIEnumerable>?An optional Dictionary containing the HTTP request headers.
fetchAlways = falseboolForce a web request to always be issued, skipping the cache.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- The data downloaded from the URL.

2. Overload

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

View source

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to perform the operation on.
urlUriThe URL to download.
method = nullHttpMethod?The method.
headers = nullIEnumerable>?An optional Dictionary containing the HTTP request headers.
fetchAlways = falseboolForce a web request to always be issued, skipping the cache.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- The data downloaded from the URL.

3. Overload

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

View source

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to perform the operation on.
keystringThe key to store with.
urlstringThe URL to download.
method = nullHttpMethod?The method.
headers = nullIEnumerable>?An optional Dictionary containing the HTTP request headers.
fetchAlways = falseboolForce a web request to always be issued, skipping the cache.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- The data downloaded from the URL.

4. Overload

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

View source

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

NameTypeDescription
blobCache[IBlobCache](#The blob cache to perform the operation on.
keystringThe key to store with.
urlUriThe URL to download.
method = nullHttpMethod?The method.
headers = nullIEnumerable>?An optional Dictionary containing the HTTP request headers.
fetchAlways = falseboolForce a web request to always be issued, skipping the cache.
absoluteExpiration = nullDateTimeOffset?An optional expiration date.

Returns: IObservable -- The data downloaded from the URL.