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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -