Skip to content
Browse files

[ci skip] document ActionDispatch::HTTP::Headers

  • Loading branch information...
1 parent 43fbdba commit bbfb40a914e3c2bc461da90548471e9daaadbd80 @schneems schneems committed May 7, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 actionpack/lib/action_dispatch/http/headers.rb
View
6 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

0 comments on commit bbfb40a

Please sign in to comment.
Something went wrong with that request. Please try again.