Elixir package to check whether a given url is up.
Add the package as a dependency in your Elixir project using something along the lines of:
defp deps do
[{:database_url, "~> 0.1.0"}]
end
And add :httpotion
in your OTP application.
Then you can open iex -S mix
and try it:
IsUp.check("https://google.com") # => true
IsUp.check("https://someurlthatdoesnotexist.foobar") # => false
mix test
MIT
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).