browser

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 25 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHTTPSOnlyNavigation added in v0.2.0

func CheckHTTPSOnlyNavigation(ctx context.Context) error

CheckHTTPSOnlyNavigation verifies native navigation denial in an initialized Chromium tab before it opens the provider's website.

func KnownMutationReceiptRoute added in v0.2.0

func KnownMutationReceiptRoute(endpoint *url.URL) bool

KnownMutationReceiptRoute identifies provider endpoints whose structured file mutation receipts may be labelled as plain text. The caller decides whether to capture them and interprets their actual result.

func NewBody

func NewBody(ctx context.Context, handle browserio.StreamHandle, close func() error, failure error, remaining int64, checkEOF bool) io.ReadCloser

NewBody reads a browser-owned stream and delegates closing it to close. A negative remaining size represents an unknown length.

func PrepareHTTPSOnlyProfile added in v0.2.0

func PrepareHTTPSOnlyProfile(profile string) error

PrepareHTTPSOnlyProfile sets the navigation limits of a dedicated Chromium profile. The caller must hold exclusive ownership and close its browser first.

func RangeHeaders

func RangeHeaders(headers network.Headers, value string) []*fetch.HeaderEntry

RangeHeaders copies request headers and replaces any Range field.

func ReadPublicDocument added in v0.2.0

func ReadPublicDocument(ctx, browser context.Context, entryURL, pathPrefix, expression string) (string, error)

ReadPublicDocument evaluates an expression on a public page in an isolated browser context without the mounted account's cookies.

func ResponseHeaders

func ResponseHeaders(entries []*fetch.HeaderEntry) http.Header

ResponseHeaders projects CDP response headers into HTTP headers.

func StartHTTPSProxy added in v0.2.0

func StartHTTPSProxy(ctx context.Context) (string, func() error, error)

StartHTTPSProxy starts a loopback CONNECT proxy for one browser launch. Configure that browser with proxy-server set to the returned address and proxy-bypass-list set to <-loopback>. The browser remains responsible for TLS. Closing the proxy ends its listener and active tunnels.

func TransferFailure

func TransferFailure(caller, setup context.Context, message string) error

TransferFailure reports caller cancellation before browser setup failure.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL