Lazily make the request. Helps avoid unhandled promise rejections when the request fails before a pipe or iterator handler is attached.
Convenience method for piping to a sink and waiting for writing to finish.
This method must not be used alongside getStream or AsyncIterable.
Generated using TypeDoc
A
Downloadis the result of callingparcel.downloadDocumentordocument.download().The downloaded data can be read using async iterable
for await (const chunk of download), or by callingawait download.pipeTo(sink).The download may be aborted by calling
download.destroy(), as with anyReadable.