attribute header
Ruby on Rails 8.0.4
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.