Partial Downloads with Enumerators and Fibers
When developing Shrine, I needed to determine the MIME type of a remote file. Since this information is written only in the beginning of the file, I wanted to avoid having to download the whole file. So I wanted to share with you how I managed to have only an arbitrary part of a remote file downloaded using net/http.
Post a comment