},System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})}
HttpService.DownloadUrl(IBlobCache, string, HttpMethod?, IEnumerable>?, bool, DateTimeOffset?) method¶
Defined in
Type: HttpService
Namespace: ReactiveMarbles.CacheDatabase.Core
Assembly: ReactiveMarbles.CacheDatabase.Core.dll
Applies to
netstandard2.0
Overloads¶
- 1.
public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 2.
public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 3.
public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null) - 4.
public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
1. Overload¶
public IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<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 associated with the action. |
url | string | The URL to download. |
method = null | HttpMethod? | The HTTP method. |
headers = null | IEnumerable | 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 IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<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 associated with the action. |
url | Uri | The URL to download. |
method = null | HttpMethod? | The HTTP method. |
headers = null | IEnumerable | 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 IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<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 associated with the action. |
key | string | The key to store with. |
url | string | The URL to download. |
method = null | HttpMethod? | The HTTP method. |
headers = null | IEnumerable | 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 IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<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 associated with the action. |
key | string | The key to store with. |
url | Uri | The URL to download. |
method = null | HttpMethod? | The HTTP method. |
headers = null | IEnumerable | 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