Module Wrest::HttpShared::Headers

  1. lib/wrest/http_shared/headers.rb

Methods

public instance

  1. []

Public instance methods

[] (key)

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

[show source]
    # File lib/wrest/http_shared/headers.rb, line 15
15:       def [](key)
16:         headers[key] || headers[key.downcase]
17:       end