})} },System.Boolean)} })} },System.Boolean)}
RelativeTimeDownloadExtensions.DownloadUrl(IBlobCache, string, HttpMethod, TimeSpan) method¶
Defined in
Type: RelativeTimeDownloadExtensions
Namespace: Akavache
Assembly: Akavache.HttpDownloader.dll
Applies to
net10.0, net10.0-ios26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net9.0, net9.0-windows10.0.19041, net8.0, net8.0-windows10.0.19041, net462, 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)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | string | -- |
httpMethod | HttpMethod | -- |
expiration | TimeSpan | -- |
Returns: IObservable
2. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | string | -- |
httpMethod | HttpMethod | -- |
expiration | TimeSpan | -- |
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)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | string | -- |
httpMethod | HttpMethod | -- |
expiration | TimeSpan | -- |
headers | IEnumerable | -- |
fetchAlways | bool | -- |
Returns: IObservable
4. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | Uri | -- |
httpMethod | HttpMethod | -- |
expiration | TimeSpan | -- |
Returns: IObservable
5. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | Uri | -- |
httpMethod | HttpMethod | -- |
expiration | TimeSpan | -- |
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)
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | -- |
url | Uri | -- |
httpMethod | HttpMethod | -- |
expiration | TimeSpan | -- |
headers | IEnumerable | -- |
fetchAlways | bool | -- |
Returns: IObservable