Packages

A CLI tool to manage package dependencies

Current section

Files

Jump to
wand lib interfaces http.ex
Raw

lib/interfaces/http.ex

defmodule Wand.Interfaces.Http do
@moduledoc false
alias HTTPoison.Response
alias HTTPoison.Error
@type headers :: [{atom, binary}]
@callback get(uri :: binary(), headers) :: {:ok, Response.t()} | {:error, Error.t()}
def impl() do
Application.get_env(:wand, :http, HTTPoison)
end
end