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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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