- 07 10月, 2015 2 次提交
-
-
由 Aaron Patterson 提交于
Use the methods rack provides so we don't have to worry about the exact header key.
-
由 Aaron Patterson 提交于
Rack implements the Etag header manipulation methods, so we can use those instead of ours.
-
- 04 10月, 2015 1 次提交
-
-
由 Jeremy Daer 提交于
* Introduce `ActionDispatch::Http::Headers#add` to add a value to a multivalued header. * Move `Response#add_header` upstream: https://github.com/rack/rack/pull/957 * Match upstream `Response#have_header?` -> `#has_header?` name change.
-
- 02 9月, 2015 1 次提交
-
-
由 Marcin Olichwirowicz 提交于
-
- 28 8月, 2015 3 次提交
-
-
由 Aaron Patterson 提交于
eventually we'll remove this instance variable, but this is the first step
-
由 Aaron Patterson 提交于
we're storing the value in the headers hash, so lets just store the value in one place.
-
由 Aaron Patterson 提交于
Modules should be using the API that the abstract modules use so that we can move these modules between implementations
-
- 25 8月, 2015 1 次提交
-
-
由 Aaron Patterson 提交于
We don't want to directly access the env hash
-
- 16 6月, 2015 1 次提交
-
-
由 Aaron Patterson 提交于
People should be free to mutate the header object, but not to set a new header object. That header object may be specific to the webserver, and we need to hide it's internals.
-
- 14 1月, 2015 1 次提交
-
-
由 Vipul A M 提交于
-
- 16 6月, 2014 1 次提交
-
-
由 Mindaugas Mozūras 提交于
Slightly improves performance, for example, a simple benchmark: ```ruby require 'benchmark/ips' require 'set' SPECIAL_KEYS = %w[extras no-cache max-age public must-revalidate] SPECIAL_KEYS_SET = Set.new(SPECIAL_KEYS) directive = 'must-revalidate' Benchmark.ips do |x| x.report('array') { SPECIAL_KEYS.include?(directive) } x.report('set') { SPECIAL_KEYS_SET.include?(directive) } end ``` Output: ``` ------------------------------------- array 67926 i/100ms set 74054 i/100ms ------------------------------------- array 2318423.4 (±2.8%) i/s - 11615346 in 5.014899s set 3387981.8 (±4.7%) i/s - 16958366 in 5.019355s ```
-
- 19 3月, 2013 1 次提交
-
-
由 Vipul A M 提交于
-
- 15 9月, 2012 3 次提交
-
-
由 Rafael Mendonça França 提交于
This fix the build http://travis-ci.org/#!/rails/rails/builds/2459981
-
由 Steve Klabnik 提交于
-
由 Travis Warlick 提交于
This is a rebased version of #2520. Conflicts: actionpack/test/dispatch/request_test.rb
-
- 03 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 30 7月, 2012 1 次提交
-
-
由 Cainã Costa 提交于
-
- 19 6月, 2012 1 次提交
-
-
由 James Tucker 提交于
There are several aspects to this commit, that don't well fit into broken down commits, so they are detailed here: * When a user uses response.headers['Cache-Control'] = some_value, then the documented convention in ConditionalGet is not adhered to, in this case, response.cache_control is ignored due to `return if self[CACHE_CONTROL].present?` * When a middleware sets cache-control headers that would clobber, they're converted to symbols directly, without underscores. This would lead to bugs. * Items that would live in :extras if set through expires_in, are placed directly in the @cache_control hash, and not respected in many cases (somewhat adhering to the aforementioned documentation). * Although quite useless, any directive named 'extras' would be ignored. The general convention applied is that expires_* take precedence, but no longer overwrite everything and expires_* are ALWAYS applied, even if the header is set. I am still unhappy about the contents of this commit, and the code in general. Ideally it should be refactored to no longer use :extras. I'd likely recommend expanding @cache_control into a class, and giving it the power to handle the merge in a more efficient fashion. Such a commit would be a larger change that could have additional semantic changes for other libraries unless they utilize expires_in in very standard ways.
-
- 08 12月, 2011 1 次提交
-
-
由 kennyj 提交于
-
- 31 10月, 2011 1 次提交
-
-
由 arvida 提交于
-
- 10 5月, 2011 1 次提交
-
-
由 José Valim 提交于
Fix previous commit by allowing a proc to be given as response_body. This is deprecated and is going to be removed in future releases.
-
- 18 1月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 18 10月, 2010 1 次提交
-
-
由 Krekoten' Marjan 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 04 10月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 12 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-
- 29 6月, 2010 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 28 3月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-
- 20 2月, 2010 1 次提交
-
-
由 Carlhuda 提交于
Fix a bunch of pending tests by providing an introspection mode for the Response object that does up-front parsing of the headers to populate things like @etag
-
- 16 1月, 2010 1 次提交
-
-
由 José Valim 提交于
-