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