funkspector v0.9.1 Funkspector.Resolver
Provides a method to follow URL redirections, returning the final URL.
Link to this section Summary
Functions
Given a URL, it will follow the redirections and return the final URL and the final response.
Link to this section Functions
Link to this function
resolve(url, options \\ %{})
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/"