ReloadRequest

@Serializable
data class ReloadRequest(val ignoreCache: Boolean? = null, val scriptToEvaluateOnLoad: String? = null, val loaderId: LoaderId? = null)

Request object containing input parameters for the PageDomain.reload command.

Constructors

Link copied to clipboard
constructor(ignoreCache: Boolean? = null, scriptToEvaluateOnLoad: String? = null, loaderId: LoaderId? = null)

Types

Link copied to clipboard
class Builder

A builder for ReloadRequest, which allows setting the optional parameters of the PageDomain.reload command via a lambda.

Properties

Link copied to clipboard
val ignoreCache: Boolean? = null

If true, browser cache is ignored (as if the user pressed Shift+refresh).

Link copied to clipboard
val loaderId: LoaderId? = null

If set, an error will be thrown if the target page's main frame's loader id does not match the provided id. This prevents accidentally reloading an unintended target in case there's a racing navigation.

Link copied to clipboard

If set, the script will be injected into all frames of the inspected page after reload. Argument will be ignored if reloading dataURL origin.