SetDownloadBehaviorRequest

@Serializable
data class SetDownloadBehaviorRequest(val behavior: DownloadBehavior, val downloadPath: String? = null)

Deprecated

Deprecated in the Chrome DevTools protocol

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

Constructors

Link copied to clipboard
constructor(behavior: DownloadBehavior, downloadPath: String? = null)

Types

Link copied to clipboard
class Builder(val behavior: DownloadBehavior)

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

Properties

Link copied to clipboard

Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).

Link copied to clipboard
val downloadPath: String? = null

The default path to save downloaded files to. This is required if behavior is set to 'allow'