TimeZoneInfo.Downloader behaviour (TimeZoneInfo v0.5.4) View Source
The behaviour for downloaders.
Link to this section Summary
Link to this section Types
Specs
download() :: {:ok, mode(), {status_code(), binary()}}
Specs
HTTP headers.
Specs
mode() :: :iana | :etf | :ws
The mode to download the data.
Possible modes:
:ianadownloads the data as a zipped tar archive in IANA format.:etfdownloads the data as a compressed file in theTimeZoneInfoExternal Term Format.:wsdownloads the data from a web service. In this mode, the configuration is sent to the server. The returned data is transformed according to the config on the server and comes in the same format as in the mode:etf.
Specs
Specs
status_code() :: non_neg_integer()
HTTP status code