set_content_type(type, params = {})
public
<a href="/ruby/Set">Set</a> Content-Type: header
field by type and params. type must be a String, params must be a Hash.
Show source
def set_content_type(type, params = {})
@header['content-type'] = [type + params.map{|k,v|"; #{k}=#{v}"}.join('')]
end