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.
nowis the clock, in milliseconds. - fetch_
icon_ with fetch_iconwithlookupstanding 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.