# Rack 1.1, a modular Ruby webserver interface

**URL:** <https://www.ruby-forum.com/t/rack-1-1-a-modular-ruby-webserver-interface/181152>\
**Category:** Ruby\
**Created:** [January 6, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/rack-1-1-a-modular-ruby-webserver-interface/181152 "2010-01-06T13:50:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cneuhaus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/34f0e0/32.png) [@cneuhaus](https://www.ruby-forum.com/u/cneuhaus)\
**Post date:** [January 6, 2010, 1:50pm UTC](https://www.ruby-forum.com/t/rack-1-1-a-modular-ruby-webserver-interface/181152/1 "2010-01-06T13:50:32Z")

</div>

Hello,

Today, with a few days delay, we are proud to announce the release of  
Rack 1.1.

= Rack, a modular Ruby webserver interface

Rack provides a minimal, modular and adaptable interface for developing  
web applications in Ruby. By wrapping HTTP requests and responses in  
the simplest way possible, it unifies and distills the API for web  
servers, web frameworks, and software in between (the so-called  
middleware) into a single method call.

The exact details of this are described in the Rack specification,  
which all Rack applications should conform to.

== Specification changes in this release

With Rack 1.1, the Rack specification (found in SPEC) changed in the  
following backward-incompatible ways.

- Rack::VERSION has been pushed to [1,1].
- rack.logger is now specified.
- The SPEC now allows subclasses of the required types.
- rack.input has to be opened in binary mode.

== Changes

- January 3rd, 2009: Ninth public release 1.1.0.
  - Moved Auth::OpenID to rack-contrib.
  - SPEC change that relaxes Lint slightly to allow subclasses of the  
required types
  - SPEC change to document rack.input binary mode in greator detail
  - SPEC define optional rack.logger specification
  - File servers support X-Cascade header
  - Imported Config middleware
  - Imported ETag middleware
  - Imported Runtime middleware
  - Imported Sendfile middleware
  - New Logger and NullLogger middlewares
  - Added mime type for .ogv and .manifest.
  - Don’t squeeze PATH\_INFO slashes
  - Use Content-Type to determine POST params parsing
  - Update Rack::Utils::HTTP\_STATUS\_CODES hash
  - Add status code lookup utility
  - Response should call #to\_i on the status
  - Add Request#user\_agent
  - Request#host knows about forwared host
  - Return an empty string for Request#host if HTTP\_HOST and  
SERVER\_NAME are both missing
  - Allow MockRequest to accept hash params
  - Optimizations to HeaderHash
  - Refactored rackup into Rack::Server
  - Added Utils.build\_nested\_query to complement  
Utils.parse\_nested\_query
  - Added Utils::Multipart.build\_multipart to complement  
Utils::Multipart.parse\_multipart
  - Extracted set and delete cookie helpers into Utils so they can be  
used outside Response
  - Extract parse\_query and parse\_multipart in Request so subclasses  
can change their behavior
  - Enforce binary encoding in RewindableInput
  - Set correct external\_encoding for handlers that don’t use  
RewindableInput

== Where can I get it?

You can download Rack 1.1 at

```
    http://chneukirchen.org/releases/rack-1.1.0.tar.gz
              http://rubyforge.org/projects/rack

```

Alternatively, you can checkout from the development repository with:

```
git clone git://github.com/rack/rack.git
cd rack && git checkout rack-1.1 # for this release

```

== Supported web servers

The included _handlers_ connect all kinds of web servers to Rack:

- Mongrel
- EventedMongrel
- SwiftipliedMongrel
- WEBrick
- FCGI
- CGI
- SCGI
- LiteSpeed
- Thin

These web servers include Rack handlers in their distributions:

- Ebb
- Fuzed
- Glassfish v3
- Phusion Passenger (which is mod\_rack for Apache and for nginx)
- Rainbows!
- Unicorn
- Zbatery

Any valid Rack app will run the same on all these handlers, without  
changing anything.

== Supported web frameworks

The included _adapters_ connect Rack with existing Ruby web frameworks:

- Camping

These frameworks include Rack adapters in their distributions:

- Camping
- Coset
- Halcyon
- Mack
- Maveric
- Merb
- Racktools::SimpleApplication
- Ramaze
- Ruby on Rails
- Rum
- Sinatra
- Sin
- Vintage
- Waves
- Wee
- … and many others.

Current links to these projects can be found at  
[http://wiki.ramaze.net/Home#other-frameworks](http://wiki.ramaze.net/Home#other-frameworks)

== rack-contrib

The plethora of useful middleware created the need for a project that  
collects fresh Rack middleware. rack-contrib includes a variety of  
add-on components for Rack and it is easy to contribute new modules.

- [GitHub - rack/rack-contrib: Contributed Rack Middleware and Utilities](http://github.com/rack/rack-contrib)

== Installing with RubyGems

A Gem of Rack is available at [gemcutter.org](http://gemcutter.org). You can install it with:

```
gem install rack

```

I also provide a local mirror of the gems (and development snapshots)  
at my site:

```
gem install rack --source http://chneukirchen.org/releases/gems/

```

== Contact

Please post bugs, suggestions and patches to  
the bug tracker at [http://rack.lighthouseapp.com/](http://rack.lighthouseapp.com/).

Mailing list archives are available at  
[http://groups.google.com/group/rack-devel](http://groups.google.com/group/rack-devel).

Git repository (send Git patches to the mailing list):

- [GitHub - rack/rack: A modular Ruby web server interface.](http://github.com/rack/rack)
- [http://git.vuxu.org/cgi-bin/gitweb.cgi?p=rack.git](http://git.vuxu.org/cgi-bin/gitweb.cgi?p=rack.git)

You are also welcome to join the #rack channel on [irc.freenode.net](http://irc.freenode.net).  
== Thanks

The Rack Core Team, consisting of

- Christian N. (chneukirchen)
- James T. (raggi)
- Josh P. (josh)
- Michael F. (manveru)
- Ryan T. (rtomayko)
- Scytrin dai Kinthra (scytrin)

would like to thank:

- Adrian M., for the LiteSpeed handler.
- Christoffer S., for the first Rails adapter and Rack::Deflater.
- Tim F., for the HTTP authentication code.
- Luc H. for the Cookie sessions, the static file handler and  
bugfixes.
- Armin Ronacher, for the logo and racktools.
- Aredridel, Ben A., Dan K., Daniel Roethlisberger, Matt T.,  
Tom R., Phil H., S. Brent Faulkner, Bosko M.,  
Daniel RodrÃ­guez TroitiÃ±o, Genki Takiuchi, Geoffrey Grosenbach,  
Julien Sanchez, Kamal F. Mahyuddin, Masayoshi T., Patrick  
Aljordm, Mig, and Kazuhiro Nishiyama for bug fixing and other  
improvements.
- Eric W., Hongli L., Jeremy K. for their continuous support  
and API improvements.
- Yehuda K. and Carl L. for refactoring rackup.
- Brian C., for Rack::ContentType.
- Graham Batty, for improved handler loading.
- Stephen B., for bug reports and documentation.
- Gary W., for proposing a better Rack::Response interface.
- Jonathan B., for improvements regarding Rack::Response.
- Armin RÃ¶hrl, for tracking down bugs in the Cookie generator.
- Alexander Kellett for testing the Gem and reviewing the announcement.
- Marcus RÃ¼ckert, for help with configuring and debugging lighttpd.
- The WSGI team for the well-done and documented work they’ve done and  
Rack builds up on.
- All bug reporters and patch contributers not mentioned above.

== Copyright

Copyright (C) 2007, 2008, 2009, 2010 Christian N.  
[http://purl.org/net/chneukirchen](http://purl.org/net/chneukirchen)

Rack is freely distributable under the terms of an MIT-style license.

== Links

Rack:: [http://rack.rubyforge.org/](http://rack.rubyforge.org/)  
Rack’s Rubyforge project:: [http://rubyforge.org/projects/rack](http://rubyforge.org/projects/rack)  
Official Rack repositories:: [http://github.com/rack](http://github.com/rack)  
rack-devel mailing list:: [http://groups.google.com/group/rack-devel](http://groups.google.com/group/rack-devel)

Happy hacking and have a nice day,  
Christian N.  
on behalf of the Rack Core Team.

0289477e44262c5067c61cfe13b39d0de2f3f3de rack-1.1.0.tar.gz  
6c18f0e7337d3cb79ca40ad499470582762482f4 rack-1.1.0.gem
