funkspector v0.1.3 Funkspector.Resolver

Provides a method to follow URL redirections, returning the final URL.

Summary

Functions

Given a URL, it will follow the redirections and return the final URL and the final response

Functions

resolve(url, max_redirects \\ 5, response \\ %{})

Given a URL, it will follow the redirections and return the final URL and the final response.

Examples

iex> { :ok, final_url, _response } = Funkspector.Resolver.resolve("http://github.com")
iex> final_url
"https://github.com/"