ruby rest-client: make it never timeout?

后端 未结 6 1268
温柔的废话
温柔的废话 2021-02-12 21:34

I am trying to use ruby rest-client to upload a large number of images to a site that I\'m writing. My code looks like:

RestClient.post url, :timeout => 9000         


        
6条回答
  •  一整个雨季
    2021-02-12 22:00

    The RestClient::Resource.new() allows you to set :timeout and :open_timeout values that will get passed to the Request.execute method, when you use the resource's get, post, put, etc methods

提交回复
热议问题