View Source Icon.Fetch (Iconic v0.1.2)
Icon fetching module.
Link to this section Summary
Functions
Fetch all the icons from a page
Link to this section Functions
@spec fetch(String.t()) :: [Icon.Parse.Icon.t()] | []
Fetch all the icons from a page
parameters
Parameters
- url: A URL string that points to the target page. A "http://" will be added automatically if the scheme is missing in the url
returns
Returns
[Icon.Parse.Icon.t()]if it discovered icons[]if it failed or no icon discovered
examples
Examples
iex> Icon.Fetch.fetch("www.foo.com")
[%Icon.Parse.Icon{href: "http://www.foo.com/favicon.ico"}]