RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in