= private = protected
set_content_type(type, params = {})
Set Content-Type: header field by type and params. type must be a String, params must be a Hash.
# File lib/net/http.rb, line 1499 def set_content_type(type, params = {}) @header['content-type'] = [type + params.map{|k,v|"; #{k}=#{v}"}.join('')] end