[WIP] Implement growth assessment using WHO indicators #80
@ -240,7 +240,16 @@ defmodule Growth.Indicators.Download do
|
||||
end
|
||||
|
||||
def fetch!(url) do
|
||||
case Req.get(url) do
|
||||
req =
|
||||
[url: url]
|
||||
|> Keyword.merge(
|
||||
:wabanex
|
||||
|> Application.get_env(__MODULE__, [])
|
||||
|> Keyword.get(:who_req_options, [])
|
||||
)
|
||||
|> Req.new()
|
||||
|
||||
case Req.get(req) do
|
||||
{:ok, %{status: 200, body: body}} ->
|
||||
body
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user