# File lib/mongrel/cgi.rb, line 69
 69:     def header(options = "text/html")
 70:       # if they pass in a string then just write the Content-Type
 71:       if options.class == String
 72:         @head['Content-Type'] = options unless @head['Content-Type']
 73:       else
 74:         # convert the given options into what Mongrel wants
 75:         @head['Content-Type'] = options['type'] || "text/html"
 76:         @head['Content-Type'] += "; charset=" + options['charset'] if options.has_key? "charset" if options['charset']
 77:         
 78:         # setup date only if they use nph
 79:         @head['Date'] = CGI::rfc1123_date(Time.now) if options['nph']
 80: 
 81:         # setup the server to use the default or what they set
 82:         @head['Server'] = options['server'] || env_table['SERVER_SOFTWARE']
 83: 
 84:         # remaining possible options they can give
 85:         @head['Status'] = options['status'] if options['status']
 86:         @head['Content-Language'] = options['language'] if options['language']
 87:         @head['Expires'] = options['expires'] if options['expires']
 88: 
 89:         # drop the keys we don't want anymore
 90:         REMOVED_KEYS.each {|k| options.delete(k) }
 91: 
 92:         # finally just convert the rest raw (which puts 'cookie' directly)
 93:         # 'cookie' is translated later as we write the header out
 94:         options.each{|k,v| @head[k] = v}
 95:       end
 96: 
 97:       # doing this fakes out the cgi library to think the headers are empty
 98:       # we then do the real headers in the out function call later
 99:       ""
100:     end