HTTP

Frends.HTTP.DownloadFile / 1.5.0

Summary

Fetches a URL and streams the response straight into a file, so the payload never has to sit in the Process's memory.

Typical use — large downloads, where the general request Task would hold the whole body in memory

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input class

Name Type Default Example Description
Url String https://example.org/path/to https://example.org/path/to

The URL with protocol and path. You can include query parameters directly in the URL.

Headers Header[] [ { Name = "Content-Type", Value = "application/json" }, { Name = "Accept", Value = "application/json" } ]

List of HTTP headers to be added to the request.

FilePath String C:\\temp\example.txt

Exact location and name of the file to be created.

An unhandled error has occurred. Reload 🗙