Class: Spectre::Http::SpectreHttpHeader
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(headers) ⇒ SpectreHttpHeader
constructor
A new instance of SpectreHttpHeader.
- #to_s ⇒ Object
Constructor Details
#initialize(headers) ⇒ SpectreHttpHeader
Returns a new instance of SpectreHttpHeader.
126 127 128 |
# File 'lib/spectre/http.rb', line 126 def initialize headers @headers = headers || {} end |