Iconic v0.1.1 Icon.Fetch View Source

Icon fetching module.

Link to this section Summary

Functions

Fetch all the icons from a page

Link to this section Functions

Fetch all the icons from a page

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

  • [Icon.Parse.Icon.t()] if it discovered icons
  • [] if it failed or no icon discovered

Examples

iex> Icon.Fetch.fetch("www.foo.com")
[%Icon.Parse.Icon{href: "http://www.foo.com/favicon.ico"}]