method
headers
v4.2.1 -
Show latest stable
- Class:
ActionDispatch::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"