Documentation
¶
Overview ¶
Package fetch gets the bytes of a page. It has two backends: a plain HTTP client (the fast default) and a headless-browser renderer that reuses kage's Chrome pool. The auto policy fetches statically first and escalates to the browser only when the static DOM looks empty or JavaScript-gated.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
Fetcher fetches pages with a static client, a renderer, or static-first auto escalation. It is safe for concurrent use; the browser pool it owns launches Chrome once and is shared across every Fetch.
type Mode ¶
type Mode string
Mode mirrors yomi's render mode without importing the yomi package, keeping fetch a leaf.
Click to show internal directories.
Click to hide internal directories.