DownloadRequest QML Type

Request to download a resource More...

Import Statement: import com.canonical.Oxide 1.15
Since: OxideQt 1.1
Instantiates: OxideQDownloadRequest

Properties

Detailed Description

DownloadRequest represents a request to download a remote resource.

url specifies the location of the remote resource to download.

The application is responsible for performing the actual download.

Note: This API does not make it possible to download URLs that point to resources inside the web engine (eg, blob: or filesystem URLs).

Property Documentation

cookies : list<string>

A list of cookies that the application should use when downloading the specified resource. The format of each cookie is a string that can be added to the Cookie header in a HTTP request.


referrer : string

The spec of the referrer URL that the application should specify when downloading the resource.


suggestedFilename : string

The suggested name of the destination file. This corresponds to the value of the download attribute if this download request is triggered from a HTML anchor element, or the value of the filename attribute if the download request is triggered by a response with a Content-Disposition: attachment header.


url : url

The url of the resource to download.


userAgent : string

The user agent string that the application should use when downloading the specified resource.