time_zone_info v0.1.1 TimeZoneInfo.Downloader behaviour View Source

The behaviour for downloaders.

Link to this section Summary

Types

The expected format for the download.

HTTP headers.

Link to this section Types

Link to this type

download()

View Source
download() :: {:ok, format(), binary()}
Link to this type

format()

View Source
format() :: :iana | :etf

The expected format for the download.

TimeZoneInfo expected for

Link to this type

headers()

View Source
headers() :: [{header_name :: String.t(), header_value :: String.t()}]

HTTP headers.

Link to this type

opts()

View Source
opts() :: [headers: headers(), format: format()]

Link to this section Functions

Link to this section Callbacks

Link to this callback

download(uri, opts)

View Source
download(uri :: URI.t(), opts :: opts()) :: {:ok, binary()} | {:error, term()}