HTTPS clone URL
Subversion checkout URL
History for rack/lib
Commits on Nov 4, 2015
Commits on Oct 11, 2015
Commits on Oct 8, 2015
Commits on Oct 6, 2015
Use this for setting cache control headers on your response objects.
setting etag values on the response.
Commits on Oct 5, 2015
Commits on Oct 4, 2015
* Introduce `Rack::Response::Helpers#add_header` to add a value to a multi-valued response header. Implemented in terms of other `Response#*_header` methods, so it's available to any response-like class that includes the `Helpers` module. * Add `Rack::Request#add_header` to match. * Rename `Response#have_header?` to `#has_header?` to match existing `Request#has_header?` * Add test coverage for this and other `*_header` methods.
Commits on Oct 1, 2015
Commits on Sep 25, 2015
Commits on Sep 24, 2015
Commits on Sep 23, 2015
Commits on Sep 21, 2015
Eric Wong committed with tenderlove
This helps avoid Zlib::DataError when a client disconnects on the server while the server is writing the response. This fixes the following backtraces on my server: data error (Zlib::DataError) rack/deflater.rb:124:in `close' rack/deflater.rb:124:in `ensure in each' rack/deflater.rb:124:in `each' rack/chunked.rb:23:in `each' ...
Commits on Sep 13, 2015
In several places the rdoc comments attempt to indicate hash access, for example `env['rack.input']`, but rdoc interprets this as a link with text "env" and href="%27rack.input%27/". Wrapping these snippets of hash access code in `<tt>` tags escapes the link syntax and also renders the code snippets in monospace.
Commits on Sep 8, 2015
…d chars in the quoted-string case.
Commits on Sep 6, 2015
…me at end-of-line sucked in the trailing newline.
Commits on Sep 5, 2015
Commits on Sep 4, 2015
Move most request methods to `Rack::Request::Helpers` and use public API to get values from the request object. This enables users to mix `Rack::Request::Helpers` in to their own objects so they can implement `(get|set|fetch|each)_header` as they see fit (for example a proxy object).
The directory middleware should be thread safe without duping now, so it will only allocate an iterable object when there is data to return.