Skip to main content

Module external

Module external 

Source
Expand description

External links: whether each address a page links to outside devpage answers. devpage check asks each address once (twice if it can’t be reached); the preview asks in the background and shows what it has heard, announcing on the change bus when that changes.

How an address is asked is the Ask port, and where the preview’s background asking runs is the Background port: the devpage binary asks the network over HTTP and runs on its runtime; tests answer from a table.

Structs§

External
The external-link checker: one per devpage process, shared by every page.
Waits
How long an address gets to answer, and how the preview retries one that didn’t.

Enums§

Outcome
What asking an external address once found.

Traits§

Ask
Asks an address once, giving it wait to answer.
Background
Where the preview’s background asking runs, and how it waits between tries.

Type Aliases§

Link
One external link: the page it is on, its line, and the address.