Interface IAkavacheHttpMixin
- Namespace
- Akavache
- Assembly
- Akavache.Core.dll
A interface that represents a mixin for providing HTTP functionality.
- Extension Methods
Methods
DownloadUrl(IBlobCache, HttpMethod, string, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, HttpMethod method, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
method
HttpMethod The type of method.
url
stringThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, HttpMethod, string, string, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, HttpMethod method, string key, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
method
HttpMethod The type of method.
key
stringThe key to use for the download cache entry.
url
stringThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, HttpMethod, string, Uri, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, HttpMethod method, string key, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
method
HttpMethod The type of method.
key
stringThe key to use for the download cache entry.
url
UriThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, HttpMethod, Uri, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, HttpMethod method, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
method
HttpMethod The type of method.
url
UriThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, string, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
url
stringThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, string, string, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
key
stringThe key to use for the download cache entry.
url
stringThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, string, Uri, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
key
stringThe key to use for the download cache entry.
url
UriThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.
DownloadUrl(IBlobCache, Uri, IDictionary<string, string>?, bool, DateTimeOffset?)
Gets a observable for a download.
IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, IDictionary<string, string>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
Parameters
blobCache
IBlobCache The blob cache where to get the value from if available.
url
UriThe url where to get the resource if not available in the cache.
headers
IDictionary<string, string>The headers to use in the HTTP action.
fetchAlways
boolIf we should just fetch and not bother checking the cache first.
absoluteExpiration
DateTime ?Offset A optional expiration date time.
Returns
- IObservable<byte[]>
A observable that signals when there is byte data.