Foresight.HTML (Foresight v0.2.4) View Source
This module contains functions to fetch HTML documents.
Link to this section Summary
Functions
Takes a %HTTPoison.Response{}
and returns the body
, otherwise nil
Takes a URL and returns the HTML document if found.
Takes a URL, and returns a {:ok, %HTTPoison.Response{}}
tuple, or {:error, reason}
if something goes wrong.
It follows redirects to a maximum of 5 in total. This is necessary on e.g. https://google.com
Bang! version of get_url
Takes a URL, and returns a %HTTPoison.Response{} or throws an error.
It follows redirects to a maximum of 5 in total. This is necessary on e.g. https://google.com
Link to this section Functions
Takes a %HTTPoison.Response{}
and returns the body
, otherwise nil
Takes a URL and returns the HTML document if found.
Takes a URL, and returns a {:ok, %HTTPoison.Response{}}
tuple, or {:error, reason}
if something goes wrong.
It follows redirects to a maximum of 5 in total. This is necessary on e.g. https://google.com
Bang! version of get_url
Takes a URL, and returns a %HTTPoison.Response{} or throws an error.
It follows redirects to a maximum of 5 in total. This is necessary on e.g. https://google.com