Provides acccess to the request’s HTTP headers, for example:
request.headers["Content-Type"] # => "text/plain"
Source Code
# File action_controller/request.rb, line 66 def headers @headers ||= ActionController::Http::Headers.new(@env) end
Provides acccess to the request’s HTTP headers, for example:
request.headers["Content-Type"] # => "text/plain"
# File action_controller/request.rb, line 66 def headers @headers ||= ActionController::Http::Headers.new(@env) end
<code/>and<pre/>for code samples.