Data.download
Data.downloadurifilemethodheaders
Group: Input
Documentation
Fetches from the provided URI and if successful writes to the file. Returns an error if the status code does not represent a successful response.
Arguments
- uri: The URI to fetch.
- file: The file to write the response to.
- method: The HTTP method to use. Must be one of- HTTP_Method.Get,- HTTP_Method.Head,- HTTP_Method.Delete,- HTTP_Method.Options. Defaults to- HTTP_Method.Get.
- headers: The headers to send with the request. Defaults to an empty vector.