RemotePersistentTerm.Fetcher.Http (RemotePersistentTerm v0.7.1)
View SourceA Fetcher implementation for HTTP.
Summary
Functions
Initialize a HTTP Fetcher.
Types
@type t() :: %RemotePersistentTerm.Fetcher.Http{ http_cache?: boolean(), min_refresh_interval_ms: pos_integer(), url: String.t() }
Functions
Initialize a HTTP Fetcher.
Options:
:url(String.t/0) - Required. The url from which the remote term is downloaded.:http_cache(keyword/0) - Configuration options for the HTTP Caching spec. The default value is[].:enabled?(boolean/0) - If true, the HTTP Caching spec will be used to schedule the next download and:refresh_intervalcan be omitted. The default value isfalse.:min_refresh_interval_ms(non_neg_integer/0) - The minimum time in milliseconds between refreshes. This value is only used ifhttp_cache.enabled?is true. The default value is30000.