pinger v0.1.1 Pinger.Dispatcher

Dispacher is responsible to dispatch http request and check if http target is valid

Summary

Functions

Check the http address to see if is a valid address

Dispatch a http request

Functions

check_address(target)

Check the http address to see if is a valid address

Example

iex> Pinger.Target.get_google |> Pinger.Dispatcher.check_address
{:ok, true}
dispatch(target)

Dispatch a http request

Example

iex> Pinger.Target.get_google
...> |> Pinger.Dispatcher.dispatch
{:ok, 200}