Expand description
Servo browser engine facade.
Structs§
- Console
Message - Browser console message captured during page load.
- Crawl
Error - Error from a failed crawl attempt.
- Crawl
Options - Options for crawling a site.
- Crawl
Page - Successfully crawled page.
- Crawl
Result - Result for a single crawled page.
- Fetch
Options - Options for a single page fetch.
- Page
- Rendered page returned by
fetch.
Enums§
- Console
Level - Console message severity.
- Crawl
Status - Status of a crawled page.
Functions§
- crawl
- Crawl a site and collect all results.
- crawl_
each - Crawl a site, invoking
on_pagefor each result as it arrives. - extract_
json - Fetch a URL and return structured JSON.
- fetch
- Fetch a single page via the embedded Servo engine.
- markdown
- Fetch a URL and return readable Markdown.
- text
- Fetch a URL and return plain text (
document.body.innerText). - validate_
url - Validate a URL for fetching. Rejects disallowed schemes and private addresses.