DopplerConfigProvider.HTTPClient behaviour (doppler_config_provider v0.2.1) View Source

HTTP client behaviour. Any HTTP client module supplied to this config provider must implement a request/2 function that returns either :ok or :error tuples matching the specified types.

Link to this section Summary

Link to this section Types

Specs

headers() :: [{String.t(), String.t()}]

Specs

response() :: %{status_code: pos_integer(), body: binary()}

Specs

url() :: String.t()

Link to this section Callbacks

Specs

request(url(), headers()) :: {:ok, response()} | {:error, any()}