From bbfb40a914e3c2bc461da90548471e9daaadbd80 Mon Sep 17 00:00:00 2001 From: schneems Date: Wed, 7 May 2014 11:50:12 -0500 Subject: [ci skip] document ActionDispatch::HTTP::Headers --- actionpack/lib/action_dispatch/http/headers.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3