method

set_content_type

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionDispatch::Response
set_content_type(content_type, charset) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/response.rb, line 444
    def set_content_type(content_type, charset)
      type = content_type || ""
      type = "#{type}; charset=#{charset.to_s.downcase}" if charset
      set_header CONTENT_TYPE, type
    end
Register or log in to add new notes.