Skip to main content

Module icon

Module icon 

Source
Expand description

A site’s icon, for the dashboard header: the best icon its home page links to, or /favicon.ico. Fetched from the site’s own configured origin (never from request input), cached in memory for a day.

Structs§

Icon
An icon: its bytes and its media type (TypeScript’s { body, type }).

Functions§

fetch_icon
The site’s icon, or None when it has none that can be fetched. now is the clock, in milliseconds.
fetch_icon_with
fetch_icon with lookup standing in for DNS, in tests.
icon_links
Icon URLs a page links to, best first: apple-touch-icon, then SVG and PNG icons, then any icon.