Method: HTTP::Protocol::Headers#==

Defined in:
lib/http/protocol/headers.rb

#==(other) ⇒ Object



180
181
182
183
184
185
186
# File 'lib/http/protocol/headers.rb', line 180

def == other
  if other.is_a? Hash
    to_h == other
  else
    @fields == other.fields
  end
end