got a Rack::File which support range request

1 view
Skip to first unread message

Jerome Etienne

unread,
Apr 30, 2010, 11:37:42 AM4/30/10
to rack-...@googlegroups.com
Hello,

i needed to get Rack::File to support range request. so i coded it. you can find the code here


hope this help, and that it gonna be included.

(im not subscribed to the mailing list)

---
http://urfastr.net Making the web faster for you!

Eric Wong

unread,
May 1, 2010, 1:41:49 AM5/1/10
to rack-...@googlegroups.com, Jerome Etienne
Jerome Etienne <jerome....@gmail.com> wrote:
> Hello,
>
> i needed to get Rack::File to support range request. so i coded it. you can
> find the code here
>
> http://github.com/jeromeetienne/rack/blob/master/contrib/rack_file_rangeok.rb
>
> hope this help, and that it gonna be included.

Cool! I was hoping to (eventually) get around to doing this as
middleware myself. It'd be more powerful as midddleware since it can
affect all responses, not just static files.

As middleware, it would wrap the response body #each method and only
yield the desired byte ranges.

--
Eric Wong

James Tucker

unread,
May 20, 2010, 11:30:05 AM5/20/10
to rack-...@googlegroups.com
Interesting idea.

>
> --
> Eric Wong

Reply all
Reply to author
Forward
0 new messages