})} },System.Boolean)} })} },System.Boolean)}
RelativeTimeDownloadExtensions.DownloadUrl(IBlobCache, string, HttpMethod, TimeSpan) method¶
Defined in
Type: RelativeTimeDownloadExtensions 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¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration)public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers)public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration)public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers)public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
1. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration)
View source (opens in a new tab)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](#Akavache.IBlobCache) | -- |
url | string (opens in a new tab) | -- |
httpMethod | HttpMethod (opens in a new tab) | -- |
expiration | TimeSpan (opens in a new tab) | -- |
Returns: IObservable
2. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers)
View source (opens in a new tab)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | string (opens in a new tab) | -- |
httpMethod | HttpMethod (opens in a new tab) | -- |
expiration | TimeSpan (opens in a new tab) | -- |
headers | IEnumerable | -- |
Returns: IObservable
3. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
View source (opens in a new tab)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | string (opens in a new tab) | -- |
httpMethod | HttpMethod (opens in a new tab) | -- |
expiration | TimeSpan (opens in a new tab) | -- |
headers | IEnumerable | -- |
fetchAlways | bool (opens in a new tab) | -- |
Returns: IObservable
4. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration)
View source (opens in a new tab)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | Uri (opens in a new tab) | -- |
httpMethod | HttpMethod (opens in a new tab) | -- |
expiration | TimeSpan (opens in a new tab) | -- |
Returns: IObservable
5. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers)
View source (opens in a new tab)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | Uri (opens in a new tab) | -- |
httpMethod | HttpMethod (opens in a new tab) | -- |
expiration | TimeSpan (opens in a new tab) | -- |
headers | IEnumerable | -- |
Returns: IObservable
6. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers, bool fetchAlways)
View source (opens in a new tab)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | Uri (opens in a new tab) | -- |
httpMethod | HttpMethod (opens in a new tab) | -- |
expiration | TimeSpan (opens in a new tab) | -- |
headers | IEnumerable | -- |
fetchAlways | bool (opens in a new tab) | -- |
Returns: IObservable