browseroptions

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 4 Imported by: 1 module, 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

Overview

Package browseroptions contains more "advanced" options to pass to the browser.

These were extracted to a separate package to avoid adding unnecessary dependencies to the root browser package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchDelay

func FetchDelay(d time.Duration) browser.BrowserOption

FetchDelay defines the simulated delay from issuing a fetch request until the response is available in simulated time.

Warning: Using both FetchDelay and FetchRequestOptions will cause undefined behaviour. If you need to explicitly control delay for individual requests, use FetchRequestOptions, and let it fall back to a default delay for requests not explicitly handled.

func SetDefaultFetchDelay

func SetDefaultFetchDelay(d time.Duration)

SetDefaultFetchDelay overrides the default delay for HTTP response processing.

Note: This is a global default, and should only ever be set in a init function; and preferably not at all. If the delay affects the outcome of a test, the test should explicitly control that delay.

Types

type FetchRoundtripOptions

type FetchRoundtripOptions = fetch.RoundtripOptions

FetchRoundtripOptions describes properties for an individual fetch request.

type InitFetchRoundtripOptionsFunc

type InitFetchRoundtripOptionsFunc = fetch.InitRoundTripOptionsFunc

Jump to

Keyboard shortcuts

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