HTMLSource returns a rendered HTML document. This package keeps parsing separate from transport so browser-backed and non-browser sources can be swapped without touching the retry or parser logic.
| 28 | // This package keeps parsing separate from transport so browser-backed and |
| 29 | // non-browser sources can be swapped without touching the retry or parser logic. |
| 30 | type HTMLSource interface { |
| 31 | Fetch(ctx context.Context) (string, error) |
| 32 | } |
| 33 | |
| 34 | // HTTPSource is a minimal transport that fetches the raw homepage over HTTP. |
| 35 | // It is suitable for wiring and tests, but it does not execute client-side JS. |