> For the complete documentation index, see [llms.txt](https://whl.gitbook.io/masterrr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whl.gitbook.io/masterrr/tools/rack.md).

# Rack

The foundation of Rails and all other significant Ruby-based web frameworks is a simple HTTP adapter library called Rack.

Rack exists to standardise the interface between multiple Ruby Web frameworks and Ruby Web servers.

Rack abstracts away the handling of HTTP requests and responses into a single, simple call method.

Rails leverages Rack middlewares in a modular and extensible manner. Much of Action Controller is implemented as Rack middleware modules.
