public Method

AbstractRequest.headers

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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.