Module: Wrest::HttpShared::Headers

Defined in:
lib/wrest/http_shared/headers.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object

Returns the header field corresponding to the case-insensitive key. For example, a key of “Content-Type” might return “text/html”



17
18
19
# File 'lib/wrest/http_shared/headers.rb', line 17

def [](key)
  headers[key] || headers[key.downcase]
end