Object
# File lib/active_resource/http_mock.rb, line 172
172: def headers_match?(req)
173: # Ignore format header on equality if it's not defined
174: format_header = ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[method]
175: if headers[format_header].present? || req.headers[format_header].blank?
176: headers == req.headers
177: else
178: headers.dup.merge(format_header => req.headers[format_header]) == req.headers
179: end
180: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.