curl->download
Downloads a resource.
Target
Signature
1curl->download(f::string= ?, -asBytes::boolean= ?)Downloads a resource.
curl->download is called with member syntax on a receiver value. curl->download performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.
Parameters
f- Optional value of type
string. Supplyfpositionally unless the signature shows a keyword form. -asBytes- Optional value of type
boolean. Supply-asBytesby keyword, keeping the leading hyphen in the call.
Examples
Basic call
1curl('https://example.com/file.txt')->download('/tmp/file.txt')The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.