Class: HTTPHeader

Inherits:
Hash
  • Object
show all
Defined in:
lib/midori/core_ext/http_header.rb

Overview

Case Insensitive Hash Designed for HTTP Headers due to RFC 2.6 Chapter 4.2 www.ietf.org/rfc/rfc2616.txt

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



6
7
8
# File 'lib/midori/core_ext/http_header.rb', line 6

def [](key)
  super _insensitive(key)
end

#[]=(key, value) ⇒ Object



10
11
12
# File 'lib/midori/core_ext/http_header.rb', line 10

def []=(key, value)
  super _insensitive(key), value
end

#key?(key) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/midori/core_ext/http_header.rb', line 14

def key?(key)
  super _insensitive(key)
end