method
headers
v2.3.8 -
Show latest stable
- Class:
ActionController::Request
headers()public
Provides access to the request’s HTTP headers, for example:
request.headers["Content-Type"] # => "text/plain"
headers()Provides access to the request’s HTTP headers, for example:
request.headers["Content-Type"] # => "text/plain"