Class: Spectre::Curl::SpectreHttpHeader
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(headers) ⇒ SpectreHttpHeader
constructor
A new instance of SpectreHttpHeader.
Constructor Details
#initialize(headers) ⇒ SpectreHttpHeader
Returns a new instance of SpectreHttpHeader.
76 77 78 |
# File 'lib/spectre/curl.rb', line 76 def initialize headers @headers = headers || {} end |
Instance Method Details
#[](key) ⇒ Object
80 81 82 |
# File 'lib/spectre/curl.rb', line 80 def [] key @headers[key.downcase] end |