View Source RemotePersistentTerm.Fetcher.Http (RemotePersistentTerm v0.6.0)
A Fetcher implementation for HTTP.
Link to this section Summary
Functions
Initialize a HTTP Fetcher.
Link to this section Types
@type t() :: %RemotePersistentTerm.Fetcher.Http{ http_cache?: boolean(), min_refresh_interval_ms: pos_integer(), url: String.t() }
Link to this section 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_interval
can 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
.