Documentation
¶
Index ¶
- func CheckHTTPSOnlyNavigation(ctx context.Context) error
- func KnownMutationReceiptRoute(endpoint *url.URL) bool
- func NewBody(ctx context.Context, handle browserio.StreamHandle, close func() error, ...) io.ReadCloser
- func PrepareHTTPSOnlyProfile(profile string) error
- func RangeHeaders(headers network.Headers, value string) []*fetch.HeaderEntry
- func ReadPublicDocument(ctx, browser context.Context, entryURL, pathPrefix, expression string) (string, error)
- func ResponseHeaders(entries []*fetch.HeaderEntry) http.Header
- func StartHTTPSProxy(ctx context.Context) (string, func() error, error)
- func TransferFailure(caller, setup context.Context, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHTTPSOnlyNavigation ¶ added in v0.2.0
CheckHTTPSOnlyNavigation verifies native navigation denial in an initialized Chromium tab before it opens the provider's website.
func KnownMutationReceiptRoute ¶ added in v0.2.0
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
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
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.
Types ¶
This section is empty.