A case-insensitive Hash class for HTTP header

Methods
#
E
N
U
W
Included Modules
Class Public methods
new(hash={})
# File lib/xmlrpc/httpserver.rb, line 74
def initialize(hash={})
  @hash = hash
  update(hash)
end
Instance Public methods
[](key)
# File lib/xmlrpc/httpserver.rb, line 79
def [](key)
  @hash[key.to_s.capitalize]
end
[]=(key, value)
# File lib/xmlrpc/httpserver.rb, line 83
def []=(key, value)
  @hash[key.to_s.capitalize] = value
end
each()
# File lib/xmlrpc/httpserver.rb, line 92
def each
  @hash.each {|k,v| yield k.capitalize, v }
end
update(hash)
# File lib/xmlrpc/httpserver.rb, line 87
def update(hash)
  hash.each {|k,v| self[k] = v}
  self
end
writeTo(port)

Output the Hash table for the HTTP header

# File lib/xmlrpc/httpserver.rb, line 97
def writeTo(port)
  each { |k,v| port << "#{k}: #{v}" << CRLF }
end