Module: Wrest::HttpShared::Headers
- Defined in:
- lib/wrest/http_shared/headers.rb
Instance Method Summary collapse
-
#[](key) ⇒ Object
Returns the header field corresponding to the case-insensitive key.
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”
15 16 17 |
# File 'lib/wrest/http_shared/headers.rb', line 15 def [](key) headers[key] || headers[key.downcase] end |