Class: Spectre::Curl::SpectreHttpHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/spectre/curl.rb

Instance Method Summary collapse

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