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