ruby - Serving large static files with Sinatra -


sinatra can serve files static directory set :public, 'your_directory' command, how can replicate in new route?

importantly, new route needs respect byte ranges too! ideas? feel should able leverage present code in static serve part of sinatra.

i think can use send_file (see here) - if has other suggestions have open ears!


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -