def set_cookies(object_or_array)
      if object_or_array.respond_to?(:cookies)
        cookie_store.add(*object_or_array.cookies)
      else
        cookie_store.add(*object_or_array)
      end

      cookies = cookie_store.fetch
      headers["Cookie"] = cookies if cookies
    end
def set_cookies(object_or_array)
      if object_or_array.respond_to?(:cookies)
        cookie_store.add(*object_or_array.cookies)
      else
        cookie_store.add(*object_or_array)
      end

      cookies = cookie_store.fetch
      headers["Cookie"] = cookies if cookies
    end
Sets the cookies from an object responding to `cookies` (e.g. `HTTPI::Response`)
 or an Array of `HTTPI::Cookie` objects.