instance method
headers
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
headers()
Provides access to the request’s HTTP headers, for example:
request.headers["Content-Type"] # => "text/plain"
Source
# File actionpack/lib/action_controller/request.rb, line 75
def headers
@headers ||= ActionController::Http::Headers.new(@env)
end
Defined in actionpack/lib/action_controller/request.rb line 75
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Request