Date
1 - 2 of 2
increase timeout
Martin Guetlein <guetlein@...>
Hello all,
I would like to increase the timeout for rest-calls. What I found here: http://rdoc.info/projects/archiloque/rest-client/blob/c0793cd8fc926b11cf19271baab4f4886cbac368 is, that I could do RestClient::Resource.new('http://slow', :timeout => 10) However, I use the RestClient.get(uri, headers) and RestClient.post(uri, headers) commands. Is there a way to specify the timeout for this methods? Regards, Martin -- Dipl-Inf. Martin Gütlein Phone: +49 (0)761 203 8442 (office) +49 (0)177 623 9499 (mobile) Email: guetlein@... |
|
code@...
Hello all,Hi, you can't directly use RestClient.get but have to rely on Request.execute instead : Request.execute(:method => :get, :url => 'http://slow', :timeout => 10) Regards A. |
|