class Spectre::Http::SpectreHttpHeader
Public Class Methods
new(headers)
click to toggle source
# File lib/spectre/http.rb, line 99 def initialize headers @headers = headers || {} end
Public Instance Methods
[](key)
click to toggle source
# File lib/spectre/http.rb, line 103 def [] key return nil if not @headers.has_key?(key.downcase) @headers[key.downcase].first end
to_s()
click to toggle source
# File lib/spectre/http.rb, line 108 def to_s @headers.to_s end