diff options
author | schneems <richard.schneeman@gmail.com> | 2014-05-07 11:50:12 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2014-05-07 11:50:12 -0500 |
commit | bbfb40a914e3c2bc461da90548471e9daaadbd80 (patch) | |
tree | 503eb06fa388880b6c41598439203288b4458522 /actionpack/lib/action_dispatch | |
parent | 43fbdbae17744458d71262836b451d68427bd98d (diff) | |
download | rails-bbfb40a914e3c2bc461da90548471e9daaadbd80.tar.gz rails-bbfb40a914e3c2bc461da90548471e9daaadbd80.tar.bz2 rails-bbfb40a914e3c2bc461da90548471e9daaadbd80.zip |
[ci skip] document ActionDispatch::HTTP::Headers
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/headers.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/http/headers.rb b/actionpack/lib/action_dispatch/http/headers.rb index 2666cd4b0a..afaace511a 100644 --- a/actionpack/lib/action_dispatch/http/headers.rb +++ b/actionpack/lib/action_dispatch/http/headers.rb @@ -1,5 +1,11 @@ module ActionDispatch module Http + # Provides access to the request's HTTP headers from the environment + # for example: + # + # env = { "CONTENT_TYPE" => "text/plain" } + # headers = ActionDispatch::Http::Headers.new(env) + # headers["Content-Type"] # => "text/plain" class Headers CGI_VARIABLES = %w( CONTENT_TYPE CONTENT_LENGTH |