DownloadResult · Node.js
Response metadata and bytes actually retained/written. Check status and resumed explicitly.
In this guide
Purpose and lifecycle
Response metadata and bytes actually retained/written. Check status and resumed explicitly.
Definition and availability
Source snapshot: 1.0.0-alpha.3. Package export. Declared in source; this is not a runtime test result.
Signatures and source locations are generated from the SDK wrappers. Clean snapshots link to the recorded commit. Modified snapshots link to main, which may differ; file hashes identify the local inputs.
export interface DownloadResult {
/** The final URL after any redirects. */
url: string;
/** HTTP response status code. */
status: number;
/** Number of bytes written to the output. */
bytesWritten: number;
/** MIME type from `Content-Type`, or `application/octet-stream`. */
contentType: string;
/** Filename hint from `Content-Disposition` or the URL's last path segment. */
suggestedFilename?: string;
/** `true` if the server honored a `Range:` request and returned `206`. */
resumed: boolean;
}Members
| Member | Kind | Return / value type | Source status |
|---|---|---|---|
| url | property | string | Present in source |
| status | property | number | Present in source |
| bytesWritten | property | number | Present in source |
| contentType | property | string | Present in source |
| suggestedFilename | property | string | undefined | Present in source |
| resumed | property | boolean | Present in source |
url
The final URL after any redirects.
Returns / value: string.
url: string;status
HTTP response status code.
Returns / value: number.
status: number;bytesWritten
Number of bytes written to the output.
Returns / value: number.
bytesWritten: number;contentType
MIME type from `Content-Type`, or `application/octet-stream`.
Returns / value: string.
contentType: string;suggestedFilename
Filename hint from `Content-Disposition` or the URL's last path segment.
Returns / value: string | undefined.
suggestedFilename?: string;resumed
`true` if the server honored a `Range:` request and returned `206`.
Returns / value: boolean.
resumed: boolean;Errors and operational limits
See the consuming API for validation and failure behavior. Types and enum declarations do not perform network requests by themselves.
Source availability, package publication and runtime validation are separate facts. These pages describe the source snapshot, not a claim that all platforms or every API path have passed production acceptance.