method

set_content_type

Importance_0
v6.0.0 - 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 441
    def set_content_type(content_type, charset)
      type = (content_type || "").dup
      type << "; charset=#{charset.to_s.downcase}" if charset
      set_header CONTENT_TYPE, type
    end
Register or log in to add new notes.