Vijay Dev
9d5bc3c240
Merge branch 'master' of github.com:rails/docrails
2014-05-10 13:57:18 +00:00
Vijay Dev
ffb9db0247
copy edits [ci skip]
2014-05-10 13:44:43 +00:00
schneems
aabbf07d00
[ci skip] doc Http::Headers methods
2014-05-09 11:29:29 -05:00
Vijay Dev
cb6622f455
copy edits [ci skip]
2014-05-08 18:24:38 +00:00
schneems
ca97ec5099
HTTP::Headers#key? correctly converts
...
Previously if you were looking for a given key, the header may incorrectly tell you that it did not exist even though it would return a valid value:
```ruby
env = { "CONTENT_TYPE" => "text/plain" }
headers = ActionDispatch::Http::Headers.new(env)
headers["Content-Type"]
# => "text/plain"
headers.key?("Content-Type")
# => false
```
This PR fixes that behavior by converting the key before checking for presence
2014-05-07 12:01:34 -05:00
schneems
bbfb40a914
[ci skip] document ActionDispatch::HTTP::Headers
2014-05-07 11:50:12 -05:00
Yves Senn
41a14dcd10
Http::Headers
directly modifies the passed environment.
...
The env hash passed to `Http::Headers#new` must be in env format.
Also be aware that the passed hash is modified directly.
docs and test-cases for setting headers/env in functional tests.
Follow up to #9700 .
2013-03-15 10:13:49 +01:00
Yves Senn
a709246d17
Http::Headers
respects dotted env vars, symbols, headers with numbers.
2013-03-13 16:41:00 +01:00
Yves Senn
9af59b2468
allow headers and env to be passed in IntegrationTest
.
...
Closes #6513 .
2013-03-13 16:41:00 +01:00
Yves Senn
e2a5de2bb2
refactor, Http::Headers
stores headers in env notation
...
Also:
cleanup, use consistent syntax for `Http::Header` and test.
2013-03-13 16:40:47 +01:00
Yves Senn
8945be464f
Http::Headers respects headers that are not prefixed with HTTP_
2013-03-13 16:27:47 +01:00
Aaron Patterson
13655a4e39
move cache inside the instance so we do not need locking
2012-10-18 15:32:44 -07:00
Aaron Patterson
b2debfb005
add test for fetch with a block
2012-10-18 15:22:58 -07:00
Aaron Patterson
6ea781c9a7
prefer composition over inheritence
2012-10-18 15:20:30 -07:00
Mark Turner
61ba0fe82c
Enable ActionDispatch::Http::Headers to support fetch
2012-05-02 11:22:34 -07:00
Akira Matsuda
b74aedff3c
Unneeded require memoizable
2011-11-12 23:15:54 +09:00
José Valim
f2c0fb32c0
Remove usage of memoizable from ActionPack.
2011-06-16 08:01:35 -03:00
Jeremy Kemper
9a650a6547
Silence some trivial warnings: shadowed local vars, indentation mismatches
2009-12-28 17:36:08 -08:00
Joshua Peek
319ae4628f
Move HTTP libs and middleware into ActionDispatch component
2009-01-27 18:54:01 -06:00