Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface default.Page.SetDownloadBehaviorRequest
import { type default } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { SetDownloadBehaviorRequest } = default.Page;

Properties

behavior: "deny" | "allow" | "default"

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

optional
downloadPath: string

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