OptionalbytesBytes written; present on success.
Optionalcancelledtrue when the download was cancelled by http.abort; absent otherwise.
OptionalcodeThe error code, as in http:response. Present on failure.
OptionalerrorWhy the download failed; present on failure.
OptionalpathThe file written, with path variables expanded; present on success.
Id from the receipt.
OptionalstatusHTTP status code: on success that of the response; on failure only when a redirect was refused under redirect: "error", that of the redirect.
Whether the file was written. A response with an error status such as 404 is saved and counts as a success.
Payload of the
http:downloadCompleteevent. The outcome ofhttp.downloadwithasync: true, carrying the receipt'srequestId. On success it has the fields of a synchronous download; on failureerrorandcode. Delivered likehttp:response.