attribute header
Ruby on Rails 7.2.3
Since v3.0.20The headers for the response.
header["Content-Type"] # => "text/plain" header["Content-Type"] = "application/json" header["Content-Type"] # => "application/json"
Also aliased as headers.
headers["Content-Type"] # => "text/plain" headers["Content-Type"] = "application/json" headers["Content-Type"] # => "application/json"
Also aliased as header for compatibility.