cavaliergopher / grab

A download manager package for Go
BSD 3-Clause "New" or "Revised" License
1.38k stars 151 forks source link

Proposal: support new request to writer #87

Open gonejack opened 3 years ago

gonejack commented 3 years ago

It will be more easy to migrate from code like io.Copy(writer, resp.Body) to grab if grab supports new download to an opened writer.

grab.NewRequestToWriter(writer io.Writer, url string)
cellargalaxy commented 2 years ago

yes, it is a good feature, i would also like to support this feature

opensaucerer commented 9 months ago

@gonejack @cellargalaxy check this out. I just added support for grab.NewRequestToWriter. https://github.com/opensaucerer/grab#this-extended-version-of-the-original-cavaliergophergrab-now-allows-you-to-download-files-into-a-given-iowriter