Store class that uses HTTP requests.
Read-only. Depends on the crul package.
Methods
Inherited methods
Method new()
Create a HttpStore object
Usage
HttpStore$new(url, options = NA, headers = NA)
Arguments
url
(character(1))
URL of the store.
options
(list() or NA)
Options passed to crul.
headers
(list() or NA)
Headers passed to crul.
Returns
A new HttpStore object.
Method get_item()
Get an item from the store.
Returns
The item data in a vector of type raw.
Method contains_item()
Determine whether the store contains an item.
Usage
HttpStore$contains_item(item)
Method listdir()
Fetches .zmetadata from the store evaluates its names
Returns
Character vector of unique keys that do not start with a ..
Method get_cache_time_seconds()
Get cache time of http requests.
Usage
HttpStore$get_cache_time_seconds()
Method set_cache_time_seconds()
Set cache time of http requests.
Usage
HttpStore$set_cache_time_seconds(seconds)
Arguments
seconds
Number of seconds until cache is invalid – 0 for no cache.
Returns
NULL (called for side effects).
Method get_store_identifier()
Print a human-readable summary of the store.
Return the store URL for zarrs dispatch.
Usage
HttpStore$get_store_identifier()
Returns
A character string.
Returns
self (invisibly).
Method clone()
The objects of this class are cloneable with this method.
Usage
HttpStore$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.