class Patron::Request

def headers=(new_headers)

Parameters:
  • new_headers (Hash) -- the hash of headers to set.
def headers=(new_headers)
  if !new_headers.kind_of?(Hash)
    raise ArgumentError, "Headers must be a hash"
  end
  @headers = new_headers
end