Versions in this module Expand all Collapse all v1 v1.9.0 Oct 16, 2026 v1.8.1 Oct 16, 2026 v1.8.0 Oct 15, 2026 v1.5.0 Oct 12, 2026 Changes in this version + const BrowserSnapshotTextLimit + const RenderModeAuto + const RenderModeBrowser + const RenderModeHTTP + var ErrAborted = errors.New("request aborted") + var ErrContentTooLarge = errors.New("content exceeds maximum size") + var ErrDomainBlocked = errors.New("domain is blocked by security policy") + var ErrDomainCheckFailed = errors.New("unable to verify domain safety") + var ErrInvalidURL = errors.New("invalid URL") + var ErrTimeout = errors.New("request timeout") + var ErrTooManyRedirects = errors.New("too many redirects") + var PathPrefixes = webcore.PreapprovedPathPrefixes + var PreapprovedHosts = webcore.PreapprovedHosts + func DefaultHTTPClient(resolver webcore.HostResolver) *http.Client + func Err(msg string) error + func HTMLToMarkdown(html string, baseURL string) string + func IsPreapproved(hostname string) bool + func IsPreapprovedPath(hostname, pathname string) bool + func NewReadCloser(data []byte) io.ReadCloser + func NormalizeRenderMode(raw string) (string, error) + func NormalizeURL(raw string) (string, *url.URL, error) + func ReadBody(resp *http.Response) ([]byte, error) + type Cache = webcore.TTLCache[CacheEntry] + func DefaultCache() *Cache + type CacheEntry struct + BrowserRecommended bool + Bytes int + Code int + CodeText string + Content string + ContentType string + FinalURL string + PersistedPath string + PersistedSize int + type Config struct + ArtifactStore webcore.ArtifactStore + BrowserManager webcore.BrowserManager + Cache *Cache + DecisionCache *DecisionCache + HTTPClient HTTPClient + MaxContentLength int + MaxRedirects int + RenderPoolEnabled bool + RenderPoolMaxSessions int + RenderPoolTTL time.Duration + Resolver webcore.HostResolver + Timeout time.Duration + func DefaultConfig() *Config + type DecisionCache = webcore.TTLCache[string] + func DefaultDecisionCache() *DecisionCache + type FetchedContent = webcore.FetchResponse + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type ReadCloser struct + func (rc *ReadCloser) Close() error + func (rc *ReadCloser) Read(p []byte) (n int, err error) + type RedirectInfo = webcore.RedirectInfo + type Request = webcore.FetchRequest + type Service struct + func NewService(config *Config) *Service + func (s *Service) Fetch(ctx context.Context, request Request) (FetchedContent, error) + func (s *Service) Prepare(request Request) (*fetchPlan, error)