Rack is a Ruby web server interface that sits between web servers handling HTTP requests and Ruby applications. It provides a minimal interface for building web servers that cleanly separates the concerns of web service from the application logic. Rack uses middleware as hooks that process requests and responses, allowing additional functionality to be added to any Rack application. Common Ruby frameworks like Rails are built on Rack and utilize its middleware architecture.
25. @happynoff http://www.tinci.fr
use Rack::Sendfile
use ActionDispatch::Static
use Rack::Lock
use #<ActiveSupport::Cache::Strategy::…>
use Rack::Runtime
use Rack::MethodOverride
use ActionDispatch::RequestId
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
use WebConsole::Middleware
use ActionDispatch::DebugExceptions
use ActionDispatch::RemoteIp
use ActionDispatch::Reloader
use ActionDispatch::Callbacks
use ActiveRecord::Migration::CheckPending
use ActiveRecord::ConnectionAdapters::…
use ActiveRecord::QueryCache
use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
use Rack::Head
use Rack::ConditionalGet
use Rack::ETag
run MyApp::Application.routes