method
headers
v7.2.3 -
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"