HTTP/FTP fetch content as a range of chunks.
A range of chunks is returned when the request is complete. If the method or other request properties is to be customized then set the conn parameter with a HTTP/FTP instance that has these properties set.
The url to receive content from
The size of each chunk
The connection to use e.g. HTTP or FTP.
A range of ubytechunkSize with the content of the resource pointer to by the URL
import std.net.curl, std.stdio; foreach (chunk; byChunk("dlang.org", 100)) writeln(chunk); // chunk is ubyte[100]
See Implementation
HTTP/FTP fetch content as a range of chunks.
A range of chunks is returned when the request is complete. If the method or other request properties is to be customized then set the conn parameter with a HTTP/FTP instance that has these properties set.